pub struct CubeBuilder { /* private fields */ }Implementations§
Source§impl CubeBuilder
impl CubeBuilder
pub fn new(name: &str) -> Self
pub fn schema(self, schema: &str) -> Self
pub fn table(self, pattern: &str) -> Self
pub fn chain_column(self, column: &str) -> Self
pub fn dimension(self, node: DimensionNode) -> Self
Sourcepub fn metric(self, name: &str) -> Self
pub fn metric(self, name: &str) -> Self
Add a standard metric (count, sum, avg, min, max, uniq).
Sourcepub fn custom_metric(self, def: MetricDef) -> Self
pub fn custom_metric(self, def: MetricDef) -> Self
Add a custom metric with an SQL expression template.
pub fn selector(self, sel: SelectorDef) -> Self
pub fn default_filter(self, column: &str, value: &str) -> Self
pub fn default_limit(self, limit: u32) -> Self
pub fn max_limit(self, limit: u32) -> Self
pub fn use_final(self, val: bool) -> Self
pub fn description(self, desc: &str) -> Self
pub fn join(self, j: JoinDef) -> Self
pub fn joins(self, js: Vec<JoinDef>) -> Self
pub fn table_route(self, route: TableRoute) -> Self
pub fn custom_query_builder(self, builder: QueryBuilderFn) -> Self
pub fn from_subquery(self, subquery_sql: &str) -> Self
pub fn chain_groups(self, groups: Vec<ChainGroup>) -> Self
pub fn build(self) -> CubeDefinition
Auto Trait Implementations§
impl Freeze for CubeBuilder
impl !RefUnwindSafe for CubeBuilder
impl Send for CubeBuilder
impl Sync for CubeBuilder
impl Unpin for CubeBuilder
impl UnsafeUnpin for CubeBuilder
impl !UnwindSafe for CubeBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more