AuthKeyRepository 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<AuthKeyTable > ? 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 <AuthKey > rows , {Transaction? transaction })
→ Future <List <AuthKey > >
Deletes all AuthKey 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 , AuthKey row , {Transaction? transaction })
→ Future <AuthKey >
Deletes a single AuthKey .
deleteWhere (Session session , {required WhereExpressionBuilder<AuthKeyTable > where , Transaction? transaction })
→ Future <List <AuthKey > >
Deletes all rows matching the where
expression.
find (Session session , {WhereExpressionBuilder<AuthKeyTable > ? where , int ? limit , int ? offset , OrderByBuilder<AuthKeyTable > ? orderBy , bool orderDescending = false , OrderByListBuilder<AuthKeyTable > ? orderByList , Transaction? transaction })
→ Future <List <AuthKey > >
Returns a list of AuthKey s matching the given query parameters.
findById (Session session , int id , {Transaction? transaction })
→ Future <AuthKey ? >
Finds a single AuthKey by its id
or null if no such row exists.
findFirstRow (Session session , {WhereExpressionBuilder<AuthKeyTable > ? where , int ? offset , OrderByBuilder<AuthKeyTable > ? orderBy , bool orderDescending = false , OrderByListBuilder<AuthKeyTable > ? orderByList , Transaction? transaction })
→ Future <AuthKey ? >
Returns the first matching AuthKey matching the given query parameters.
insert (Session session , List <AuthKey > rows , {Transaction? transaction })
→ Future <List <AuthKey > >
Inserts all AuthKey s in the list and returns the inserted rows.
insertRow (Session session , AuthKey row , {Transaction? transaction })
→ Future <AuthKey >
Inserts a single AuthKey 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 <AuthKey > rows , {ColumnSelections<AuthKeyTable > ? columns , Transaction? transaction })
→ Future <List <AuthKey > >
Updates all AuthKey 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 , AuthKey row , {ColumnSelections<AuthKeyTable > ? columns , Transaction? transaction })
→ Future <AuthKey >
Updates a single AuthKey . 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.