pub trait BuilderDelegate {
// Required method
fn get_source(&self, table_name: &str) -> Option<Rc<dyn Source>>;
// Provided methods
fn apply_filters_anyway(&self) -> bool { ... }
fn enable_not_exists(&self) -> bool { ... }
fn disable_correlated_predicate_pushdown(&self) -> bool { ... }
fn map_ast(&self, ast: &Ast) -> Ast { ... }
fn aggregates_from_source(&self) -> bool { ... }
fn get_aggregate_source(
&self,
name: &str,
_columns: OrderedMap<Column>,
_primary_key: Vec<String>,
_optimistic: Option<OptimisticAggregate>,
) -> Option<Rc<dyn Source>> { ... }
fn aggregate_key_columns(
&self,
_table: &str,
columns: &[String],
) -> Vec<String> { ... }
}Expand description
Connects a pipeline being built to its environment (BuilderDelegate).
Required Methods§
Provided Methods§
Sourcefn apply_filters_anyway(&self) -> bool
fn apply_filters_anyway(&self) -> bool
Apply where filters even when the source applies them all.
Sourcefn enable_not_exists(&self) -> bool
fn enable_not_exists(&self) -> bool
Allow NOT EXISTS. Only the server does: a client cannot tell a row that does not exist from one that is not synced.
Do not copy a parent’s conditions on correlation columns into its subqueries.
fn map_ast(&self, ast: &Ast) -> Ast
Sourcefn aggregates_from_source(&self) -> bool
fn aggregates_from_source(&self) -> bool
The synced client’s mode: an aggregate or a grouping is read from the synthetic source the server streams its rows to, rather than computed from rows the client doesn’t have.
Sourcefn get_aggregate_source(
&self,
name: &str,
_columns: OrderedMap<Column>,
_primary_key: Vec<String>,
_optimistic: Option<OptimisticAggregate>,
) -> Option<Rc<dyn Source>>
fn get_aggregate_source( &self, name: &str, _columns: OrderedMap<Column>, _primary_key: Vec<String>, _optimistic: Option<OptimisticAggregate>, ) -> Option<Rc<dyn Source>>
The source of a relationship aggregate’s or a grouped query’s rows,
which the name doesn’t describe, made with this shape if it’s new.
optimistic lets the client move it when it writes a child row.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".