DataSet

Trait DataSet 

Source
pub trait DataSet {
    // Required methods
    fn qualified_columns() -> bool
       where Self: Sized;
    fn write_query(
        &self,
        writer: &dyn SqlWriter,
        context: &mut Context,
        buff: &mut String,
    );

    // Provided methods
    fn select<'s, Item, Cols, Exec, Expr>(
        &'s self,
        columns: Cols,
        executor: &'s mut Exec,
        condition: &Expr,
        limit: Option<u32>,
    ) -> impl Stream<Item = Result<RowLabeled>> + 's
       where Self: Sized,
             Item: Expression,
             Cols: IntoIterator<Item = Item> + Clone,
             Exec: Executor,
             Expr: Expression { ... }
    fn prepare<Item, Cols, Exec, Expr>(
        &self,
        columns: Cols,
        executor: &mut Exec,
        condition: &Expr,
        limit: Option<u32>,
    ) -> impl Future<Output = Result<Query<Exec::Driver>>>
       where Self: Sized,
             Item: Expression,
             Cols: IntoIterator<Item = Item> + Clone,
             Exec: Executor,
             Expr: Expression { ... }
}

Required Methods§

Source

fn qualified_columns() -> bool
where Self: Sized,

Must qualify the column names with the table name

Source

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Provided Methods§

Source

fn select<'s, Item, Cols, Exec, Expr>( &'s self, columns: Cols, executor: &'s mut Exec, condition: &Expr, limit: Option<u32>, ) -> impl Stream<Item = Result<RowLabeled>> + 's
where Self: Sized, Item: Expression, Cols: IntoIterator<Item = Item> + Clone, Exec: Executor, Expr: Expression,

Source

fn prepare<Item, Cols, Exec, Expr>( &self, columns: Cols, executor: &mut Exec, condition: &Expr, limit: Option<u32>, ) -> impl Future<Output = Result<Query<Exec::Driver>>>
where Self: Sized, Item: Expression, Cols: IntoIterator<Item = Item> + Clone, Exec: Executor, Expr: Expression,

Trait Implementations§

Source§

impl DataSet for &dyn DataSet

Source§

fn qualified_columns() -> bool
where Self: Sized,

Must qualify the column names with the table name
Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Source§

fn select<'s, Item, Cols, Exec, Expr>( &'s self, columns: Cols, executor: &'s mut Exec, condition: &Expr, limit: Option<u32>, ) -> impl Stream<Item = Result<RowLabeled>> + 's
where Self: Sized, Item: Expression, Cols: IntoIterator<Item = Item> + Clone, Exec: Executor, Expr: Expression,

Source§

fn prepare<Item, Cols, Exec, Expr>( &self, columns: Cols, executor: &mut Exec, condition: &Expr, limit: Option<u32>, ) -> impl Future<Output = Result<Query<Exec::Driver>>>
where Self: Sized, Item: Expression, Cols: IntoIterator<Item = Item> + Clone, Exec: Executor, Expr: Expression,

Implementors§