A JavaScript library for parsing CRUD (Create, Retrieve, Update, Delete) SQL queries into an AST. Currently at version 2.0.0-alpha.1 with sporadic maintenance. Supports basic SELECT, INSERT, UPDATE, DELETE statements. Limited documentation and unmaintained since 2014; alternative libraries like 'sql-parser' or 'node-sql-parser' are more robust. For legacy projects only.
npm install simple-sql-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a SELECT SQL query into an AST structure showing columns, tables, where clause, and ordering.
Migrate to actively maintained alternatives like node-sql-parser.
Pre-validate SQL or use a more comprehensive parser.
Check source code on GitHub for API usage.
Define own interfaces or use a parser with built-in types.
import { parse } from 'simple-sql-parser';npm install simple-sql-parser@2.0.0-alpha.1
Use a more complete SQL parser like 'node-sql-parser'.
No dependency data recorded yet.