github drizzle-team/drizzle-orm 0.23.9

18 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.