ChatReadMessageRepository class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
count(Session session, {WhereExpressionBuilder<ChatReadMessageTable>? where, int? limit, Transaction? transaction})
→ Future<int>
-
Counts the number of rows matching the
where
expression. If omitted,
will return the count of all rows in the table.
-
delete(Session session, List<ChatReadMessage> rows, {Transaction? transaction})
→ Future<List<ChatReadMessage>>
-
Deletes all ChatReadMessages in the list and returns the deleted rows.
This is an atomic operation, meaning that if one of the rows fail to
be deleted, none of the rows will be deleted.
-
deleteRow(Session session, ChatReadMessage row, {Transaction? transaction})
→ Future<ChatReadMessage>
-
Deletes a single ChatReadMessage.
-
deleteWhere(Session session, {required WhereExpressionBuilder<ChatReadMessageTable> where, Transaction? transaction})
→ Future<List<ChatReadMessage>>
-
Deletes all rows matching the
where
expression.
-
find(Session session, {WhereExpressionBuilder<ChatReadMessageTable>? where, int? limit, int? offset, OrderByBuilder<ChatReadMessageTable>? orderBy, bool orderDescending = false, OrderByListBuilder<ChatReadMessageTable>? orderByList, Transaction? transaction})
→ Future<List<ChatReadMessage>>
-
Returns a list of ChatReadMessages matching the given query parameters.
-
findById(Session session, int id, {Transaction? transaction})
→ Future<ChatReadMessage?>
-
Finds a single ChatReadMessage by its
id
or null if no such row exists.
-
findFirstRow(Session session, {WhereExpressionBuilder<ChatReadMessageTable>? where, int? offset, OrderByBuilder<ChatReadMessageTable>? orderBy, bool orderDescending = false, OrderByListBuilder<ChatReadMessageTable>? orderByList, Transaction? transaction})
→ Future<ChatReadMessage?>
-
Returns the first matching ChatReadMessage matching the given query parameters.
-
insert(Session session, List<ChatReadMessage> rows, {Transaction? transaction})
→ Future<List<ChatReadMessage>>
-
Inserts all ChatReadMessages in the list and returns the inserted rows.
-
insertRow(Session session, ChatReadMessage row, {Transaction? transaction})
→ Future<ChatReadMessage>
-
Inserts a single ChatReadMessage and returns the inserted row.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(Session session, List<ChatReadMessage> rows, {ColumnSelections<ChatReadMessageTable>? columns, Transaction? transaction})
→ Future<List<ChatReadMessage>>
-
Updates all ChatReadMessages in the list and returns the updated rows. If
columns
is provided, only those columns will be updated. Defaults to
all columns.
This is an atomic operation, meaning that if one of the rows fails to
update, none of the rows will be updated.
-
updateRow(Session session, ChatReadMessage row, {ColumnSelections<ChatReadMessageTable>? columns, Transaction? transaction})
→ Future<ChatReadMessage>
-
Updates a single ChatReadMessage. The row needs to have its id set.
Optionally, a list of
columns
can be provided to only update those
columns. Defaults to all columns.