Skip to main content

execute_read_at

Function execute_read_at 

Source
pub fn execute_read_at(admission: &ReadAdmission<'_>) -> Result<QueryResult>
Expand description

Execute a read-only plan at the caller-pinned timestamp in admission without repinning. The caller must keep its Graph::pin_now() guard alive through this call so version GC cannot discard rows visible at snapshot_ts, and must capture schema alongside that pin while serializing with graph publication.

There is deliberately no graph-only wrapper that acquires both itself: the publication read guard lives on the embedded database’s Shared state, not on a bare Graph, so such a wrapper could not capture the pin and schema atomically. Admission must happen under that guard at the caller.