TriggerSQL is a DSL that is safely converted into ClickHouse SQL queries with protection against SQL injection and it's tenant-safe (users can only query their own data).
This package is derived from PostHog's HogQL (MIT License). See NOTICE.md for the full copyright notice.
The ANTLR grammar is heavily inspired by PostHog's HogQL.
These are found in ./src/grammar and are the .g4 files.
pnpm run grammar:build