findFirstRow method

Future<UserInfo?> findFirstRow(
  1. Session session, {
  2. WhereExpressionBuilder<UserInfoTable>? where,
  3. int? offset,
  4. OrderByBuilder<UserInfoTable>? orderBy,
  5. bool orderDescending = false,
  6. OrderByListBuilder<UserInfoTable>? orderByList,
  7. 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,
  );
}