DriftSQL

JSON →
library 2.0.0-beta.6 ·javascript
verified Jun 7, 2026

DriftSQL is a modern, type-safe SQL client for TypeScript, currently in beta (v2.0.0-beta.6). It provides a built-in schema builder and migration system, allowing developers to define database schemas in code and migrate automatically. Key differentiators include full TypeScript type inference from schema definitions, lightweight zero-dependency core, and a query builder that prevents runtime errors by catching type mismatches at compile time. Unlike traditional ORMs, it focuses on type safety without sacrificing performance. It supports PostgreSQL and SQLite, with Community-provided drivers for MySQL and MSSQL.