UNPKG

@prisma/client

Version:

Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports MySQL, PostgreSQL, MariaDB, SQLite databases.

29 lines (24 loc) 566 B
class PrismaClient { constructor() { throw new Error( `@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again. In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`, ) } } function defineExtension(ext) { if (typeof ext === 'function') { return ext } return (client) => client.$extends(ext) } function getExtensionContext(that) { return that } module.exports = { PrismaClient, Prisma: { defineExtension, getExtensionContext, }, }