cel2sql
Convert CEL expressions into SQL for six databases
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install cel2sql?โผ
Run `npx skills add SPANDigital/cel2sql --all -g -y` in your terminal to install all skills in this suite globally.
What does cel2sql do?โผ
It converts CEL (Common Expression Language) filter expressions into SQL WHERE conditions for PostgreSQL, MySQL, SQLite, DuckDB, BigQuery, and Spark SQL, with type checking and injection protection built in.
How do I add a new SQL dialect to cel2sql?โผ
The add-sql-dialect skill walks the agent through registering the dialect name, implementing the Dialect interface, adding a type provider, and populating shared test cases.
Does cel2sql protect against SQL injection?โผ
Yes. It validates field names, escapes JSON paths, limits recursion depth and output length, and blocks dangerous regex patterns by default.
Can cel2sql recommend database indexes?โผ
Yes. The AnalyzeQuery function inspects your CEL expression and suggests dialect-specific indexes such as B-tree, GIN, or clustering based on the query patterns it detects.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core