findFirstRow method

Future<UserImage?> findFirstRow(
  1. Session session, {
  2. WhereExpressionBuilder<UserImageTable>? where,
  3. int? offset,
  4. OrderByBuilder<UserImageTable>? orderBy,
  5. bool orderDescending = false,
  6. OrderByListBuilder<UserImageTable>? orderByList,
  7. Transaction? transaction,
})

Implementation

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