Skip to main content

Module bindpoints

Module bindpoints 

Source
Expand description

Bind point detection and field classification.

Scans op template fields to detect {name} bind point references and {{expr}} inline binding definitions. Classifies fields as static (no bind points) or dynamic (has bind points).

Structs§

CaptureParseResult
Result of parsing capture points from a string.
CapturePoint

Enums§

BindPoint
A detected bind point in an op template field.
BindQualifier
Namespace qualifier for a bind point reference.
CaptureAgg
A capture point extracted from an op template.
FieldType
The classification of an op template field value.
LvalueSpec
Workload-author lvalue assertion attached to a BindPoint::Reference.

Functions§

classify_field
Scan a string value for bind points and classify it.
extract_bind_points
Extract all bind points from a string.
is_expression_public
Detect whether bind point content is a Polydat expression (not a simple name).
parse_capture_points
Parse capture points from an op template string.
referenced_bindings
Extract all referenced binding names from a string (only {name}, not {{expr}}). Returns the bare name without qualifier.
replace_bind_points_with_markers
Replace {name} bind point references with ? markers for CQL prepared statements. Returns the parameterized statement.
split_lvalue_spec
Public form of [extract_lvalue_spec] for adapters that need to interleave bind-point processing with text generation (e.g., the cassandra-cpp resolve_structural_and_mark_remaining walker, which scans the statement text char-by-char and must strip a lvalue-spec suffix from a bind-point body before deciding whether to inline-resolve or ?-mark the position).