A minimal SQL interpreter written in JavaScript, using the jiwson parser generator for ES6 compatibility. Version 0.22.3 is the current stable release; the package is updated infrequently. It provides a simple interface to parse and execute basic SQL statements like SELECT, INSERT, UPDATE, and DELETE. Unlike full-fledged databases or query builders, mini-sql is lightweight and works purely in-memory, making it suitable for educational purposes or small-scale tooling where a full SQL engine is overkill.
npm install mini-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the default parser, parse a SELECT query, and handle parse errors.
Use the default import and call parser.parse(sql)
Only use simple SELECT, INSERT, UPDATE, DELETE without joins or subqueries.
Use synchronous return: const result = parser.parse(sql) instead of parser.parse(sql, callback)
Rewrite query without JOIN, or use a different SQL engine.
Use import parser from 'mini-sql' instead of require('mini-sql')Do not use mini-sql with sqlite3. Use better-sqlite3 or sql.js for actual database operations.
No dependency data recorded yet.