Expand description
Database driver traits and capability descriptions. Database driver interface for Toasty.
This module defines the traits and types that database drivers must implement
to integrate with the Toasty query engine. The two core traits are [Driver]
(factory for connections and schema operations) and Connection (executes
operations against a live database session).
The query planner inspects [Capability] to decide which [Operation]
variants to emit. SQL-based drivers receive [Operation::QuerySql] and
[Operation::Insert], while key-value drivers (e.g., DynamoDB) receive
[Operation::GetByKey], [Operation::QueryPk], etc.
§Architecture
Query Engine ──▶ Operation ──▶ Connection::exec() ──▶ ExecResponse
▲
│
Driver::capability()Re-exports§
pub use operation::IsolationLevel;pub use operation::Operation;
Modules§
- operation
- Database operations dispatched to drivers.
Structs§
- Capability
- Describes what a database driver supports.
- Exec
Response - The result of a database operation.
- Storage
Types - Maps application-level types to the concrete database column types used for storage.
Enums§
- Rows
- The payload of an
ExecResponse.
Traits§
- Connection
- A live database session that can execute
Operations. - Driver
- Factory for database connections and provider of driver-level metadata.