rawUpdate abstract method

Future<int> rawUpdate(
  1. String sql, [
  2. List<Object?>? arguments
])

Executes a raw SQL UPDATE query and returns the number of changes made.

int count = await database.rawUpdate(
  'UPDATE Test SET name = ?, value = ? WHERE name = ?',
  ['updated name', '9876', 'some name']);

Implementation

Future<int> rawUpdate(String sql, [List<Object?>? arguments]);