Expand description
PowDB query executor.
Modules§
- mem_
budget - Per-query memory budget accumulator (WS2).
Structs§
- Engine
- Prepared
Query - WalDurability
Ticket - A claim on WAL durability handed out by a deferred Full-mode flush: the
commit’s records have reached the OS file but are not yet guaranteed on
stable storage.
Self::waitblocks until an fsync covering them has completed — the caller must not acknowledge the commit beforewaitreturnsOk(()).
Enums§
- Query
Dialect - Query frontend dialect. PowQL remains the default/native dialect; SQL is an explicit frontend that lowers to the same AST before planning.
- WalSync
Mode - Durability mode for the WAL — analogous to SQLite’s
PRAGMA synchronouscombined withjournal_mode=OFF.
Constants§
- READONLY_
NEEDS_ WRITE - Legacy sentinel string constant — kept for backward compatibility with
any external code matching on the string representation. New code should
match on
QueryError::ReadonlyNeedsWritedirectly.
Functions§
- is_
read_ only_ statement - Mission infra-1: classify a parsed statement as read-only vs. mutating.
Used by
Engine::execute_powql_readonlyand by the server handler to decide between the RwLock reader and writer sides.Unionrecurses because each side can independently be read/write (though in practice both sides are reads — the parser only builds Union from query shapes).