pub struct AggTable {
pub name: Box<str>,
pub columns: Vec<Box<str>>,
pub key_len: usize,
}Expand description
A synthetic aggregate base table the server ships in place of an aggregate’s child
rows: the reduce’s (group_key…, value) output, given a base-table home on the client
(§3.2). Columns are [child_field…, "count"] (mirroring the engine’s
agg_relationship_reldef / Reduce::count_by output), the leading key_len of which
are the group key (and the PK). Derived purely from the AST — there is no such table in
the DB — so agg_table_schemas feeds the publisher’s hello + PK map for it.
Fields§
§name: Box<str>The content-addressed table name (see agg_table_name).
columns: Vec<Box<str>>[child_field…, "count"] — the synthetic row’s columns, positional.
key_len: usizeHow many leading columns form the group key (and the primary key): 0..key_len.
Trait Implementations§
impl Eq for AggTable
impl StructuralPartialEq for AggTable
Auto Trait Implementations§
impl Freeze for AggTable
impl RefUnwindSafe for AggTable
impl Send for AggTable
impl Sync for AggTable
impl Unpin for AggTable
impl UnsafeUnpin for AggTable
impl UnwindSafe for AggTable
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