Add proper ORM and postgres support (#3978)
* Add postgresql support * Fixes * Fix perfs
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import { Config } from 'drizzle-kit';
|
||||
|
||||
import 'dotenv/config';
|
||||
|
||||
const pgConfig = {
|
||||
schema: './src/database/postgres/schema-postgres.ts',
|
||||
out: './src/database/postgres/migrations',
|
||||
driver: 'pg',
|
||||
dbCredentials: {
|
||||
connectionString: process.env.DATABASE_PG_URL ?? '',
|
||||
},
|
||||
} satisfies Config;
|
||||
|
||||
export default pgConfig;
|
||||
Reference in New Issue
Block a user