mgsql

JSON →
library 0.2.21 ·javascript
verified Jun 5, 2026

A lightweight SQL utility library for Node.js that normalizes PostgreSQL and MySQL query building and execution. Current version 0.2.21. Provides a unified API with schema-aware insert/update validation, query builders (SELECT, INSERT, UPDATE), auto-parameter conversion (? -> $1 for Postgres), and result formatting. Differentiators: automatic column validation against database schema, logging support, and a simple builder pattern. Released under the MIT license by MacLaurin Group.