Skip to main content

classify_session_command

Function classify_session_command 

Source
pub fn classify_session_command(
    text: &str,
) -> Result<Option<(ParserResult, SessionCommand)>, CommandParseError>
Expand description

Parse the statement and classify it when it is one of the transaction / session commands.

Returns Ok(None) for regular statements (and for command-like text that parses into another statement kind, which the pipeline reports). Returns Err with the first specific parse error for malformed command-like statements.