SQLParam

Trait SQLParam 

Source
pub trait SQLParam: Clone + Debug {
    const DIALECT: Dialect = Dialect::SQLite;
}
Expand description

A marker trait for types that can be used as SQL parameters.

This trait is used as a bound on the parameter type in SQL fragments. It ensures type safety when building SQL queries with parameters.

Provided Associated Constants§

Source

const DIALECT: Dialect = Dialect::SQLite

The SQL dialect for this parameter type Default is SQLite (uses ? placeholders)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§