github drizzle-team/drizzle-orm 0.23.9

latest releases: 0.36.1, drizzle-kit@0.28.0, drizzle-kit@0.27.2...
19 months ago

Transactions support 🎉

You can now use transactions with all the supported databases and drivers.

node-postgres example:

await db.transaction(async (tx) => {
  await tx.insert(users).values(newUser);
  await tx.update(users).set({ name: 'Mr. Dan' }).where(eq(users.name, 'Dan'));
  await tx.delete(users).where(eq(users.name, 'Dan'));
});

For more information, see transactions docs:

  • PostgreSQL
  • MySQL
  • SQLite

Don't miss a new drizzle-orm release

NewReleases is sending notifications on new releases.