Skip to main content

Module sqlx_bind

Module sqlx_bind 

Source
Expand description

sqlx handoff for v2 (feature = "sqlx_*").

SqlxDialect is a sealed sub-trait of Dialect that carries the sqlx Database for a dialect and knows how to turn the builder’s dialect-agnostic Value binds into that database’s owned Arguments. With it, any QueryBuilder<D> whose D: SqlxDialect can produce a ready-to-execute sqlx::query::Query / QueryAs via to_sqlx_query and to_sqlx_query_as.

These mirror the 1.x value_to_arguments / to_sqlx_query integration in src/sqlx_mysql.rs and src/sqlx_sqlite.rs.

Traits§

SqlxDialect
Sealed sub-trait carrying the sqlx binding for a dialect.

Type Aliases§

SqlxQuery
The sqlx::query::Query type a QueryBuilder<D> hands off to.
SqlxQueryAs
The sqlx::query::QueryAs type a QueryBuilder<D> hands off to, decoding rows into T.