SQL Reference
LiteJoin uses SQLite’s SQL dialect for join and window queries. Since all stream data is stored in SQLite tables, you have access to the full power of SQLite’s query engine.
Table Schema
Every topic maps to a SQLite table with this schema:
Querying JSON Payloads
Use SQLite’s json_extract() function to access fields inside the JSON payload:
Common JSON Functions
Time Filtering
Use timestamp and strftime() to limit queries to recent data:
Always include a time-bounded WHERE clause in join queries. Without it, queries scan the entire topic table, which degrades performance as data accumulates.
Aggregations
Standard SQL aggregate functions:
String Functions
Conditional Logic
Type Casting
Full SQLite Reference
LiteJoin supports the complete SQLite SQL dialect. For the full reference, see the SQLite documentation.