postgres-semicolons

JSON →
library 0.1.2 ·javascript
verified Jun 5, 2026

Splits Postgres SQL strings into statements by semicolons, correctly handling string literals, dollar-quoting, nested comments, and identifiers. Version 0.1.2 is stable. Uses sticky RegExps for efficient parsing. Ships TypeScript types. Minimal alternative to full SQL parsers for statement splitting.