DB
This commit is contained in:
parent
b4805dd75f
commit
038fe84b98
1 changed files with 2 additions and 4 deletions
|
@ -1,9 +1,7 @@
|
|||
import { neon, neonConfig } from "@neondatabase/serverless";
|
||||
import { neon } from "@neondatabase/serverless";
|
||||
import * as schema from "app/_lib/schema";
|
||||
import { drizzle } from "drizzle-orm/neon-http";
|
||||
import { env } from "env.mjs";
|
||||
import * as schema from "app/_lib/schema";
|
||||
|
||||
neonConfig.fetchConnectionCache = true;
|
||||
|
||||
const sql = neon(env.DATABASE_URL);
|
||||
export const db = drizzle(sql, { schema });
|
||||
|
|
Loading…
Add table
Reference in a new issue