doInsertSQL method
FutureOr
doInsertSQL(
- String entityName,
- String table,
- SQL sql,
- Transaction transaction,
- PostgreSQLConnectionWrapper connection,
override
Implementation
@override
FutureOr<dynamic> doInsertSQL(String entityName, String table, SQL sql,
Transaction transaction, PostgreSQLConnectionWrapper connection) {
if (sql.isDummy) return null;
return connection
.mappedResultsQuery(sql.sql,
substitutionValues: sql.parametersByPlaceholder)
.resolveMapped((results) => _resolveResultID(results, table, sql));
}