Bind

Trait Bind 

Source
pub trait Bind: Table {
    // Required method
    fn bind<'q, Q: Bindable<'q>>(
        &'q self,
        c: &'q Column<Self>,
        query: Q,
    ) -> Result<Q>;
}
Expand description

Trait for binding columns to SQL queries in the context of a specific table.

This trait should be implemented by table entities to enable the binding of their columns to SQL queries. It provides a method to bind a single column, ensuring that the query correctly reflects the structure and constraints of the table.

Required Methods§

Source

fn bind<'q, Q: Bindable<'q>>( &'q self, c: &'q Column<Self>, query: Q, ) -> Result<Q>

Binds a single column of the implementing table entity to a given query.

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§