A SQL parser built on top of the MIRABOW parsing library, designed to parse standard SQL and SQLite dialects. Current version is 0.0.20, with a low release cadence. Key differentiators include support for multiple SQL statements, ability to extract specific parts via matchers (e.g., SELECT, UPDATE, DELETE), and TypeScript support with no runtime dependencies beyond the core MIRABOW library. Works in browser and Node.js environments.
npm install mirabow-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a SELECT SQL statement using statementsMatcher and extracts selected columns and table name.
Install both packages: npm install mirabow mirabow-sql
Use provided Key objects (like selectKey, statementKey) instead of hardcoding string keys
Always invoke the matcher function (e.g., statementsMatcher()) inside execute, not pass the function reference.
Run 'npm install mirabow' alongside mirabow-sql
Change import to: import { execute } from 'mirabow'Import ExecuteResult type from 'mirabow': import { ExecuteResult } from 'mirabow'