primaryKeyByUniqueColumns abstract method

Future<int?> primaryKeyByUniqueColumns(
  1. _Model instance,
  2. DatabaseExecutor executor
)
inherited

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.

Implementation

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