Module store
Available on crate features
tokio and turso only.Expand description
Runtime turso store with a connection and the prepared statements that flush ops and rebuild the session.
StructsΒ§
- Filter
Columns π - The filter-table column values for a
FilterState, withNULLin the columns that the state does not use. A pending request stores the subscription it replaces in therestore_*columns. - 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.
EnumsΒ§
- Flush π
- How
TursoStore::flushwrites its ops.
FunctionsΒ§
- apply_
packet_ πid_ rows - Runs a no-parameter query whose rows each contain one packet id, applying
ctor(packet_id)tosessionfor every row. The pubrel and incoming-QoS-2 restore queries use this. - assert_
persist_ πfuture_ send - Compile-time guard that
TursoStore::persistreturns aSendfuture. - decode_
filter_ πstate - Decodes a filter rowβs columns (indices 1..=6) back into a
FilterState. - exec_
pid π - Executes a prepared statement whose only bind parameter is a packet identifier, as in every insert/delete keyed by one packet id.
- filter_
columns π - Maps a
FilterStateonto the filter-table columns. - prepare π
- row_
options π - row_
restore π - Reads the
restore_*columns (indices 5 and 6) of a filter row. - row_
spec π - Reads the subscription stored in the columns
idxandidx + 1. - spec_
values π - The
(options, subscription_id)column values forspec.