[Snyk] Upgrade drizzle-orm from 0.39.3 to 0.40.0 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade drizzle-orm from 0.39.3 to 0.40.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 9 versions ahead of your current version.
The recommended version was released 21 days ago.
Release notes
Package name: drizzle-orm
New Features
Added
Gel
dialect support andgel-js
client supportDrizzle 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 thePostgreSQL
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 supportgenerate
,migrate
, orpush
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 yourdrizzle-orm
queries.The Gel + Drizzle workflow:
gel
CLI to manage your schema.gel
CLI to generate and apply migrations to the database.Here is a small example of how to connect to Gel using Drizzle:
import { drizzle } from "drizzle-orm/gel";
import { createClient } from "gel";
const gelClient = createClient();
const db = drizzle({ client: gelClient });
const result = await db.execute('select 1');
and drizzle-gel schema definition
import { sql } from "drizzle-orm"
export const users = gelTable("users", {
id: uuid().default(sql
uuid_generate_v4()
).primaryKey(),age: smallint(),
email: text().notNull(),
name: text(),
});
On the drizzle-kit side you can now use
dialect: "gel"
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
dialect: 'gel',
});
For a complete Get Started tutorial you can use our new guides:
react
from peerDependenciesImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: