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§
Sourcefn qualified_columns() -> boolwhere
Self: Sized,
fn qualified_columns() -> boolwhere
Self: Sized,
Should columns be qualified (schema.table.col)?
Sourcefn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut DynQuery,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut DynQuery, )
Render the sql bits representing this data set into out.