Skip to main content

Module driver

Module driver 

Source
Expand description

Trait interface for database drivers and helpers for bind value resolution.

Driver crates implement ComposerConnection (sync) or ComposerConnectionAsync (async) for their connection types. This module contains no database dependencies — only the interface.

Traits§

ComposerConnection
Trait for synchronous database drivers that can compose and prepare SQL.
ComposerConnectionAsync
Async version of ComposerConnection for async database drivers (e.g. tokio-postgres, mysql_async).

Functions§

resolve_values
Given a ComposedSql with ordered bind param names and a map of named values, produce the ordered value vector matching placeholder order.