sql-dialect

JSON →
library 5.0.1 ·javascript
verified Jun 5, 2026

SQL builder library providing query builders independent of any database connection library. Current stable version is 5.0.1. It supports MySQL, PostgreSQL, and SQLite dialects, and uses prefix notation (Polish notation) for building complex queries. Key differentiators: provides SELECT, UPDATE, INSERT, DELETE, CREATE TABLE, and DROP TABLE operations; automatic quoting and escaping to prevent SQL injection; allows injecting custom quoter functions for database-specific quoting; does not handle query execution, only SQL generation. Release cadence is irregular; minor versions occasionally introduce breaking changes.