Skip to main content

Module integer_args

Module integer_args 

Source
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§

IntegerArgSite
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 TRANSACTIONS modifier sites (REL8-2179): the OF n ROWS batch size and the IN n CONCURRENT TRANSACTIONS hint. Both fields carry the class mapping, stated once: type_error is the plan-time InvalidArgumentType sentence a non-INTEGER literal rejects with and the runtime wrong-typed (TypeError) detail; range is the plan-time InvalidArgument sentence a non-positive INTEGER literal rejects with and the runtime NumberOutOfRange (ArgumentError) detail for the batch size — a whole sentence, where a function site’s range names its site.
TX_CONCURRENCY
TX_RETRY_DURATION
The ON ERROR RETRY … WAIT n retry 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 runtime NumberOutOfRange detail directly), owning the coercion-site invariant the string_index_arg sites already rely on.