@semiont/backend 0.3.3 → 0.3.4
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/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/prisma/schema.prisma +0 -1
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { exportBackup, importBackup, readEntityTypesProjection, exportLinkedData
|
|
|
11
11
|
import * as fs from 'fs';
|
|
12
12
|
import * as path from 'path';
|
|
13
13
|
import { PrismaClient } from '@prisma/client';
|
|
14
|
+
import { PrismaPg } from '@prisma/adapter-pg';
|
|
14
15
|
import { HTTPException } from 'hono/http-exception';
|
|
15
16
|
import Ajv from 'ajv';
|
|
16
17
|
import addFormats from 'ajv-formats';
|
|
@@ -11941,7 +11942,11 @@ var DatabaseConnection = class {
|
|
|
11941
11942
|
emit: "event",
|
|
11942
11943
|
level
|
|
11943
11944
|
}));
|
|
11945
|
+
const adapter = new PrismaPg({
|
|
11946
|
+
connectionString: process.env.DATABASE_URL
|
|
11947
|
+
});
|
|
11944
11948
|
this.instance = new PrismaClient({
|
|
11949
|
+
adapter,
|
|
11945
11950
|
log: logConfig
|
|
11946
11951
|
});
|
|
11947
11952
|
this.instance.$on("query", (e) => {
|