We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9133b1c commit e7fabe3Copy full SHA for e7fabe3
src/content/documentation/docs/tutorials/drizzle-with-db/drizzle-with-turso.mdx
@@ -92,16 +92,13 @@ Create a `index.ts` file in the `src/db` directory and set up your database conf
92
```typescript copy filename="src/db/index.ts"
93
import { config } from 'dotenv';
94
import { drizzle } from 'drizzle-orm/libsql';
95
-import { createClient } from '@libsql/client';
96
97
config({ path: '.env' }); // or .env.local
98
99
-const client = createClient({
+export const db = drizzle({ connection: {
100
url: process.env.TURSO_CONNECTION_URL!,
101
authToken: process.env.TURSO_AUTH_TOKEN!,
102
-});
103
-
104
-export const db = drizzle({ client });
+}});
105
```
106
107
#### Create tables
0 commit comments