main
|
Last change
on this file since ad3c219 was 5750945, checked in by Tome <gjorgievtome@…>, 7 months ago |
|
Dockerize app
|
-
Property mode
set to
100644
|
|
File size:
273 bytes
|
| Line | |
|---|
| 1 | import { Pool } from "pg";
|
|---|
| 2 | import { drizzle } from "drizzle-orm/node-postgres";
|
|---|
| 3 | import * as schema from "./schema";
|
|---|
| 4 |
|
|---|
| 5 | const pool = new Pool({
|
|---|
| 6 | connectionString: process.env.DATABASE_URL,
|
|---|
| 7 | })
|
|---|
| 8 |
|
|---|
| 9 | export const db = drizzle(pool, { schema });
|
|---|
| 10 |
|
|---|
| 11 | export type Database = typeof db;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.