doInsertSQL method

  1. @override
FutureOr doInsertSQL(
  1. String entityName,
  2. String table,
  3. SQL sql,
  4. Transaction transaction,
  5. 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));
}