Expand description
Storage keys (packages/zero-client/src/client/keys.ts) and the names of
synthetic aggregate tables.
Modules§
- aggregate_
columns - The columns of an aggregate’s rows.
Structs§
- Invalid
Primary KeyValue - A primary key column whose value isn’t a string, number, or boolean.
Constants§
- AGGREGATES_
PREFIX - Synced aggregate rows live outside
e/, which a client from before them loads into its schema’s tables: both can share a database. - AGGREGATE_
TABLE_ PREFIX - The prefix of every synthetic aggregate table’s name.
- DESIRED_
QUERIES_ PREFIX - ENTITIES_
PREFIX - GOT_
QUERIES_ PREFIX - MUTATIONS_
PREFIX - ROW_
VERSION_ COLUMN - The row-version column the server stamps on synced rows; not part of an aggregate row’s key.
Functions§
- aggregate_
row_ key aggregateRowKey:a/, the table name without itsaggregate:, and the row’s key, fromaggregate_row_key_columns. Aput’s full row, adel’s key, and an optimistic delta all give the same key.- aggregate_
row_ key_ columns aggregateRowKeyColumns:_0_keyfor a top-level aggregate’s or a grouped query’s row, and otherwise every column but the payload and the row version, sorted by UTF-16 code unit. The table name decides, not the row.- desired_
queries_ key - got_
queries_ key - is_
aggregate_ table_ name isAggregateTableName: a synthetic aggregate table, of any kind.- is_
keyed_ aggregate_ table_ name isKeyedAggregateTableName: a table whose rows_0_keyalone keys: a top-level aggregate’s or a grouped query’s.- is_
top_ level_ aggregate_ table_ name isTopLevelAggregateTableName:aggregate:<queryID>, with no further:, unlike a relationship aggregate’s or a grouped query’s.- js_
string - JS
String(v)for a scalar. - mutation_
response_ key - primary_
key_ string toPrimaryKeyString:e/<table>/<id>. A single-column key is the value as JSString()prints it; a compound key is the decimalh128of the JSON array of its values.- source_
name sourceNameFromKey: the source of ane/ora/row key. Ana/key leaves out theaggregate:of the table’s name.- valita_
display toDisplayin valita.ts: how its messages show a value.