Expand description
The integer-argument sites’ authored texts.
Written once so every layer that raises a site’s rejection reads the
same text: the planner’s checks at plan time and, for the sites with a
runtime coercion, the executor’s argument coercion at run time. The
slice bounds are plan-time only — their runtime coercion has no type
rejection — and SKIP / LIMIT carry their own planner tokens.
crate::FUNCTION_REQUIRES_ONE_ARGUMENT sets the precedent for a
rejection spelling shared across layers. The CALL { … } IN TRANSACTIONS modifier sites (the batch size, the concurrency hint,
REL8-2179) are rows in the same table: the planner’s literal check
and the executor’s runtime coercion read one row, so the plan-time
and run-time spellings cannot diverge.
Structs§
- Integer
ArgSite - One ADR-0175 function-argument site’s authored texts.
Constants§
- LEFT_
LENGTH - LIST_
INDEX - RANGE_
END - RANGE_
START - RANGE_
STEP - RIGHT_
LENGTH - SLICE_
END - SLICE_
START - SUBSTRING_
LENGTH - SUBSTRING_
START - TX_
BATCH_ SIZE - The
CALL { … } IN TRANSACTIONSmodifier sites (REL8-2179): theOF n ROWSbatch size and theIN n CONCURRENT TRANSACTIONShint. Both fields carry the class mapping, stated once:type_erroris the plan-timeInvalidArgumentTypesentence a non-INTEGER literal rejects with and the runtime wrong-typed (TypeError) detail;rangeis the plan-timeInvalidArgumentsentence a non-positive INTEGER literal rejects with and the runtimeNumberOutOfRange(ArgumentError) detail for the batch size — a whole sentence, where a function site’srangenames its site. - TX_
CONCURRENCY - TX_
RETRY_ DURATION - The
ON ERROR RETRY … WAIT nretry duration: the plan-time shape gate’s two sentences — the non-numeric rejection’s type text and the negative-duration rejection’s range text.
Functions§
- range_
text - A site’s range sentence — the one accessor every layer reads (the
planner’s non-positive literal arms through
crate::invalid_argument_text, the executor’s runtimeNumberOutOfRangedetail directly), owning the coercion-site invariant thestring_index_argsites already rely on.