Skip to content

Commit e7fabe3

Browse files
committed
+
1 parent 9133b1c commit e7fabe3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/content/documentation/docs/tutorials/drizzle-with-db/drizzle-with-turso.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,13 @@ Create a `index.ts` file in the `src/db` directory and set up your database conf
9292
```typescript copy filename="src/db/index.ts"
9393
import { config } from 'dotenv';
9494
import { drizzle } from 'drizzle-orm/libsql';
95-
import { createClient } from '@libsql/client';
9695

9796
config({ path: '.env' }); // or .env.local
9897

99-
const client = createClient({
98+
export const db = drizzle({ connection: {
10099
url: process.env.TURSO_CONNECTION_URL!,
101100
authToken: process.env.TURSO_AUTH_TOKEN!,
102-
});
103-
104-
export const db = drizzle({ client });
101+
}});
105102
```
106103

107104
#### Create tables

0 commit comments

Comments
 (0)