runtime_api library Null safety
Classes
- Batch
- Contains operations to run queries in a batched mode.
-
DatabaseAccessor<
T extends GeneratedDatabase> - Class that runs queries to a subset of all available queries in a database.
- DatabaseConnection
- A database connection managed by drift. Contains three components:
- DatabaseConnectionUser
- Manages a DatabaseConnection to send queries to the database.
- DriftRuntimeOptions
- Defines additional runtime behavior for drift. Changing the fields of this class is rarely necessary.
- GeneratedDatabase
- A base class for all generated databases.
- StreamQueryUpdateRules
- Collects a set of UpdateRules which can be used to express how a set of direct updates to a table affects other updates.
-
TableOrViewOperations<
Tbl extends dynamic, Row> - A capture of a table and a generated database.
- TableUpdate
- Contains information on how a table was updated, which can be used to find queries that are affected by this.
- TableUpdateQuery
- A table update query describes information to listen for TableUpdates.
- UpdateRule
- A common rule that describes how a TableUpdate has other TableUpdates.
- WritePropagation
- An UpdateRule for triggers that exist in a database.
Extensions
- OldDbFieldInDatabaseAccessor
- Extension for generated dao classes to keep the old db field that was renamed to DatabaseAccessor.attachedDatabase in drift 3.0
- TableOperations
- Additional methods for a TableOrViewOperations that are only available on tables.
Properties
- driftRuntimeOptions ↔ DriftRuntimeOptions
-
Stores the DriftRuntimeOptions describing global drift behavior across
databases.
read / write
Enums
- UpdateKind
- Classifies a TableUpdate by what kind of write happened - an insert, an update or a delete operation.