SQL helpers used by query analysis and code generation.
Summary
Functions
Returns true when sql contains a single statement (ignoring comments/strings).
Types
@type identifier_reason() :: :empty | {:invalid_grapheme, non_neg_integer(), String.t()}
Functions
@spec identifier_error(String.t()) :: identifier_reason() | nil
@spec infer_parameter_names(String.t()) :: %{required(pos_integer()) => String.t()}
Returns true when sql contains a single statement (ignoring comments/strings).
A trailing semicolon is allowed. Additional ; separators are rejected so
callers can safely wrap the SQL in EXPLAIN over the simple query protocol.