1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-05 23:40:12 +01:00
pingvin-share/backend/src/prisma/prisma.service.ts
2022-11-28 15:04:32 +01:00

18 lines
428 B
TypeScript

import { Injectable } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { PrismaClient } from "@prisma/client";
@Injectable()
export class PrismaService extends PrismaClient {
constructor() {
super({
datasources: {
db: {
url: "file:../data/pingvin-share.db",
},
},
});
super.$connect().then(() => console.info("Connected to the database"));
}
}