doInsertSQL method
FutureOr
doInsertSQL(
- String entityName,
- String table,
- SQL sql,
- Transaction transaction,
- 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));
}