mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
import { getConfig } from "../utils/config";
|
|
import { PrismaClient } from "@prisma/client";
|
|
|
|
const config = getConfig();
|
|
|
|
const client = new PrismaClient({
|
|
datasourceUrl: `postgresql://${config.database.username}:${config.database.password}@${config.database.host}:${config.database.port}/${config.database.database}`,
|
|
});
|
|
|
|
export { client };
|