Spaces:
Sleeping
Sleeping
Download src/db/client.ts from Shurem/Better-Auth: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/spaces/Shurem/Better-Auth/resolve/main/src/db/client.ts
- Command line
-
hf download hf://spaces/Shurem/Better-Auth/src/db/client.ts
-
curl -L -o client.ts https://huggingface.co/spaces/Shurem/Better-Auth/resolve/main/src/db/client.ts
251 Bytes
| import { neon } from '@neondatabase/serverless'; | |
| import { drizzle } from 'drizzle-orm/neon-http'; | |
| import * as schema from './schema.js'; | |
| import 'dotenv/config'; | |
| const sql = neon(process.env.DATABASE_URL!); | |
| export const db = drizzle(sql, { schema }); | |