File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
components/markdown/get-started/sqlite
content/documentation/docs Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ Create a `index.ts` file in the `src` directory and initialize the connection:
5
5
<CodeTabs items = { [" libsql" , " libsql with config" ]} >
6
6
``` typescript copy
7
7
import ' dotenv/config' ;
8
- import { drizzle } from ' drizzle-orm/bun: sqlite' ;
8
+ import { drizzle } from ' drizzle-orm/bun- sqlite' ;
9
9
10
10
const db = drizzle (process .env .DB_FILE_NAME ! );
11
11
```
12
12
``` typescript copy
13
13
import ' dotenv/config' ;
14
- import { drizzle } from ' drizzle-orm/bun: sqlite' ;
14
+ import { drizzle } from ' drizzle-orm/bun- sqlite' ;
15
15
16
16
// You can specify any property from the libsql connection options
17
17
const db = drizzle ({ connection: { source: process .env .DB_FILE_NAME ! }});
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ drizzle-orm
30
30
31
31
#### Step 2 - Initialize the driver and make a query
32
32
``` typescript copy
33
- import { drizzle } from ' drizzle-orm/bun: sqlite' ;
33
+ import { drizzle } from ' drizzle-orm/bun- sqlite' ;
34
34
35
35
const db = drizzle ();
36
36
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const db = drizzle({ connection: env.DB });
107
107
And yes, we do support runtime specific drivers like [ Bun SQLite] ( /docs/connect-bun-sqlite ) or [ Expo SQLite] ( /docs/connect-expo-sqlite ) :
108
108
<Section >
109
109
``` ts
110
- import { drizzle } from " drizzle-orm/bun: sqlite"
110
+ import { drizzle } from " drizzle-orm/bun- sqlite"
111
111
112
112
const db = drizzle (); // <--- will create an in-memory db
113
113
const db = drizzle (" ./sqlite.db" );
You can’t perform that action at this time.
0 commit comments