pub trait SqlxDialect: Dialect + Sealed {
type Database: Database<Arguments: IntoArguments<Self::Database>>;
// Required method
fn bind_arguments(
binds: &[Value],
) -> <Self::Database as Database>::Arguments;
}Expand description
Sealed sub-trait carrying the sqlx binding for a dialect.
Sealed via the private [private::Sealed] supertrait so only the dialect
markers in this crate can implement it.
Required Associated Types§
Sourcetype Database: Database<Arguments: IntoArguments<Self::Database>>
type Database: Database<Arguments: IntoArguments<Self::Database>>
The sqlx Database this dialect binds against.
The database’s owned Arguments must be IntoArguments<Self::Database>
(it always is for sqlx’s built-in databases) so the produced query type
is executable.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl SqlxDialect for MySql
Available on crate feature sqlx_mysql only.
impl SqlxDialect for MySql
Available on crate feature
sqlx_mysql only.Source§impl SqlxDialect for Postgres
Available on crate feature sqlx_postgres only.
impl SqlxDialect for Postgres
Available on crate feature
sqlx_postgres only.