insertRow method

int insertRow(
  1. String table,
  2. List<String> values
)

Implementation

int insertRow(String table, List<String> values) {
  final t = table.toNativeUtf8();
  final v = values.join(',').toNativeUtf8();
  try {
    final id = _insertRow(_handle, t, v);
    if (id < 0) {
      throw Exception(lastError());
    }
    return id;
  } finally {
    malloc.free(t);
    malloc.free(v);
  }
}