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