-
-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcd8e38
commit d5c45a6
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
# New Drivers | ||
## Fixes | ||
|
||
## 🎉 Expo SQLite Driver is available | ||
- Added improvements to the planescale relational tests #1579 - thanks @Angelelz | ||
- [Pg] FIX: correct string escaping for empty PgArrays #1640 - thanks @Angelelz | ||
- Fix wrong syntax for exists fn in sqlite #1647 - thanks @Angelelz | ||
- Properly handle dates in AWS Data API | ||
- Fix Hermes mixins constructor issue | ||
|
||
## ESLint Drizzle Plugin, v0.2.3 | ||
|
||
``` | ||
npm i [email protected] | ||
``` | ||
|
||
🎉 **[ESLint] Add support for functions and improve error messages #1586 - thanks @ngregrichardson** | ||
|
||
- Allowed Drizzle object to be or to be retrieved from a function, e.g. | ||
- Added better context to the suggestion in the error message. | ||
|
||
## New Drivers | ||
|
||
### 🎉 Expo SQLite Driver is available | ||
|
||
For starting with Expo SQLite Driver, you need to install `expo-sqlite` and `drizzle-orm` packages. | ||
|
||
|
@@ -40,6 +59,7 @@ npm install babel-plugin-inline-import | |
2. Update `babel.config.js` and `metro.config.js` files. | ||
|
||
babel.config.js | ||
|
||
```diff | ||
module.exports = function(api) { | ||
api.cache(true); | ||
|
@@ -52,6 +72,7 @@ module.exports = function(api) { | |
``` | ||
|
||
metro.config.js | ||
|
||
```diff | ||
const { getDefaultConfig } = require('expo/metro-config'); | ||
|
||
|
@@ -66,12 +87,12 @@ module.exports = config; | |
3. Create `drizzle.config.ts` file in your project root folder. | ||
|
||
```ts | ||
import type { Config } from "drizzle-kit"; | ||
import type { Config } from 'drizzle-kit'; | ||
|
||
export default { | ||
schema: "./db/schema.ts", | ||
out: "./drizzle", | ||
driver: "expo", | ||
schema: './db/schema.ts', | ||
out: './drizzle', | ||
driver: 'expo', | ||
} satisfies Config; | ||
``` | ||
|
||
|
@@ -114,4 +135,4 @@ export default function App() { | |
|
||
return ...your application component; | ||
} | ||
``` | ||
``` |
Binary file not shown.