prisma
Version:
Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.
66 lines (60 loc) • 2.08 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/scripts/default-index.ts
var default_index_exports = {};
__export(default_index_exports, {
Prisma: () => Prisma,
PrismaClient: () => PrismaClient,
default: () => default_index_default
});
module.exports = __toCommonJS(default_index_exports);
// ../../node_modules/.pnpm/@prisma+engines-version@6.16.1-1.bb420e667c1820a8c05a38023385f6cc7ef8e83a/node_modules/@prisma/engines-version/package.json
var prisma = {
enginesVersion: "bb420e667c1820a8c05a38023385f6cc7ef8e83a"
};
// package.json
var version = "6.16.3";
// src/runtime/utils/clientVersion.ts
var clientVersion = version;
// src/scripts/default-index.ts
var PrismaClient = class {
constructor() {
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
}
};
function defineExtension(ext) {
if (typeof ext === "function") {
return ext;
}
return (client) => client.$extends(ext);
}
function getExtensionContext(that) {
return that;
}
var Prisma = {
defineExtension,
getExtensionContext,
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
};
var default_index_default = { Prisma };
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Prisma,
PrismaClient
});