runWithArgs method

void runWithArgs(
  1. String sql,
  2. List args
)

Calls run(sql, args) on the underlying js api

Implementation

void runWithArgs(String sql, List<dynamic> args) {
  if (args.isEmpty) {
    // Call run without providing arguments. sql.js will then use sqlite3_exec
    // internally, which supports running multiple statements at once. This
    // matches the behavior from a `NativeDatabase`.
    _obj.run(sql, _undefined);
  } else {
    _obj.run(sql, _replaceDartBigInts(args));
  }
}