UserProfileRepository class

Properties

attachRow UserProfileAttachRowRepository
final
detachRow UserProfileDetachRowRepository
final
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(DatabaseSession session, {WhereExpressionBuilder<UserProfileTable>? 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(DatabaseSession session, List<UserProfile> rows, {OrderByBuilder<UserProfileTable>? orderBy, bool orderDescending = false, OrderByListBuilder<UserProfileTable>? orderByList, Transaction? transaction, bool noReturn = false}) Future<List<UserProfile>>
Deletes all UserProfiles in the list and returns the deleted rows.
deleteRow(DatabaseSession session, UserProfile row, {Transaction? transaction}) Future<UserProfile>
Deletes a single UserProfile.
deleteWhere(DatabaseSession session, {required WhereExpressionBuilder<UserProfileTable> where, OrderByBuilder<UserProfileTable>? orderBy, bool orderDescending = false, OrderByListBuilder<UserProfileTable>? orderByList, Transaction? transaction, bool noReturn = false}) Future<List<UserProfile>>
Deletes all rows matching the where expression.
find(DatabaseSession session, {WhereExpressionBuilder<UserProfileTable>? where, int? limit, int? offset, OrderByBuilder<UserProfileTable>? orderBy, bool orderDescending = false, OrderByListBuilder<UserProfileTable>? orderByList, Transaction? transaction, UserProfileInclude? include, LockMode? lockMode, LockBehavior? lockBehavior}) Future<List<UserProfile>>
Returns a list of UserProfiles matching the given query parameters.
findById(DatabaseSession session, UuidValue id, {Transaction? transaction, UserProfileInclude? include, LockMode? lockMode, LockBehavior? lockBehavior}) Future<UserProfile?>
Finds a single UserProfile by its id or null if no such row exists.
findFirstRow(DatabaseSession session, {WhereExpressionBuilder<UserProfileTable>? where, int? offset, OrderByBuilder<UserProfileTable>? orderBy, bool orderDescending = false, OrderByListBuilder<UserProfileTable>? orderByList, Transaction? transaction, UserProfileInclude? include, LockMode? lockMode, LockBehavior? lockBehavior}) Future<UserProfile?>
Returns the first matching UserProfile matching the given query parameters.
insert(DatabaseSession session, List<UserProfile> rows, {Transaction? transaction, bool ignoreConflicts = false, bool noReturn = false}) Future<List<UserProfile>>
Inserts all UserProfiles in the list and returns the inserted rows.
insertRow(DatabaseSession session, UserProfile row, {Transaction? transaction}) Future<UserProfile>
Inserts a single UserProfile and returns the inserted row.
lockRows(DatabaseSession session, {required WhereExpressionBuilder<UserProfileTable> where, required LockMode lockMode, required Transaction transaction, LockBehavior lockBehavior = _i1.LockBehavior.wait}) Future<void>
Acquires row-level locks on UserProfile rows matching the where expression.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(DatabaseSession session, List<UserProfile> rows, {ColumnSelections<UserProfileTable>? columns, Transaction? transaction, bool noReturn = false}) Future<List<UserProfile>>
Updates all UserProfiles 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.
updateById(DatabaseSession session, UuidValue id, {required ColumnValueListBuilder<UserProfileUpdateTable> columnValues, Transaction? transaction}) Future<UserProfile?>
Updates a single UserProfile by its id with the specified columnValues. Returns the updated row or null if no row with the given id exists.
updateRow(DatabaseSession session, UserProfile row, {ColumnSelections<UserProfileTable>? columns, Transaction? transaction}) Future<UserProfile>
Updates a single UserProfile. 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.
updateWhere(DatabaseSession session, {required ColumnValueListBuilder<UserProfileUpdateTable> columnValues, required WhereExpressionBuilder<UserProfileTable> where, int? limit, int? offset, OrderByBuilder<UserProfileTable>? orderBy, OrderByListBuilder<UserProfileTable>? orderByList, bool orderDescending = false, Transaction? transaction, bool noReturn = false}) Future<List<UserProfile>>
Updates all UserProfiles matching the where expression with the specified columnValues. Returns the list of updated rows.
upsert(DatabaseSession session, List<UserProfile> rows, {required ColumnSelections<UserProfileTable> conflictColumns, ColumnSelections<UserProfileTable>? updateColumns, WhereExpressionBuilder<UserProfileTable>? updateWhere, Transaction? transaction, bool noReturn = false}) Future<List<UserProfile>>
Upserts all UserProfiles in the list and returns the resulting rows.
upsertRow(DatabaseSession session, UserProfile row, {required ColumnSelections<UserProfileTable> conflictColumns, ColumnSelections<UserProfileTable>? updateColumns, WhereExpressionBuilder<UserProfileTable>? updateWhere, Transaction? transaction}) Future<UserProfile?>
Upserts a single UserProfile and returns the resulting row.

Operators

operator ==(Object other) bool
The equality operator.
inherited