Skip to content

Releases: drizzle-team/drizzle-orm

0.24.5

23 Apr 08:31
e5597eb
Compare
Choose a tag to compare
  • Add possibility to have placeholders in .limit() and .offset()
const stmt = db
  .select({
    id: usersTable.id,
    name: usersTable.name,
  })
  .from(usersTable)
  .limit(placeholder('limit'))
  .offset(placeholder('offset'))
  .prepare('stmt');

const result = await stmt.execute({ limit: 1, offset: 1 });

0.24.4

19 Apr 19:10
ad72b8a
Compare
Choose a tag to compare
  • 🐛 Added verbose error when .values() is called without values (#441)
  • 🐛 Fixed nested PG arrays mapping (#460)
  • ❗ Removed spread syntax in .values() (#269)
  • 🐛 Fixed passing undefined as field value to insert/update (#375)

0.24.3

19 Apr 16:28
442aac3
Compare
Choose a tag to compare
  • 🐛 Fixed query generation when selecting from alias

0.24.2

18 Apr 21:30
b003e52
Compare
Choose a tag to compare
  • 🐛 Pool connections opened for transactions are now closed after the transaction is committed or rolled back

0.24.1

18 Apr 15:21
ae6c73b
Compare
Choose a tag to compare

Bugs

🐛 Fix onConflict targets in #475 - thanks @wkunert ❤️

Documentation

Thanks to @tmcw we have started our way to get JSDoc documentation

📄 JSDoc for conditions in #467 - thanks @tmcw ❤️

0.24.0

17 Apr 18:28
86cb375
Compare
Choose a tag to compare
  • 🎉 Added iterator support to mysql2 (sponsored by @rizen ❤). Read more in the docs
  • .prepare() in MySQL no longer requires a name argument

0.23.13

14 Apr 21:52
490de7b
Compare
Choose a tag to compare
  • 🎉 All enum and text enum columns now have a properly typed enumValues property

0.23.12

14 Apr 18:58
6e1aa47
Compare
Choose a tag to compare
  • 🐛 Fixed multi-level join results (e.g. joining a subquery with a nested join)

0.23.11

11 Apr 18:26
4645e6f
Compare
Choose a tag to compare
  • 🐛 Fix migrator function for PostgreSQL

Would suggest to upgrade to this version anyone who is using postgres dialect. 0.23.9 and 0.23.10 are broken for postgresql migrations

0.23.10

10 Apr 08:41
67ab2ea
Compare
Choose a tag to compare
  • 🐛 Added missing config argument to transactions API
  • 🐛 Fixed Postgres and MySQL schema declaration (#427)