Skip to content

Instantly share code, notes, and snippets.

View Jackman3005's full-sized avatar

Jack Coy Jackman3005

View GitHub Profile
@Jackman3005
Jackman3005 / Prisma.ts
Created May 20, 2024 04:45
Prisma Query Debugging code
function buildPrismaWithQueryDebugging(
sqlQueryReportingThresholdMs: number,
prismaActionReportingThresholdMs: number
) {
const prisma = new PrismaClient({
log: [
{
emit: "event",
level: "query",
import crypto from "crypto";
export enum KvdbPermission {
None = 0,
Read = 1 << 1,
Write = 1 << 2,
Delete = 1 << 3,
Enumerate = 1 << 4,
}