{"library":"dbgate-query-splitter","type":"library","category":null,"description":"dbgate-query-splitter is a utility library designed to efficiently break down long SQL queries into individual statements. Currently at version 4.12.0, it is actively maintained with a focus on high performance and a zero-dependency footprint. The library supports a wide array of SQL dialects including MySQL, PostgreSQL, SQLite, Microsoft SQL Server, and Oracle, handling complex syntax elements like comments, dollar strings, GO separators, custom delimiters, and `SET SQLTERMINATOR`. A key differentiator is its robust streaming support for Node.js environments, allowing processing of large SQL files without loading them entirely into memory. It also provides an option to return rich metadata, including line and column numbers, for each split statement, which is useful for tooling and error reporting.","language":"javascript","status":"active","version":"4.12.0","tags":["javascript","SQL","query","split","parse","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dbgate-query-splitter","imports":["import { splitQuery } from 'dbgate-query-splitter';","import { mysqlSplitterOptions } from 'dbgate-query-splitter';","import { splitQueryStream } from 'dbgate-query-splitter/lib/splitQueryStream';"]},{"cmd":"yarn add dbgate-query-splitter","imports":[]},{"cmd":"pnpm add dbgate-query-splitter","imports":[]}],"homepage":"https://www.dbgate.io","github":"https://github.com/dbgate/dbgate-query-splitter","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dbgate-query-splitter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dbgate-query-splitter/compatibility"}}