Expand description
Lookup data for geographic, currency, and locale-based operators.
This module provides static lookup tables used by rich filter operators that require knowledge of external data (countries, currencies, timezones, etc.).
§Data Structure
Lookup tables are embedded as JSON in the compiled schema metadata, enabling the runtime to perform lookups without external dependencies:
{
"countries": {
"US": { "continent": "North America", "regions": ["Americas"], "in_eu": false, "in_schengen": false },
"FR": { "continent": "Europe", "regions": ["Europe"], "in_eu": true, "in_schengen": true },
...
},
"currencies": {
"USD": { "name": "US Dollar", "symbol": "$" },
"EUR": { "name": "Euro", "symbol": "€" },
...
},
"timezones": {
"UTC": { "offset": 0, "dst": false },
"EST": { "offset": -300, "dst": true },
...
}
}§Lookup Operators
These operators use the lookup data at runtime:
- Country: continent, region, EU/Schengen membership
- Currency: code, symbol, decimal places
- Timezone: UTC offset, daylight saving time
- Language: language family
- Locale: language, country, script
Functions§
- build_
lookup_ data - Build lookup data for rich filter operators.