Skip to main content

Module expressions

Module expressions 

Source

StructsΒ§

FieldIndex
A field index (e.g., parsed from β€œ$0” -> 0).
FunctionArguments πŸ”’
The parenthesized arguments of a function call ((expr, expr, ...)), each parsed as a value argument.
FunctionReference πŸ”’
An unresolved reference to a function: its compound name plus an optional explicit anchor.
Name

EnumsΒ§

IntervalDayError πŸ”’

ConstantsΒ§

UNSIGNED_FLOAT_KIND πŸ”’
UNSIGNED_INT_KIND πŸ”’

FunctionsΒ§

check_supported_precision πŸ”’
duration_to_precision_units πŸ”’
Convert a chrono::Duration to the units implied by precision. Errors if duration overflows the target unit’s i64 range, or if duration carries a fractional component finer than precision can represent (e.g. .999 seconds can’t be represented exactly at precision 0).
interval_day_from_pair πŸ”’
Convert a matched Rule::interval_day_duration into an IntervalDayToSecond at precision.
parse_date_to_days πŸ”’
Parse a date string using chrono to days since Unix epoch
parse_duration_number πŸ”’
Parse the integer part of a duration term, e.g. the -5 of -5d.
parse_interval_day_duration πŸ”’
Parse the contents of an interval_day literal string - e.g. β€œ5d”, β€œ4d 5s”, β€œ5d 3s 100ns”, β€œ-5d -3s” - into an IntervalDayToSecond with the sub-second precision taken from the literal’s type ascription.
parse_time_to_microseconds πŸ”’
Parse a time string to microseconds(precision 6) since midnight.
parse_time_to_precision_units πŸ”’
Parse a time-of-day string using chrono to a value in the given precision’s units since midnight.
parse_timestamp_to_microseconds πŸ”’
Parse a timestamp string to microseconds since Unix epoch.
parse_timestamp_to_precision_units πŸ”’
Parse a timestamp string using chrono to a value in the given precision’s units since the Unix epoch.
to_boolean_literal πŸ”’
to_float_literal πŸ”’
to_int_literal πŸ”’
to_null_literal πŸ”’
to_string_literal πŸ”’