next-sql - Next-gen SQL connector with relational linking

JSON →
library 1.0.16 ·javascript
verified Jun 5, 2026

next-sql is a Node.js SQL connector and query builder that provides an easy way to query SQL databases and create relationship-linked objects. The current stable version is 1.0.16, released as pre-alpha. It offers a simple API for standard queries, fallback queries, batch insert/update, pagination, and transaction support. Key differentiators include built-in relationship mapping (toOne/toMany/fromOne) without schema configuration, support for multiple hosts, and compatibility with mysql, mysql2, and PlanetScale database drivers. The release cadence is irregular as it is actively developed. Compared to alternatives like Knex or Prisma, next-sql focuses on simplicity and relational linking but lacks schema migrations and advanced type safety.