pub trait Query: Sized {
type Row: FromRow;
const SQL: &'static str;
// Required method
fn as_params(&self) -> Box<[&(dyn ToSql + Sync)]>;
}Expand description
A typed SQL query that can be executed through tokio-postgres.
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".