JQL2SQL (v0.0.14) transpiles JQL (Jira Query Language) into parameterized SQL queries for safe, flexible searching. It uses a custom parser built with nearley to convert JQL to an AST, then transpiles to SQL WHERE clauses. This package is in early development with irregular releases. Key differentiators: focused solely on JQL-to-SQL conversion, no query execution, and aims for SQL injection safety by generating parameterized queries. Alternatives like jql-parser or custom lexers require more boilerplate.
npm install jql2sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile a JQL string into a parameterized SQL WHERE clause and parameters array.
Pin to exact version and test upgrades thoroughly.
Avoid custom functions or wait for future release.
Use `=` for exact match, `is` for partial match (adds %).
Verify SQL dialect compatibility; test against your DB.
Use `import jql2sql from 'jql2sql'` or in CommonJS: `const { default: jql2sql } = require('jql2sql');`Replace 'does' with 'is' or '=' depending on intended meaning.
Remove custom functions from JQL string or wait for feature update.