Trait atmosphere::Bind

source ·
pub trait Bind: Table {
    // Required method
    fn bind<'q, Q>(&'q self, c: &'q Column<Self>, query: Q) -> Result<Q, Error>
       where Q: Bindable<'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>(&'q self, c: &'q Column<Self>, query: Q) -> Result<Q, Error>
where Q: Bindable<'q>,

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

Object Safety§

This trait is not object safe.

Implementors§