Skip to main content

Module query_kind

Module query_kind 

Source
Expand description

SQL statement classification by leading keyword.

Enums§

QueryKind
Detected query type — used for status bar messaging and execution routing.

Functions§

detect_query_kind
Detect the query kind from the first non-whitespace, non-comment token.
is_transaction_control
Returns true if sql begins a transaction-control statement (BEGIN/COMMIT/ROLLBACK/END), after stripping leading whitespace and comments.