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§
Sourcefn qualified_columns() -> boolwhere
Self: Sized,
fn qualified_columns() -> boolwhere
Self: Sized,
Must qualify the column names with the table name
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>> + 'swhere
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,
Trait Implementations§
Source§impl DataSet for &dyn DataSet
impl DataSet for &dyn DataSet
Source§fn qualified_columns() -> boolwhere
Self: Sized,
fn qualified_columns() -> boolwhere
Self: Sized,
Must qualify the column names with the table name