primaryKeyByUniqueColumns abstract method

Future<int?> primaryKeyByUniqueColumns(
  1. TModel instance,
  2. DatabaseExecutor executor

Find a record based on the existence of all contained fields annotated with @Sqlite(unique: true). The Brick-defined primary key of the table is not included in the query. Returns the Brick-defined primary key of the discovered record.

executor accepts a Database or Transaction.


Future<int?> primaryKeyByUniqueColumns(TModel instance, DatabaseExecutor executor);