x
This commit is contained in:
1 parent
8f64d89f6f
commit
b17e589577
18 files changed
+918
-517
No files matched your search
@@ -10,6 +10,13 @@ const connectionString = process.env.DATABASE_URL!;
|
||||
const pool = new Pool({ connectionString });
|
||||
const adapter = new PrismaPg(pool);
|
||||
|
||||
const prisma = new PrismaClient({ adapter });
|
||||
const prisma = new PrismaClient({
|
||||
adapter,
|
||||
log: [
|
||||
{ emit: 'stdout', level: 'query' },
|
||||
{ emit: 'stdout', level: 'error' },
|
||||
{ emit: 'stdout', level: 'warn' },
|
||||
],
|
||||
});
|
||||
|
||||
export default prisma;
|
||||
Reference in new issue
Block a user