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