DrizzleORM v0.29.2 release
Dec 25, 2023
Fixes:
- Added improvements to the planescale relational tests (#1579)
- FIX: correct string escaping for empty PgArrays (#1640)
- Fix wrong syntax for exists fn in sqlite (#1647)
- Properly handle dates in AWS Data API
- Fix Hermes mixins constructor issue
ESLint Drizzle Plugin, v0.2.3
🎉 [ESLint] Add support for functions and improve error messages
- Allowed Drizzle object to be or to be retrieved from a function, e.g.
- Added better context to the suggestion in the error message.
For more info you can check docs
New Drivers
🎉 Expo SQLite Driver is available
For starting with Expo SQLite Driver, you need to install expo-sqlite
and drizzle-orm
packages.
Then, you can use it like this:
If you want to use Drizzle Migrations, you need to update babel and metro configuration files.
- Install
babel-plugin-inline-import
package.
- Update
babel.config.js
and metro.config.js
files.
- Create
drizzle.config.ts
file in your project root folder.
After creating schema file and drizzle.config.ts file, you can generate migrations like this:
Then you need to import migrations.js
file in your App.tsx
file from ./drizzle
folder and use hook useMigrations
or migrate
function.