Ir al contenido
verdict:

Drizzle ORM 1.0.0-beta.19

preview

note: la síntesis y las notas de la versión están en inglés

note: sin síntesis para esta release más antigua

Sintetizamos las releases recientes. Las notas de la versión originales de esta versión están aquí abajo.

release-notesgithub.com/drizzle-team/drizzle-orm · 51 líneas
  1. ## New Features
  2. ### `sqlcommenter` support for PostgreSQL and MySQL
  3. You can now add custom tags to the query. These tags will be appended to the end of each query, helping the database add metadata/tags to it. This will be especially useful with PlanetScale’s new [Database Traffic Control](https://planetscale.com/blog/introducing-database-traffic-control) feature
  4. ```ts
  5. // raw string support
  6. db.select().from().comment("key='val'");
  7. db.select().from().comment("my_first_tag");
  8. // developer friendly dedicated to tags
  9. db.select().from().comment({ key: 'val' });
  10. ```
  11. Example:
  12. ```ts
  13. db.select().from(comments).comment({ priority: 'high', category: "analytics" });
  14. ```
  15. ```sql
  16. select "id", "name" from "comments" /*priority='high',category='analytics'*/
  17. ```
  18. The only limitation is that you can't use comments with a prepared statement:
  19. ```ts
  20. // can't be used
  21. const p = db.select().from().prepare();
  22. // ❌
  23. p.comment({ key: 'val' }).execute();
  24. ```
  25. ## Bug fixes
  26. - [Fixed error message for the defineRelations function](https://github.com/drizzle-team/drizzle-orm/issues/5350)
  27. - [[BUG]: drizzle-kit push attempts to drop policies in excluded schemas (e.g. cron) despite schemaFilter: ["public"]](https://github.com/drizzle-team/drizzle-orm/issues/5329)
  28. - [[BUG]: error attempting to drizzle-kit migrate table with char array field generated using drizzle-kit generate](https://github.com/drizzle-team/drizzle-orm/issues/5370)
  29. - [[BUG]: Ignore Vim *.swp files in drizzle-kit generate](https://github.com/drizzle-team/drizzle-orm/issues/4906)
  30. - [[BUG]: drizzle-kit pull outputs access method name instead of operator class for ivfflat indexes](https://github.com/drizzle-team/drizzle-orm/issues/5495)
  31. - [[BUG]: drizzle-kit pull generates not enough data provided to build the relation](https://github.com/drizzle-team/drizzle-orm/issues/5493)
  32. - [drizzle-kit push fails with Turso/libSQL on table recreation: "cannot commit - no transaction is active"](https://github.com/drizzle-team/drizzle-orm/issues/5489)
  33. - [[BUG]: Cannot read properties of undefined (reading 'requestLayout') when running drizzle-kit introspect (MySQL)](https://github.com/drizzle-team/drizzle-orm/issues/5488)
  34. - [[BUG (beta)]: RDS Data API pulling schema error](https://github.com/drizzle-team/drizzle-orm/issues/5308)
  35. - [[BUG]: drizzle-kit commutative migrations takes only last leaf migration into account](https://github.com/drizzle-team/drizzle-orm/issues/5504)
  36. ## Updates
  37. - Updated `migrate()` function for mysql dialect to correctly manage multiple databases
  38. - The behavior for reading schema files has been updated. From now only files with the following extensions will be processed: `.js` `.mjs` `.cjs` `.jsx` `.ts` `.mts` `.cts` `.tsx`. All other file types will be ignored

ver en githubimported 2026-09-28 vía npm