initial commit
This commit is contained in:
23
node_modules/prisma/prisma-client/scripts/default-index.js
generated
vendored
Normal file
23
node_modules/prisma/prisma-client/scripts/default-index.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
PrismaClient,
|
||||
Prisma: {
|
||||
defineExtension,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user