findFirstRow method
Future<DatabaseMigrationVersion?>
findFirstRow(
- DatabaseAccessor databaseAccessor, {
- WhereExpressionBuilder<
DatabaseMigrationVersionTable> ? where, - int? offset,
- OrderByBuilder<
DatabaseMigrationVersionTable> ? orderBy, - bool orderDescending = false,
- OrderByListBuilder<
DatabaseMigrationVersionTable> ? orderByList, - Transaction? transaction,
Implementation
Future<DatabaseMigrationVersion?> findFirstRow(
_i1.DatabaseAccessor databaseAccessor, {
_i1.WhereExpressionBuilder<DatabaseMigrationVersionTable>? where,
int? offset,
_i1.OrderByBuilder<DatabaseMigrationVersionTable>? orderBy,
bool orderDescending = false,
_i1.OrderByListBuilder<DatabaseMigrationVersionTable>? orderByList,
_i1.Transaction? transaction,
}) async {
return databaseAccessor.db.findFirstRow<DatabaseMigrationVersion>(
where: where?.call(DatabaseMigrationVersion.t),
orderBy: orderBy?.call(DatabaseMigrationVersion.t),
orderByList: orderByList?.call(DatabaseMigrationVersion.t),
orderDescending: orderDescending,
offset: offset,
transaction: transaction ?? databaseAccessor.transaction,
);
}