Expand description
Query template parsing and parameter resolution for SQL components.
This module provides parsing of Camel-style SQL templates with parameter placeholders and resolution of those parameters from an Exchange.
TODO(SQL-006): Named parameters using :name-style syntax (e.g.
SELECT * FROM users WHERE name = :name) are not yet supported in
downstream SQL execution. The query template parser supports :#name
(Camel-style :# prefix) and positional #, but the underlying database
driver binding currently only supports positional $1, $2, ... params.
Structs§
- Prepared
Query - A fully resolved query ready for execution.
- Query
Template - A parsed query template with fragments and parameter slots.
Enums§
- Param
Slot - A parsed parameter slot in a query template.
Functions§
- is_
select_ query - Returns true if SQL should run through select path.
- parse_
query_ template - Parses a Camel-style SQL template into fragments and parameter slots.
- resolve_
params - Resolves parameter values from the exchange and builds the final SQL.
- resolve_
params_ default