Configuration operation to connect to a database.
Reads filename from disk as text, then deserializes it from TOML to T.
Extracts the DBRowHandle, optionally using JoinInformation when joins were used, into the TSelect datatype. TSelect may be a DormPatch or the model T directly. This is mostly used internally. Expect changes to this API until there is a stable API.
Unwraps the row like the other unwrap methods, but prefixes all fields with <placeholder>_, so for example placeholder foo and field user would result in foo_user.
Extracts the DBRowHandle, optionally using JoinInformation when joins were used, into the TSelect datatype. TSelect may be a DormPatch or the model T directly. This is mostly used internally. Expect changes to this API until there is a stable API.
Sets up the DORM runtime that is required to use DORM (and its implementation library "RORM")
Starts a builder struct that can be used to SELECT (query) data from the database.
Helper struct for deserializeToml!BareConfiguration to simply parse the database.toml file without additional configuration.
This is the type of the variable that is passed into the condition callback at runtime on the SelectOperation struct. It automatically mirrors all DORM fields that are defined on the passed-in T Model class.
Type that actually implements the condition building on a ConditionBuilder.
High-level wrapper around a database. Through the driver implementation layer this handles connection pooling and distributes work across a thread pool automatically.
Wrapper around a Database transaction. Most methods that can be used on a DormDB can also be used on a transaction.
Helper type to access sub-fields through ModelRef foreign key fields. Will join the foreign model table automatically if using any fields on there, other than the primary key, which can be read directly from the source.
Helper type to access sub-fields through ModelRef foreign key fields. Will join the foreign model table automatically if using any fields on there, other than the primary key, which can be read directly from the source.
MySQL specific connection options
Helper type to quickly create field == false conditions for boolean fields.
This is the type of the variable that is passed into the orderBy callback at runtime on the SelectOperation struct. It automatically mirrors all DORM fields that are defined on the passed-in T Model class.
Type that actually implements the asc/desc methods inside the orderBy callback. (OrderBuilder) Defaults to ascending.
This is the type of the variable that is passed into the populate callback at runtime on the SelectOperation struct. It automatically mirrors all DORM fields that are defined on the passed-in T Model class.
Helper struct
Internal structure returned by the PopulateBuilder, which is passed to user code from the populate method on a SelectOperation. Internally this works by setting the include flag on the internal join info structure that either already exists because of previous condition or ordering operations or generates the join info structure on-demand.
Postgres specific connection options
Allows column access on a raw DB row as returned by db.rawSQL.
Helper struct that makes it possible to foreach over the rawSQL result.
This is the builder struct that's used for delete operations.
SQLite specific connection options
This is the builder struct that's used for select operations (queries)
This is the builder struct that's used for update operations.