LogEntryRepository class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
count (Session session , {WhereExpressionBuilder <LogEntryTable > ? 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 <LogEntry > rows , {Transaction ? transaction })
→ Future <List <LogEntry > >
Deletes all LogEntry s 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 , LogEntry row , {Transaction ? transaction })
→ Future <LogEntry >
Deletes a single LogEntry .
deleteWhere (Session session , {required WhereExpressionBuilder <LogEntryTable > where , Transaction ? transaction })
→ Future <List <LogEntry > >
Deletes all rows matching the where
expression.
find (Session session , {WhereExpressionBuilder <LogEntryTable > ? where , int ? limit , int ? offset , OrderByBuilder <LogEntryTable > ? orderBy , bool orderDescending = false , OrderByListBuilder <LogEntryTable > ? orderByList , Transaction ? transaction })
→ Future <List <LogEntry > >
Returns a list of LogEntry s matching the given query parameters.
findById (Session session , int id , {Transaction ? transaction })
→ Future <LogEntry ? >
Finds a single LogEntry by its id
or null if no such row exists.
findFirstRow (Session session , {WhereExpressionBuilder <LogEntryTable > ? where , int ? offset , OrderByBuilder <LogEntryTable > ? orderBy , bool orderDescending = false , OrderByListBuilder <LogEntryTable > ? orderByList , Transaction ? transaction })
→ Future <LogEntry ? >
Returns the first matching LogEntry matching the given query parameters.
insert (Session session , List <LogEntry > rows , {Transaction ? transaction })
→ Future <List <LogEntry > >
Inserts all LogEntry s in the list and returns the inserted rows.
insertRow (Session session , LogEntry row , {Transaction ? transaction })
→ Future <LogEntry >
Inserts a single LogEntry 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 <LogEntry > rows , {ColumnSelections <LogEntryTable > ? columns , Transaction ? transaction })
→ Future <List <LogEntry > >
Updates all LogEntry s 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 , LogEntry row , {ColumnSelections <LogEntryTable > ? columns , Transaction ? transaction })
→ Future <LogEntry >
Updates a single LogEntry . 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.