Skip to main content

Module peek_client

Module peek_client 

Source

StructsΒ§

ExecutionLogging πŸ”’
The session task’s slot for the end-of-execution obligation of the statement it is running. One slot is held for the whole SessionClient::execute call and the session task retires it at exactly one site.
PeekCancelSafety πŸ”’
Dropping read-only sequencing is safe. An unrelated coordinator-owned side effect must instead produce its definitive result once dispatched.
PeekClient
Clients needed for peek sequencing in the Adapter Frontend.
PeekHandle
Owns cleanup while sequencing and while the returned response is in flight.
StatementLoggingGuard πŸ”’
RAII guard owning a frontend statement-logging lifecycle.

EnumsΒ§

CollectionLookupError
Errors arising during collection lookup in peek client operations.
CoordinatorClient πŸ”’
A command sender that does not make background work keep the coordinator alive.
TakeOver πŸ”’
Which statement the session task is taking the log entry over for.

FunctionsΒ§

count_statement πŸ”’
Bumps query_total, as Coordinator::handle_execute does for the statements it sequences, subscribe_outputs for a subscribe, and as_of_queries for an AS OF query.
create_peek_response_stream πŸ”’
Creates an async stream that processes peek responses and yields rows.
end_reason πŸ”’
Maps an execution outcome to the reason to record for it.
terminates_elsewhere πŸ”’
Whether someone else logs the end of execution for response: the peek lifecycle, the protocol layer for a subscribe, a FETCH or a COPY FROM. The dispatch sites that produce these defuse the slot, so an armed slot alongside one of them means a dispatch site did not.

Type AliasesΒ§

StorageCollectionsHandle
Storage collections trait alias we need to consult for since/frontiers.