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