clj-r2dbc.impl.sql.params

Statement parameter binding utilities for clj-r2dbc.

Provides:
  bind-params! - binds a sequential of parameters to an R2DBC Statement.

This namespace is an implementation detail; do not use from application code.

bind-params!

(bind-params! stmt params)
Bind a sequential collection of parameters to stmt by index.

Fast paths for the three most common types (nil, String, Long) bypass protocol
dispatch entirely. All other types fall through to clj-r2dbc.row/Parameter,
which remains the authoritative write-path extension point.

Args:
  stmt   - the R2DBC Statement to bind parameters to.
  params - sequential collection of parameter values; nil or empty is a no-op.

Returns stmt for chaining. When params is nil or empty, stmt is returned unchanged.

Example:
  (bind-params! stmt [1 "hello" nil])