diff options
Diffstat (limited to 'db/db.ts')
| -rw-r--r-- | db/db.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,12 +1,13 @@ import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg'; +import * as schema from './schema'; const pool = new Pool({ // connectionString: process.env.DATABASE_URL as string, connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp" }); -const db = drizzle(pool); +const db = drizzle(pool, { schema }); export default db;
\ No newline at end of file |
