Skip to main content

SetupSql

Trait SetupSql 

Source
pub trait SetupSql<D: Driver> {
    type Output;

    // Required method
    async fn query(
        self,
        exec: &mut impl EasyExecutor<D>,
    ) -> Result<Self::Output>;
}
Expand description

Gives information about the SQL query to execute, and how to execute it with the provided executor. Used by setup structures.

Required Associated Types§

Required Methods§

Source

async fn query(self, exec: &mut impl EasyExecutor<D>) -> Result<Self::Output>

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§