Module store
Available on crate feature
turso only.Expand description
The runtime turso store: a connection plus the prepared statements that flush ops and rebuild the session.
StructsΒ§
- Filter
Columns π - The filter-table column values for a
FilterState. The subscription options and id live on theSubscribing/Subscribedstates or on anUnsubscribingstateβs restore; columns a state does not carry areNULL. - Selects π
- The prepared
SELECTstatements used byTursoStore::load. - Statements π
- The mutating statements, prepared once and reused on every flush.
- Turso
Store - A turso-backed session store.
FunctionsΒ§
- apply_
packet_ πid_ rows - Runs a no-parameter query whose rows are each a single packet id, applying
ctor(packet_id)tosessionfor every row (the shape shared by the pubrel and incoming-QoS-2 restore queries). - assert_
persist_ πfuture_ send - Compile-time guard that
TursoStore::persistreturns aSendfuture. - decode_
filter_ πstate - Decodes a filter rowβs
(options, subscription_id, state_tag, packet_id, filter_index, was_subscribed)columns (indices 1..=6) back into aFilterState, pulling the options and id onto the state that carries them. - exec_
pid π - Executes a prepared statement whose only bind parameter is a packet identifier (the shape shared by every single-key insert/delete).
- filter_
columns π - Maps a
FilterStateonto the(options, subscription_id, state_tag, packet_id, filter_index, was_subscribed)filter-table columns. - options_
value π - prepare π
- row_
index π - Reads a filter index column as a
u16. - row_
options π - sub_
id_ πvalue