Skip to main content

Module driver

Module driver 

Source
Expand description

Driver-facing traits and helper types.

This module re-exports the low-level driver traits and capability markers used when implementing a custom backend. Most application code will use the concrete drivers (like [Postgres] or [Sqlite]) rather than these internals.

Modules§

functions
Marker traits for built-in SQL functions.
operators
Marker traits for supported SQL operators.

Macros§

impl_supports_fn
Implement a built-in SQL function support marker for specific argument counts.
impl_supports_fn_any
Implement a built-in SQL function support marker for any argument count.

Structs§

AlterTable
Collection of alter-table operations for a single table.
TableField
Column definition used by drivers to build tables and migrations.

Enums§

AlterTableSingle
Single alter-table operation used by the migration procedural macros.

Traits§

AllowsNoPrimaryKey
Marker for drivers that allow tables without a primary key.
SetupSql
Gives information about the SQL query to execute, and how to execute it with the provided executor. Used by setup structures.
SupportsAutoIncrementCompositePrimaryKey
Marker for drivers that support auto-increment with composite primary keys.
SupportsMultipleAutoIncrementColumns
Marker for drivers that allow multiple auto-increment columns in a table.

Type Aliases§

DriverArguments
DriverConnection
DriverQueryResult
DriverRow
DriverTypeInfo
InternalDriver