ServerHealthMetricRepository 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(DatabaseSession session, {WhereExpressionBuilder<ServerHealthMetricTable>? 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<ServerHealthMetric> rows, {OrderByBuilder<ServerHealthMetricTable>? orderBy, bool orderDescending = false, OrderByListBuilder<ServerHealthMetricTable>? orderByList, Transaction? transaction})
→ Future<List<ServerHealthMetric>>
-
Deletes all ServerHealthMetrics in the list and returns the deleted rows.
-
deleteRow(DatabaseSession session, ServerHealthMetric row, {Transaction? transaction})
→ Future<ServerHealthMetric>
-
Deletes a single ServerHealthMetric.
-
deleteWhere(DatabaseSession session, {required WhereExpressionBuilder<ServerHealthMetricTable> where, OrderByBuilder<ServerHealthMetricTable>? orderBy, bool orderDescending = false, OrderByListBuilder<ServerHealthMetricTable>? orderByList, Transaction? transaction})
→ Future<List<ServerHealthMetric>>
-
Deletes all rows matching the
where expression.
-
find(DatabaseSession session, {WhereExpressionBuilder<ServerHealthMetricTable>? where, int? limit, int? offset, OrderByBuilder<ServerHealthMetricTable>? orderBy, bool orderDescending = false, OrderByListBuilder<ServerHealthMetricTable>? orderByList, Transaction? transaction, LockMode? lockMode, LockBehavior? lockBehavior})
→ Future<List<ServerHealthMetric>>
-
Returns a list of ServerHealthMetrics matching the given query parameters.
-
findById(DatabaseSession session, int id, {Transaction? transaction, LockMode? lockMode, LockBehavior? lockBehavior})
→ Future<ServerHealthMetric?>
-
Finds a single ServerHealthMetric by its
id or null if no such row exists.
-
findFirstRow(DatabaseSession session, {WhereExpressionBuilder<ServerHealthMetricTable>? where, int? offset, OrderByBuilder<ServerHealthMetricTable>? orderBy, bool orderDescending = false, OrderByListBuilder<ServerHealthMetricTable>? orderByList, Transaction? transaction, LockMode? lockMode, LockBehavior? lockBehavior})
→ Future<ServerHealthMetric?>
-
Returns the first matching ServerHealthMetric matching the given query parameters.
-
insert(DatabaseSession session, List<ServerHealthMetric> rows, {Transaction? transaction, bool ignoreConflicts = false})
→ Future<List<ServerHealthMetric>>
-
Inserts all ServerHealthMetrics in the list and returns the inserted rows.
-
insertRow(DatabaseSession session, ServerHealthMetric row, {Transaction? transaction})
→ Future<ServerHealthMetric>
-
Inserts a single ServerHealthMetric and returns the inserted row.
-
lockRows(DatabaseSession session, {required WhereExpressionBuilder<ServerHealthMetricTable> where, required LockMode lockMode, required Transaction transaction, LockBehavior lockBehavior = _i1.LockBehavior.wait})
→ Future<void>
-
Acquires row-level locks on ServerHealthMetric 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<ServerHealthMetric> rows, {ColumnSelections<ServerHealthMetricTable>? columns, Transaction? transaction})
→ Future<List<ServerHealthMetric>>
-
Updates all ServerHealthMetrics 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, int id, {required ColumnValueListBuilder<ServerHealthMetricUpdateTable> columnValues, Transaction? transaction})
→ Future<ServerHealthMetric?>
-
Updates a single ServerHealthMetric by its
id with the specified columnValues.
Returns the updated row or null if no row with the given id exists.
-
updateRow(DatabaseSession session, ServerHealthMetric row, {ColumnSelections<ServerHealthMetricTable>? columns, Transaction? transaction})
→ Future<ServerHealthMetric>
-
Updates a single ServerHealthMetric. 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<ServerHealthMetricUpdateTable> columnValues, required WhereExpressionBuilder<ServerHealthMetricTable> where, int? limit, int? offset, OrderByBuilder<ServerHealthMetricTable>? orderBy, OrderByListBuilder<ServerHealthMetricTable>? orderByList, bool orderDescending = false, Transaction? transaction})
→ Future<List<ServerHealthMetric>>
-
Updates all ServerHealthMetrics matching the
where expression with the specified columnValues.
Returns the list of updated rows.