Expand description
Recognition of the Origin query functions from the parsed statement.
VERIFY_AUDIT_CHAIN, VERIFY_HASH_CHAIN, BALANCE_AS_OF,
TEMPORAL_LOOKUP, VERIFY_BALANCE and CONVERT_CURRENCY_LOOKUP each run
as a whole statement: SELECT <FUNC>(<literal>, ...). A lexer gate keeps
the extra parse off ordinary statements. It passes only a SELECT whose
plain text (outside literals, quoted identifiers and comments) names one of
the functions. The parsed AST then decides.
Structs§
- Balance
AsOf Args BALANCE_AS_OF(collection, key, column, timestamp).- Convert
Currency Lookup Args CONVERT_CURRENCY_LOOKUP(amount, from, to, rate_table, as_of, key_column, rate_column, time_column, precision).- Temporal
Lookup Args TEMPORAL_LOOKUP(table, key_value, as_of, key_column, time_column).- Verify
Audit Chain Args VERIFY_AUDIT_CHAIN([from_seq [, to_seq]]).- Verify
Balance Args VERIFY_BALANCE(collection, column).- Verify
Hash Chain Args VERIFY_HASH_CHAIN(collection).
Enums§
- Query
Function - One query function.
- Query
Function Call - One recognized call. Each argument holds the literal’s text: a string’s content (quotes removed, escapes resolved) or a number as written.
Functions§
- parse_
query_ function - Recognize a query-function statement.