Parse SQLite SQL syntax into an abstract syntax tree (AST). Version 0.0.7 is the latest. This package provides a lightweight, typed AST for SQLite queries, built on top of a parser generated from the SQLite grammar. It supports both parsing of raw SQL and a tagged template literal for safe query construction. Requires Node.js 22+. Features type definitions included, making it suitable for TypeScript projects. The library is minimal with no runtime dependencies.
npm install sqlite-astNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a SQLite SELECT statement using the `sql` tagged template and prints the resulting AST.
Upgrade Node.js to version 22 or later.
Use dynamic import() or set type:"module" in package.json.
Pin exact version and review AST changes when upgrading.
Use parameterized queries separately; sql only interpolates values as literals.
Run `npm install sqlite-ast`
Change to import or use dynamic import().
Use import { parseSqlite } from 'sqlite-ast' without 'new'.No dependency data recorded yet.