@payloadcms/db-postgres 3.0.0-alpha.34 → 3.0.0-alpha.35
Sign up to get free protection for your applications and to get access to all the features.
package/dist/connect.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { eq, sql } from 'drizzle-orm';
|
2
2
|
import { drizzle } from 'drizzle-orm/node-postgres';
|
3
3
|
import { numeric, timestamp, varchar } from 'drizzle-orm/pg-core';
|
4
|
-
import
|
4
|
+
import pg from 'pg';
|
5
5
|
import prompts from 'prompts';
|
6
6
|
const connectWithReconnect = async function({ adapter, payload, reconnect = false }) {
|
7
7
|
let result;
|
@@ -48,7 +48,7 @@ export const connect = async function connect(options = {
|
|
48
48
|
...this.enums
|
49
49
|
};
|
50
50
|
try {
|
51
|
-
this.pool = new Pool(this.poolOptions);
|
51
|
+
this.pool = new pg.Pool(this.poolOptions);
|
52
52
|
await connectWithReconnect({
|
53
53
|
adapter: this,
|
54
54
|
payload: this.payload
|
@@ -120,4 +120,4 @@ export const connect = async function connect(options = {
|
|
120
120
|
}
|
121
121
|
};
|
122
122
|
|
123
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25uZWN0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUGF5bG9hZCB9IGZyb20gJ3BheWxvYWQnXG5pbXBvcnQgdHlwZSB7IENvbm5lY3QgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgeyBlcSwgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBkcml6emxlIH0gZnJvbSAnZHJpenpsZS1vcm0vbm9kZS1wb3N0Z3JlcydcbmltcG9ydCB7IG51bWVyaWMsIHRpbWVzdGFtcCwgdmFyY2hhciB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5pbXBvcnQgeyBQb29sIH0gZnJvbSAncGcnXG5pbXBvcnQgcHJvbXB0cyBmcm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MxRCxNQUFNWSxtQkFBbUIsSUFBSSxDQUFDQyxRQUFRLENBQUNDLEtBQUssQ0FBQyxzQkFBc0I7UUFDakVOLE1BQU03QyxRQUFRO1FBQ2RvRCxPQUFPdEQsUUFBUTtRQUNmdUQsWUFBWXRELFVBQVU7UUFDdEJ1RCxZQUFZdkQsVUFBVTtJQUN4QjtJQUVBLE1BQU13RCxVQUFVLE1BQU0sSUFBSSxDQUFDMUQsT0FBTyxDQUMvQjJELE1BQU0sR0FDTkMsSUFBSSxDQUFDUixrQkFDTFMsS0FBSyxDQUFDL0QsR0FBR3NELGlCQUFpQkcsS0FBSyxFQUFFO0lBRXBDLElBQUksQ0FBQ0csUUFBUWQsTUFBTSxFQUFFO1FBQ25CLE1BQU0sSUFBSSxDQUFDNUMsT0FBTyxDQUFDOEQsTUFBTSxDQUFDVixrQkFBa0JXLE1BQU0sQ0FBQztZQUNqRGYsTUFBTTtZQUNOTyxPQUFPO1FBQ1Q7SUFDRixPQUFPO1FBQ0wsTUFBTSxJQUFJLENBQUN2RCxPQUFPLENBQ2ZnRSxNQUFNLENBQUNaLGtCQUNQYSxHQUFHLENBQUM7WUFDSFIsWUFBWSxJQUFJUztRQUNsQixHQUNDTCxLQUFLLENBQUMvRCxHQUFHc0QsaUJBQWlCRyxLQUFLLEVBQUU7SUFDdEM7QUFDRixFQUFDIn0=
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parseError.d.ts","sourceRoot":"","sources":["../../src/utilities/parseError.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parseError.d.ts","sourceRoot":"","sources":["../../src/utilities/parseError.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,UAAU,QAAS,OAAO,OAAO,MAAM,KAAG,MAUtD,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import pg from 'pg';
|
2
|
+
const { DatabaseError } = pg;
|
2
3
|
/**
|
3
4
|
* Format error message with hint if available
|
4
5
|
*/ export const parseError = (err, msg)=>{
|
@@ -13,4 +14,4 @@ import { DatabaseError } from 'pg';
|
|
13
14
|
return formattedMsg;
|
14
15
|
};
|
15
16
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvcGFyc2VFcnJvci50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgcGcgZnJvbSAncGcnXG5jb25zdCB7IERhdGFiYXNlRXJyb3IgfSA9IHBnXG5cbi8qKlxuICogRm9ybWF0IGVycm9yIG1lc3NhZ2Ugd2l0aCBoaW50IGlmIGF2YWlsYWJsZVxuICovXG5leHBvcnQgY29uc3QgcGFyc2VFcnJvciA9IChlcnI6IHVua25vd24sIG1zZzogc3RyaW5nKTogc3RyaW5nID0+IHtcbiAgbGV0IGZvcm1hdHRlZE1zZyA9IGAke21zZ31gXG4gIGlmIChlcnIgaW5zdGFuY2VvZiBFcnJvcikge1xuICAgIGZvcm1hdHRlZE1zZyArPSBgICR7ZXJyLm1lc3NhZ2V9LmBcbiAgICBpZiAoZXJyIGluc3RhbmNlb2YgRGF0YWJhc2VFcnJvcikge1xuICAgICAgbXNnICs9IGA6ICR7ZXJyLm1lc3NhZ2V9YFxuICAgICAgaWYgKGVyci5oaW50KSBtc2cgKz0gYCAke2Vyci5oaW50fS5gXG4gICAgfVxuICB9XG4gIHJldHVybiBmb3JtYXR0ZWRNc2dcbn1cbiJdLCJuYW1lcyI6WyJwZyIsIkRhdGFiYXNlRXJyb3IiLCJwYXJzZUVycm9yIiwiZXJyIiwibXNnIiwiZm9ybWF0dGVkTXNnIiwiRXJyb3IiLCJtZXNzYWdlIiwiaGludCJdLCJtYXBwaW5ncyI6IkFBQUEsT0FBT0EsUUFBUSxLQUFJO0FBQ25CLE1BQU0sRUFBRUMsYUFBYSxFQUFFLEdBQUdEO0FBRTFCOztDQUVDLEdBQ0QsT0FBTyxNQUFNRSxhQUFhLENBQUNDLEtBQWNDO0lBQ3ZDLElBQUlDLGVBQWUsQ0FBQyxFQUFFRCxJQUFJLENBQUM7SUFDM0IsSUFBSUQsZUFBZUcsT0FBTztRQUN4QkQsZ0JBQWdCLENBQUMsQ0FBQyxFQUFFRixJQUFJSSxPQUFPLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLElBQUlKLGVBQWVGLGVBQWU7WUFDaENHLE9BQU8sQ0FBQyxFQUFFLEVBQUVELElBQUlJLE9BQU8sQ0FBQyxDQUFDO1lBQ3pCLElBQUlKLElBQUlLLElBQUksRUFBRUosT0FBTyxDQUFDLENBQUMsRUFBRUQsSUFBSUssSUFBSSxDQUFDLENBQUMsQ0FBQztRQUN0QztJQUNGO0lBQ0EsT0FBT0g7QUFDVCxFQUFDIn0=
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@payloadcms/db-postgres",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.35",
|
4
4
|
"description": "The officially supported Postgres database adapter for Payload",
|
5
5
|
"repository": "https://github.com/payloadcms/payload",
|
6
6
|
"license": "MIT",
|
@@ -27,10 +27,10 @@
|
|
27
27
|
"@types/pg": "8.10.2",
|
28
28
|
"@types/to-snake-case": "1.0.0",
|
29
29
|
"@payloadcms/eslint-config": "1.1.1",
|
30
|
-
"payload": "3.0.0-alpha.
|
30
|
+
"payload": "3.0.0-alpha.35"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
|
-
"payload": "3.0.0-alpha.
|
33
|
+
"payload": "3.0.0-alpha.35"
|
34
34
|
},
|
35
35
|
"publishConfig": {
|
36
36
|
"registry": "https://registry.npmjs.org/"
|