updateWhere method
Future<List<GitHubAccount> >
updateWhere(
- DatabaseSession session, {
- required ColumnValueListBuilder<
GitHubAccountUpdateTable> columnValues, - required WhereExpressionBuilder<
GitHubAccountTable> where, - int? limit,
- int? offset,
- OrderByBuilder<
GitHubAccountTable> ? orderBy, - OrderByListBuilder<
GitHubAccountTable> ? orderByList, - bool orderDescending = false,
- Transaction? transaction,
Updates all GitHubAccounts matching the where expression with the specified columnValues.
Returns the list of updated rows.
Implementation
Future<List<GitHubAccount>> updateWhere(
_i1.DatabaseSession session, {
required _i1.ColumnValueListBuilder<GitHubAccountUpdateTable> columnValues,
required _i1.WhereExpressionBuilder<GitHubAccountTable> where,
int? limit,
int? offset,
_i1.OrderByBuilder<GitHubAccountTable>? orderBy,
_i1.OrderByListBuilder<GitHubAccountTable>? orderByList,
bool orderDescending = false,
_i1.Transaction? transaction,
}) async {
return session.db.updateWhere<GitHubAccount>(
columnValues: columnValues(GitHubAccount.t.updateTable),
where: where(GitHubAccount.t),
limit: limit,
offset: offset,
orderBy: orderBy?.call(GitHubAccount.t),
orderByList: orderByList?.call(GitHubAccount.t),
orderDescending: orderDescending,
transaction: transaction,
);
}