update method

Future<void> update({
  1. required String table,
  2. required String where,
  3. Map<String, dynamic>? values,
  4. Map<String, String>? valuesSql,
  5. List<String>? namespace,
})

Implementation

Future<void> update({
  required String table,
  required String where,
  Map<String, dynamic>? values,
  Map<String, String>? valuesSql,
  List<String>? namespace,
}) async {
  await _invoke("update", {
    "table": table,
    "where": where,
    "values": values?.entries.map((entry) => {"column": entry.key, "value_json": _valueJson(entry.value)}).toList(growable: false),
    "values_sql": valuesSql?.entries.map((entry) => {"column": entry.key, "expression": entry.value}).toList(growable: false),
    "namespace": namespace,
  });
}