update method

Future<int> update(
  1. Map<String, dynamic> values
)

Implementation

Future<int> update(Map<String, dynamic> values) async {
  try {
    // compile the query
    this._compileUpdate(values);

    // fetch result
    return await this._db!.rawUpdate(this._query!, this._getQueryArgs());
  } catch (e) {
    print(e);
  }
  return 0;
}