New Features
Added Gel
dialect support and gel-js
client support
Drizzle is getting a new Gel
dialect with its own types and Gel-specific logic. In this first iteration, almost all query-building features have been copied from the PostgreSQL
dialect since Gel is fully PostgreSQL-compatible. The only change in this iteration is the data types. The Gel dialect has a different set of available data types, and all mappings for these types have been designed to avoid any extra conversions on Drizzle's side. This means you will insert and select exactly the same data as supported by the Gel protocol.
Drizzle + Gel integration will work only through drizzle-kit pull
. Drizzle won't support generate
, migrate
, or push
features in this case. Instead, drizzle-kit is used solely to pull the Drizzle schema from the Gel database, which can then be used in your drizzle-orm
queries.
The Gel + Drizzle workflow:
- Use the
gel
CLI to manage your schema. - Use the
gel
CLI to generate and apply migrations to the database. - Use drizzle-kit to pull the Gel database schema into a Drizzle schema.
- Use drizzle-orm with gel-js to query the Gel database.
On the drizzle-kit side you can now use dialect: "gel"
// drizzle.config.ts
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
dialect: 'gel',
});
For a complete Get Started tutorial you can use our new guides: