Skip to main content

Module session_command

Module session_command 

Source
Expand description

Shared classification of transaction and session commands.

One implementation serves both the embedded session and the network service layer: the keyword gate, the single parse, and the AST match live here so the two transports cannot drift apart. Execution of the classified command stays with each host, which owns its own session state (bindings, variable store, permissions).

Structs§

CommandParseError
First parse error of a command-like statement, carrying the location so each transport can report it in its own error shape.

Enums§

SessionCommand
Command classes intercepted by the API layer before the query pipeline sees the statement text. Undefined combinations never reach a host: classification guarantees the AST variant matches the returned kind.

Functions§

classify_session_command
Parse the statement and classify it when it is one of the transaction / session commands.
is_command_like
Keyword gate: whether the text opens with a transaction or session command keyword. Regular statements skip the API-layer parse entirely and are parsed once inside the query engine.