updateRow method

bool updateRow(
  1. String table,
  2. int rowId,
  3. List<String> values
)

Implementation

bool updateRow(String table, int rowId, List<String> values) {
  final t = table.toNativeUtf8();
  final v = values.join(',').toNativeUtf8();
  try {
    final rc = _updateRow(_handle, t, rowId, v);
    if (rc < 0) {
      throw Exception(lastError());
    }
    return rc == 1;
  } finally {
    malloc.free(t);
    malloc.free(v);
  }
}