Prisma 2 tool to inspect all queries going to the database, formatted and with all params if any

- MySQL support
- PostgreSQL support
- MariaDB support
- SQLite support
- Standard SQL support
- Make UI responsive
Using npm:
$ npm install prisma-query-inspector --save-devUsing yarn:
$ yarn add prisma-query-inspector --devconst prisma = new PrismaClient({
log: [
{
emit: "event",
level: "query",
},
],
});import { queryHandler } from "prisma-query-inspector";
prisma.$on("query", queryHandler);"inspect-queries": "prisma-query-inspector start"npm run inspect-queries-
port: number - inspector server port
- alias:
p - default:
7001
- alias:
-
language: string - database language used to format the queries
- alias:
l - default:
sql - possible values:
sql|mysql|mariadb|postgresql
- alias: