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,
        out: &mut DynQuery,
    );
    fn table_ref(&self) -> TableRef;
}
Expand description

Queryable data source (table or join tree).

Implementors know how to render themselves inside a FROM clause and whether column references should be qualified with schema and table.

Required Methods§

Source

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

Should columns be qualified (schema.table.col)?

Source

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut DynQuery, )

Render the sql bits representing this data set into out.

Source

fn table_ref(&self) -> TableRef

TableRef representing this data set

Trait Implementations§

Source§

impl DataSet for &dyn DataSet

Source§

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

Should columns be qualified (schema.table.col)?
Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut DynQuery, )

Render the sql bits representing this data set into out.
Source§

fn table_ref(&self) -> TableRef

TableRef representing this data set

Implementors§