@trycompai/db 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +2 -7173
- package/dist/index.mjs +4 -10
- package/dist/prisma/schema.prisma +0 -1
- package/dist/types.d.mts +1 -0
- package/dist/types.js +5 -7172
- package/dist/types.mjs +1 -8
- package/package.json +19 -18
- package/prisma/schema.prisma +0 -1
- package/dist/chunk-I3YC3IVF.mjs +0 -7196
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__toESM,
|
|
3
|
-
require_client
|
|
4
|
-
} from "./chunk-I3YC3IVF.mjs";
|
|
5
|
-
|
|
6
1
|
// src/index.ts
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { PrismaClient } from "@prisma/client";
|
|
3
|
+
import { PrismaClient as PrismaClient2 } from "@prisma/client";
|
|
9
4
|
var createPrismaClient = () => {
|
|
10
|
-
return new
|
|
5
|
+
return new PrismaClient({
|
|
11
6
|
datasourceUrl: process.env.DATABASE_URL,
|
|
12
7
|
log: ["error", "warn"]
|
|
13
8
|
});
|
|
@@ -15,8 +10,7 @@ var createPrismaClient = () => {
|
|
|
15
10
|
var globalForPrisma = globalThis;
|
|
16
11
|
var db = globalForPrisma.prisma ?? createPrismaClient();
|
|
17
12
|
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = db;
|
|
18
|
-
var export_PrismaClient = import_client2.PrismaClient;
|
|
19
13
|
export {
|
|
20
|
-
|
|
14
|
+
PrismaClient2 as PrismaClient,
|
|
21
15
|
db
|
|
22
16
|
};
|
|
@@ -2,7 +2,6 @@ generator client {
|
|
|
2
2
|
provider = "prisma-client-js"
|
|
3
3
|
previewFeatures = ["driverAdapters", "postgresqlExtensions", "prismaSchemaFolder"]
|
|
4
4
|
binaryTargets = ["native", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x"]
|
|
5
|
-
output = "../src/generated/client"
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
datasource db {
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@prisma/client';
|