@payloadcms/db-postgres 3.0.0-alpha.22 → 3.0.0-alpha.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/connect.js +1 -1
- package/dist/create.js +2 -2
- package/dist/createGlobal.d.ts +1 -1
- package/dist/createGlobal.d.ts.map +1 -1
- package/dist/createGlobal.js +2 -2
- package/dist/createGlobalVersion.d.ts +1 -1
- package/dist/createGlobalVersion.d.ts.map +1 -1
- package/dist/createGlobalVersion.js +2 -2
- package/dist/createMigration.js +1 -1
- package/dist/createVersion.d.ts +1 -1
- package/dist/createVersion.d.ts.map +1 -1
- package/dist/createVersion.js +2 -2
- package/dist/deleteMany.js +2 -2
- package/dist/deleteOne.js +4 -4
- package/dist/deleteVersions.js +2 -2
- package/dist/destroy.js +1 -1
- package/dist/find/buildFindManyArgs.d.ts +1 -1
- package/dist/find/buildFindManyArgs.d.ts.map +1 -1
- package/dist/find/buildFindManyArgs.js +2 -2
- package/dist/find/findMany.d.ts +1 -1
- package/dist/find/findMany.d.ts.map +1 -1
- package/dist/find/findMany.js +5 -5
- package/dist/find/traverseFields.d.ts +1 -1
- package/dist/find/traverseFields.d.ts.map +1 -1
- package/dist/find/traverseFields.js +1 -1
- package/dist/find.js +2 -2
- package/dist/findGlobal.js +2 -2
- package/dist/findGlobalVersions.js +2 -2
- package/dist/findOne.d.ts +1 -1
- package/dist/findOne.d.ts.map +1 -1
- package/dist/findOne.js +2 -2
- package/dist/findVersions.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -31
- package/dist/init.js +2 -2
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.d.ts.map +1 -1
- package/dist/migrate.js +4 -4
- package/dist/migrateDown.d.ts +1 -1
- package/dist/migrateDown.d.ts.map +1 -1
- package/dist/migrateDown.js +3 -3
- package/dist/migrateFresh.d.ts +1 -1
- package/dist/migrateFresh.d.ts.map +1 -1
- package/dist/migrateFresh.js +2 -2
- package/dist/migrateRefresh.d.ts +1 -1
- package/dist/migrateRefresh.d.ts.map +1 -1
- package/dist/migrateRefresh.js +3 -3
- package/dist/migrateReset.d.ts +1 -1
- package/dist/migrateReset.d.ts.map +1 -1
- package/dist/migrateReset.js +2 -2
- package/dist/migrateStatus.d.ts +1 -1
- package/dist/migrateStatus.d.ts.map +1 -1
- package/dist/migrateStatus.js +2 -2
- package/dist/queries/buildAndOrConditions.d.ts +2 -2
- package/dist/queries/buildAndOrConditions.d.ts.map +1 -1
- package/dist/queries/buildAndOrConditions.js +2 -2
- package/dist/queries/buildQuery.d.ts +1 -1
- package/dist/queries/buildQuery.d.ts.map +1 -1
- package/dist/queries/buildQuery.js +3 -3
- package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js +2 -2
- package/dist/queries/createJSONQuery/index.js +3 -3
- package/dist/queries/getTableColumnFromPath.d.ts +2 -2
- package/dist/queries/getTableColumnFromPath.d.ts.map +1 -1
- package/dist/queries/getTableColumnFromPath.js +1 -1
- package/dist/queries/parseParams.d.ts +2 -2
- package/dist/queries/parseParams.d.ts.map +1 -1
- package/dist/queries/parseParams.js +7 -7
- package/dist/queries/sanitizeQueryValue.d.ts +1 -1
- package/dist/queries/sanitizeQueryValue.d.ts.map +1 -1
- package/dist/queries/sanitizeQueryValue.js +1 -1
- package/dist/queryDrafts.js +2 -2
- package/dist/schema/build.d.ts +1 -1
- package/dist/schema/build.d.ts.map +1 -1
- package/dist/schema/build.js +4 -4
- package/dist/schema/createIndex.d.ts +1 -1
- package/dist/schema/createIndex.d.ts.map +1 -1
- package/dist/schema/createIndex.js +1 -1
- package/dist/schema/parentIDColumnMap.d.ts +1 -1
- package/dist/schema/parentIDColumnMap.d.ts.map +1 -1
- package/dist/schema/parentIDColumnMap.js +1 -1
- package/dist/schema/setColumnID.d.ts +1 -1
- package/dist/schema/setColumnID.d.ts.map +1 -1
- package/dist/schema/setColumnID.js +1 -1
- package/dist/schema/traverseFields.d.ts +1 -1
- package/dist/schema/traverseFields.d.ts.map +1 -1
- package/dist/schema/traverseFields.js +7 -7
- package/dist/schema/validateExistingBlockIsIdentical.d.ts +1 -1
- package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +1 -1
- package/dist/schema/validateExistingBlockIsIdentical.js +1 -1
- package/dist/transactions/beginTransaction.js +1 -1
- package/dist/transform/read/index.js +4 -4
- package/dist/transform/read/traverseFields.d.ts +1 -1
- package/dist/transform/read/traverseFields.d.ts.map +1 -1
- package/dist/transform/read/traverseFields.js +4 -4
- package/dist/transform/write/array.d.ts +2 -2
- package/dist/transform/write/array.d.ts.map +1 -1
- package/dist/transform/write/array.js +3 -3
- package/dist/transform/write/blocks.d.ts +2 -2
- package/dist/transform/write/blocks.d.ts.map +1 -1
- package/dist/transform/write/blocks.js +2 -2
- package/dist/transform/write/index.d.ts +2 -2
- package/dist/transform/write/index.d.ts.map +1 -1
- package/dist/transform/write/index.js +2 -2
- package/dist/transform/write/selects.js +2 -2
- package/dist/transform/write/traverseFields.d.ts +2 -2
- package/dist/transform/write/traverseFields.d.ts.map +1 -1
- package/dist/transform/write/traverseFields.js +8 -8
- package/dist/update.js +4 -4
- package/dist/updateGlobal.d.ts +1 -1
- package/dist/updateGlobal.d.ts.map +1 -1
- package/dist/updateGlobal.js +2 -2
- package/dist/updateGlobalVersion.d.ts +1 -1
- package/dist/updateGlobalVersion.d.ts.map +1 -1
- package/dist/updateGlobalVersion.js +3 -3
- package/dist/updateVersion.d.ts +1 -1
- package/dist/updateVersion.d.ts.map +1 -1
- package/dist/updateVersion.js +3 -3
- package/dist/upsertRow/deleteExistingArrayRows.d.ts +1 -1
- package/dist/upsertRow/deleteExistingArrayRows.d.ts.map +1 -1
- package/dist/upsertRow/deleteExistingArrayRows.js +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.d.ts +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.d.ts.map +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.js +1 -1
- package/dist/upsertRow/index.d.ts +1 -1
- package/dist/upsertRow/index.d.ts.map +1 -1
- package/dist/upsertRow/index.js +7 -7
- package/dist/upsertRow/insertArrays.d.ts +2 -2
- package/dist/upsertRow/insertArrays.d.ts.map +1 -1
- package/dist/upsertRow/insertArrays.js +1 -1
- package/dist/upsertRow/types.d.ts +1 -1
- package/dist/upsertRow/types.d.ts.map +1 -1
- package/dist/upsertRow/types.js +1 -1
- package/dist/utilities/createMigrationTable.d.ts +1 -1
- package/dist/utilities/createMigrationTable.d.ts.map +1 -1
- package/dist/utilities/createMigrationTable.js +1 -1
- package/dist/utilities/migrationTableExists.d.ts +1 -1
- package/dist/utilities/migrationTableExists.d.ts.map +1 -1
- package/dist/utilities/migrationTableExists.js +1 -1
- package/package.json +3 -3
@@ -30,4 +30,4 @@ export const deleteExistingRowsByPath = async ({ adapter, db, localeColumnName =
|
|
30
30
|
}
|
31
31
|
};
|
32
32
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvZGVsZXRlRXhpc3RpbmdSb3dzQnlQYXRoLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGFuZCwgZXEsIGluQXJyYXkgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBEcml6emxlREIsIFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4uL3R5cGVzLmQudHMnXG5cbnR5cGUgQXJncyA9IHtcbiAgYWRhcHRlcjogUG9zdGdyZXNBZGFwdGVyXG4gIGRiOiBEcml6emxlREJcbiAgbG9jYWxlQ29sdW1uTmFtZT86IHN0cmluZ1xuICBwYXJlbnRDb2x1bW5OYW1lPzogc3RyaW5nXG4gIHBhcmVudElEOiB1bmtub3duXG4gIHBhdGhDb2x1bW5OYW1lPzogc3RyaW5nXG4gIHJvd3M6IFJlY29yZDxzdHJpbmcsIHVua25vd24+W11cbiAgdGFibGVOYW1lO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JQUVBLElBQUlULGNBQWNRLElBQUksR0FBRyxHQUFHO1FBQzFCLE1BQU1DLG1CQUFtQjtZQUFDdEIsR0FBR2MsS0FBSyxDQUFDUixpQkFBaUIsRUFBRUM7U0FBVTtRQUVoRSxJQUFJQyxnQkFDRmMsaUJBQWlCQyxJQUFJLENBQUN0QixRQUFRYSxLQUFLLENBQUNOLGVBQWUsRUFBRWdCLE1BQU1DLElBQUksQ0FBQ1o7UUFFbEUsTUFBTVQsR0FBR3NCLE1BQU0sQ0FBQ1osT0FBT2EsS0FBSyxDQUFDNUIsT0FBT3VCO0lBQ3RDO0FBQ0YsRUFBQyJ9
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { TypeWithID } from 'payload/types';
|
2
|
-
import type { Args } from './types';
|
2
|
+
import type { Args } from './types.d.ts';
|
3
3
|
export declare const upsertRow: <T extends TypeWithID>({ id, adapter, data, db, fields, operation, path, req, tableName, upsertTarget, where, }: Args) => Promise<T>;
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upsertRow/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upsertRow/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AASxC,eAAO,MAAM,SAAS,mHAYnB,IAAI,eAkUN,CAAA"}
|
package/dist/upsertRow/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/* eslint-disable no-param-reassign */ import { eq } from 'drizzle-orm';
|
2
2
|
import { ValidationError } from 'payload/errors';
|
3
|
-
import { buildFindManyArgs } from '../find/buildFindManyArgs';
|
4
|
-
import { transform } from '../transform/read';
|
5
|
-
import { transformForWrite } from '../transform/write';
|
6
|
-
import { deleteExistingArrayRows } from './deleteExistingArrayRows';
|
7
|
-
import { deleteExistingRowsByPath } from './deleteExistingRowsByPath';
|
8
|
-
import { insertArrays } from './insertArrays';
|
3
|
+
import { buildFindManyArgs } from '../find/buildFindManyArgs.js';
|
4
|
+
import { transform } from '../transform/read/index.js';
|
5
|
+
import { transformForWrite } from '../transform/write/index.js';
|
6
|
+
import { deleteExistingArrayRows } from './deleteExistingArrayRows.js';
|
7
|
+
import { deleteExistingRowsByPath } from './deleteExistingRowsByPath.js';
|
8
|
+
import { insertArrays } from './insertArrays.js';
|
9
9
|
export const upsertRow = async ({ id, adapter, data, db, fields, operation, path = '', req, tableName, upsertTarget, where })=>{
|
10
10
|
// Split out the incoming data into the corresponding:
|
11
11
|
// base row, locales, relationships, blocks, and arrays
|
@@ -273,4 +273,4 @@ export const upsertRow = async ({ id, adapter, data, db, fields, operation, path
|
|
273
273
|
return result;
|
274
274
|
};
|
275
275
|
|
276
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5kZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcGFyYW0tcmVhc3NpZ24gKi9cbmltcG9ydCB0eXBlIHsgVHlwZVdpdGhJRCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGVxIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBWYWxpZGF0aW9uRXJyb3IgfSBmcm9tICdwYXlsb2FkL2Vycm9ycydcblxuaW1wb3J0IHR5cGUgeyBCbG9ja1Jvd1RvSW5zZXJ0IH0gZnJvbSAnLi4vdHJhbnNmb3JtL3dyaXRlL3R5cGVzJ1xuaW1wb3J0IHR5cGUgeyBBcmdzIH0gZnJv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oKVxuXG4gICAgICBpbnNlcnRlZEJsb2NrUm93c1tibG9ja05hbWVdLmZvckVhY2goKHJvdywgaSkgPT4ge1xuICAgICAgICBibG9ja1Jvd3NbaV0ucm93ID0gcm93XG4gICAgICB9KVxuXG4gICAgICBjb25zdCBibG9ja0xvY2FsZUluZGV4TWFwOiBudW1iZXJbXSA9IFtdXG5cbiAgICAgIGNvbnN0IGJsb2NrTG9jYWxlUm93c1RvSW5zZXJ0ID0gYmxvY2tSb3dzLnJlZHVjZSgoYWNjLCBibG9ja1JvdywgaSkgPT4ge1xuICAgICAgICBpZiAoT2JqZWN0LmVudHJpZXMoYmxvY2tSb3cubG9jYWxlcykubGVuZ3RoID4gMCkge1xuICAgICAgICAgIE9iamVjdC5lbnRyaWVzKGJsb2NrUm93LmxvY2FsZXMpLmZvckVhY2goKFtibG9ja0xvY2FsZSwgYmxvY2tMb2NhbGVEYXRhXSkgPT4ge1xuICAgICAgICAgICAgaWYgKE9iamVjdC5rZXlzKGJsb2NrTG9jYWxlRGF0YSkubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICBibG9ja0xvY2FsZURhdGEuX3BhcmVudElEID0gYmxvY2tSb3cucm93LmlkXG4gICAgICAgICAgICAgIGJsb2NrTG9jYWxlRGF0YS5fbG9jYWxlID0gYmxvY2tMb2NhbGVcbiAgICAgICAgICAgICAgYWNjLnB1c2goYmxvY2tMb2NhbGVEYXRhKVxuICAgICAgICAgICAgICBibG9ja0xvY2FsZUluZGV4TWFwLnB1c2goaSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGFjY1xuICAgICAgfSwgW10pXG5cbiAgICAgIGlmIChibG9ja0xvY2FsZVJvd3NUb0luc2VydC5sZW5ndGggPiAwKSB7XG4gICAgICAgIGF3YWl0IGRiXG4gICAgICAgICAgLmluc2VydChhZGFwdGVyLnRhYmxlc1tgJHt0YWJsZU5hbWV9X2Jsb2Nrc18ke2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UztRQUMxRDtJQUVBLHFDQUFxQztJQUNyQyxpQkFBaUI7SUFDakIscUNBQXFDO0lBQ3ZDLEVBQUUsT0FBTzZELE9BQU87UUFDZCxNQUFNQSxNQUFNQyxJQUFJLEtBQUssVUFDakIsSUFBSTFGLGdCQUNGO1lBQ0U7Z0JBQ0UyRixPQUFPbEYsUUFBUW1GLGdCQUFnQixDQUFDNUUsVUFBVSxDQUFDeUUsTUFBTUksVUFBVSxDQUFDO2dCQUM1REMsU0FBUy9FLElBQUlnRixDQUFDLENBQUM7WUFDakI7U0FDRCxFQUNEaEYsSUFBSWdGLENBQUMsSUFFUE47SUFDTjtJQUVBLHFDQUFxQztJQUNyQyw2QkFBNkI7SUFDN0IscUNBQXFDO0lBRXJDLE1BQU1PLGVBQWUvRixrQkFBa0I7UUFDckNRO1FBQ0F3RixPQUFPO1FBQ1ByRjtRQUNBSTtJQUNGO0lBRUFnRixhQUFhOUUsS0FBSyxHQUFHbkIsR0FBR1UsUUFBUWEsTUFBTSxDQUFDTixVQUFVLENBQUNSLEVBQUUsRUFBRVksWUFBWVosRUFBRTtJQUVwRSxNQUFNMEYsTUFBTSxNQUFNdkYsR0FBR3dGLEtBQUssQ0FBQ25GLFVBQVUsQ0FBQ29GLFNBQVMsQ0FBQ0o7SUFFaEQscUNBQXFDO0lBQ3JDLGlCQUFpQjtJQUNqQixxQ0FBcUM7SUFFckMsTUFBTUssU0FBU25HLFVBQWE7UUFDMUJvRyxRQUFRN0YsUUFBUThGLE9BQU8sQ0FBQ0QsTUFBTTtRQUM5QjVGLE1BQU13RjtRQUNOdEY7SUFDRjtJQUVBLE9BQU95RjtBQUNULEVBQUMifQ==
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { ArrayRowToInsert } from '../transform/write/types';
|
2
|
-
import type { DrizzleDB, PostgresAdapter } from '../types';
|
1
|
+
import type { ArrayRowToInsert } from '../transform/write/types.d.ts';
|
2
|
+
import type { DrizzleDB, PostgresAdapter } from '../types.d.ts';
|
3
3
|
type Args = {
|
4
4
|
adapter: PostgresAdapter;
|
5
5
|
arrays: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"insertArrays.d.ts","sourceRoot":"","sources":["../../src/upsertRow/insertArrays.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"insertArrays.d.ts","sourceRoot":"","sources":["../../src/upsertRow/insertArrays.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/D,KAAK,IAAI,GAAG;IACV,OAAO,EAAE,eAAe,CAAA;IACxB,MAAM,EAAE;QACN,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAAA;KACxC,EAAE,CAAA;IACH,EAAE,EAAE,SAAS,CAAA;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;CACtC,CAAA;AAYD,eAAO,MAAM,YAAY,wCAA+C,IAAI,KAAG,QAAQ,IAAI,CAyE1F,CAAA"}
|
@@ -65,4 +65,4 @@
|
|
65
65
|
}
|
66
66
|
};
|
67
67
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5zZXJ0QXJyYXlzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEFycmF5Um93VG9JbnNlcnQgfSBmcm9tICcuLi90cmFuc2Zvcm0vd3JpdGUvdHlwZXMuZC50cydcbmltcG9ydCB0eXBlIHsgRHJpenpsZURCLCBQb3N0Z3Jlc0FkYXB0ZXI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UFJLENBQUNFLElBQUlULE9BQU8sQ0FBQyxFQUFFLENBQUNVLFNBQVMsRUFBRTtnQkFDN0JELElBQUlULE9BQU8sR0FBR1MsSUFBSVQsT0FBTyxDQUFDb0IsR0FBRyxDQUFDLENBQUNDLFdBQVdoQjtvQkFDeEMsSUFBSSxPQUFPZ0IsVUFBVVAsWUFBWSxLQUFLLFlBQVk7d0JBQ2hETyxVQUFVWCxTQUFTLEdBQUdXLFVBQVVQLFlBQVksQ0FBQ0M7d0JBQzdDLE9BQU9NLFVBQVVQLFlBQVk7b0JBQy9CO29CQUNBLE9BQU9PO2dCQUNUO1lBQ0Y7WUFDQSxNQUFNL0IsR0FBRzBCLE1BQU0sQ0FBQzVCLFFBQVE2QixNQUFNLENBQUMsQ0FBQyxFQUFFbkIsVUFBVSxRQUFRLENBQUMsQ0FBQyxFQUFFb0IsTUFBTSxDQUFDVCxJQUFJVCxPQUFPLEVBQUVtQixTQUFTO1FBQ3ZGO1FBRUEsMERBQTBEO1FBQzFELElBQUlWLElBQUlwQixNQUFNLENBQUNrQixNQUFNLEdBQUcsR0FBRztZQUN6QixNQUFNcEIsYUFBYTtnQkFDakJDO2dCQUNBQyxRQUFRb0IsSUFBSXBCLE1BQU07Z0JBQ2xCQztnQkFDQUMsWUFBWXdCO1lBQ2Q7UUFDRjtJQUNGO0FBQ0YsRUFBQyJ9
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { SQL } from 'drizzle-orm';
|
2
2
|
import type { Field, PayloadRequest } from 'payload/types';
|
3
|
-
import type { DrizzleDB, GenericColumn, PostgresAdapter } from '../types';
|
3
|
+
import type { DrizzleDB, GenericColumn, PostgresAdapter } from '../types.d.ts';
|
4
4
|
type BaseArgs = {
|
5
5
|
adapter: PostgresAdapter;
|
6
6
|
data: Record<string, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/upsertRow/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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1,3 +1,3 @@
|
|
1
1
|
export { };
|
2
2
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvdHlwZXMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBTUUwgfSBmcm9tICdkcml6emxlLW9ybSdcbmltcG9ydCB0eXBlIHsgRmllbGQsIFBheWxvYWRSZXF1ZXN0IH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHR5cGUgeyBEcml6emxlREIsIEdlbmVyaWNDb2x1bW4sIFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4uL3R5cGVzLmQudHMnXG5cbnR5cGUgQmFzZUFyZ3MgPSB7XG4gIGFkYXB0ZXI6IFBvc3RncmVzQWRhcHRlclxuICBkYXRhOiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPlxuICBkYjogRHJpenpsZURCXG4gIGZpZWxkczogRmllbGRbXVxuICBwYXRoPzogc3RyaW5nXG4gIHRhYmxlTmFtZTogc3RyaW5nXG4gIHJlcTogUGF5bG9hZFJlcXVlc3Rcbn1cblxudHlwZSBDcmVhdGVBcmdzID0gQmFzZUFyZ3MgJiB7XG4gIGlkPzogbmV2ZXJcbiAgb3BlcmF0aW9uOiAnY3JlYXRlJ1xuICB1cHNlcnRUYXJnZXQ/OiBuZXZlclxuICB3aGVyZT86IG5ldmVyXG59XG5cbnR5cGUgVXBkYXRlQXJncyA9IEJhc2VBcmdzICYge1xuICBpZD86IG51bWJlciB8IHN0cmluZ1xuICBvcGVyYXRpb246ICd1cGRhdGUnXG4gIHVwc2VydFRhcmdldD86IEdlbmVyaWNDb2x1bW5cbiAgd2hlcmU/OiBTUUw8dW5rbm93bj5cbn1cblxuZXhwb3J0IHR5cGUgQXJncyA9IENyZWF0ZUFyZ3MgfCBVcGRhdGVBcmdzXG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkJBLFdBQTBDIn0=
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createMigrationTable.d.ts","sourceRoot":"","sources":["../../src/utilities/createMigrationTable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"createMigrationTable.d.ts","sourceRoot":"","sources":["../../src/utilities/createMigrationTable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,eAAO,MAAM,oBAAoB,YAAmB,eAAe,KAAG,QAAQ,IAAI,CAYjF,CAAA"}
|
@@ -10,4 +10,4 @@ export const createMigrationTable = async (adapter)=>{
|
|
10
10
|
);`));
|
11
11
|
};
|
12
12
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvY3JlYXRlTWlncmF0aW9uVGFibGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMuZC50cydcblxuZXhwb3J0IGNvbnN0IGNyZWF0ZU1pZ3JhdGlvblRhYmxlID0gYXN5bmMgKGFkYXB0ZXI6IFBvc3RncmVzQWRhcHRlcik6IFByb21pc2U8dm9pZD4gPT4ge1xuICBjb25zdCBwcmVwZW5kU2NoZW1hID0gYWRhcHRlci5zY2hlbWFOYW1lID8gYFwiJHthZGFwdGVyLnNjaGVtYU5hbWV9XCIuYCA6ICcnXG5cbiAgYXdhaXQgYWRhcHRlci5kcml6emxlLmV4ZWN1dGUoXG4gICAgc3FsLnJhdyhgQ1JFQVRFIFRBQkxFIElGIE5PVCBFWElTVFMgJHtwcmVwZW5kU2NoZW1hfVwicGF5bG9hZF9taWdyYXRpb25zXCIgKFxuICBcImlkXCIgc2VyaWFsIFBSSU1BUlkgS0VZIE5PVCBOVUxMLFxuICBcIm5hbWVcIiB2YXJjaGFyLFxuICBcImJhdGNoXCIgbnVtZXJpYyxcbiAgXCJ1cGRhdGVkX2F0XCIgdGltZXN0YW1wKDMpIHdpdGggdGltZSB6b25lIERFRkFVTFQgbm93KCkgTk9UIE5VTEwsXG4gIFwiY3JlYXRlZF9hdFwiIHRpbWVzdGFtcCgzKSB3aXRoIHRpbWUgem9uZSBERUZBVUxUIG5vdygpIE5PVCBOVUxMXG4pO2ApLFxuICApXG59XG4iXSwibmFtZXMiOlsic3FsIiwiY3JlYXRlTWlncmF0aW9uVGFibGUiLCJhZGFwdGVyIiwicHJlcGVuZFNjaGVtYSIsInNjaGVtYU5hbWUiLCJkcml6emxlIiwiZXhlY3V0ZSIsInJhdyJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsR0FBRyxRQUFRLGNBQWE7QUFJakMsT0FBTyxNQUFNQyx1QkFBdUIsT0FBT0M7SUFDekMsTUFBTUMsZ0JBQWdCRCxRQUFRRSxVQUFVLEdBQUcsQ0FBQyxDQUFDLEVBQUVGLFFBQVFFLFVBQVUsQ0FBQyxFQUFFLENBQUMsR0FBRztJQUV4RSxNQUFNRixRQUFRRyxPQUFPLENBQUNDLE9BQU8sQ0FDM0JOLElBQUlPLEdBQUcsQ0FBQyxDQUFDLDJCQUEyQixFQUFFSixjQUFjOzs7Ozs7RUFNdEQsQ0FBQztBQUVILEVBQUMifQ==
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrationTableExists.d.ts","sourceRoot":"","sources":["../../src/utilities/migrationTableExists.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrationTableExists.d.ts","sourceRoot":"","sources":["../../src/utilities/migrationTableExists.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,oBAAoB,qBAA0B,QAAQ,OAAO,CAMzE,CAAA"}
|
@@ -6,4 +6,4 @@ export const migrationTableExists = async (db)=>{
|
|
6
6
|
return exists;
|
7
7
|
};
|
8
8
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmltcG9ydCB0eXBlIHsgRHJpenpsZURCIH0gZnJvbSAnLi4vdHlwZXMuZC50cydcblxuZXhwb3J0IGNvbnN0IG1pZ3JhdGlvblRhYmxlRXhpc3RzID0gYXN5bmMgKGRiOiBEcml6emxlREIpOiBQcm9taXNlPGJvb2xlYW4+ID0+IHtcbiAgY29uc3QgcXVlcnlSZXMgPSBhd2FpdCBkYi5leGVjdXRlKHNxbGBTRUxFQ1QgdG9fcmVnY2xhc3MoJ3B1YmxpYy5wYXlsb2FkX21pZ3JhdGlvbnMnKTtgKVxuXG4gIC8vIFJldHVybnMgdGFibGUgbmFtZSAncGF5bG9hZF9taWdyYXRpb25zJyBvciBudWxsXG4gIGNvbnN0IGV4aXN0cyA9IHF1ZXJ5UmVzLnJvd3M/LlswXT8udG9fcmVnY2xhc3MgPT09ICdwYXlsb2FkX21pZ3JhdGlvbnMnXG4gIHJldHVybiBleGlzdHNcbn1cbiJdLCJuYW1lcyI6WyJzcWwiLCJtaWdyYXRpb25UYWJsZUV4aXN0cyIsImRiIiwicXVlcnlSZXMiLCJleGVjdXRlIiwiZXhpc3RzIiwicm93cyIsInRvX3JlZ2NsYXNzIl0sIm1hcHBpbmdzIjoiQUFBQSxTQUFTQSxHQUFHLFFBQVEsY0FBYTtBQUlqQyxPQUFPLE1BQU1DLHVCQUF1QixPQUFPQztJQUN6QyxNQUFNQyxXQUFXLE1BQU1ELEdBQUdFLE9BQU8sQ0FBQ0osR0FBRyxDQUFDLGdEQUFnRCxDQUFDO0lBRXZGLGtEQUFrRDtJQUNsRCxNQUFNSyxTQUFTRixTQUFTRyxJQUFJLEVBQUUsQ0FBQyxFQUFFLEVBQUVDLGdCQUFnQjtJQUNuRCxPQUFPRjtBQUNULEVBQUMifQ==
|
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.23",
|
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.23"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
|
-
"payload": "3.0.0-alpha.
|
33
|
+
"payload": "3.0.0-alpha.23"
|
34
34
|
},
|
35
35
|
"publishConfig": {
|
36
36
|
"registry": "https://registry.npmjs.org/"
|