You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support server-side parameter binding via /v1/query params field
ref #759
When the server supports it (version > 1.2.900), send raw SQL with a
JSON `params` field instead of interpolating parameters client-side.
Falls back to client-side interpolation for older servers or when SQL
contains `$N` column position placeholders (which the server uses for
stage column refs).
Changes:
- Add `params` field to `QueryRequest` (core)
- Add `server_side_params` capability flag with version threshold
- Thread params through `start_query` / `query_all` in core client
- Add `Params::to_json_value()` with `sql_string_to_json()` reverse parser
- Add `PlaceholderVisitor::has_dollar_positions()` for `$N` detection
- Add `*_with_params()` methods to `IConnection` trait with defaults
- Override in `RestAPIConnection` to pass params to server
- Route in `QueryBuilder`/`ExecBuilder`: server-side when supported and
no `$N`, client-side otherwise
- Add `to_json_params()` helper in Python bindings for future use
0 commit comments