Initial commit
This commit is contained in:
12
src/handlers/db.ts
Normal file
12
src/handlers/db.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { PrismaClient } from '@prisma/client'; // Database
|
||||
import config from "./config.js";
|
||||
|
||||
// TODO: Add errorhandling with some sort of message.
|
||||
export const prisma = new PrismaClient({
|
||||
datasources: {
|
||||
db: {
|
||||
url: config.global.db_connection_string
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user