doInsertSQL method

  1. @override
FutureOr doInsertSQL(
  1. String entityName,
  2. String table,
  3. SQL sql,
  4. Transaction transaction,
  5. DBMySqlConnectionWrapper connection,
)
override

Implementation

@override
FutureOr<dynamic> doInsertSQL(String entityName, String table, SQL sql,
    Transaction transaction, DBMySqlConnectionWrapper connection) {
  if (sql.isDummy) return null;

  return connection
      .query(sql.sqlPositional, sql.parametersValuesByPosition)
      .resolveMapped((results) => _resolveResultID(results, table, sql));
}