@rebasepro/server-postgres 0.9.1-canary.a57c262 → 0.9.1-canary.ad25bc0
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/data-transformer.d.ts +2 -9
- package/dist/index.es.js +298 -639
- package/dist/index.es.js.map +1 -1
- package/dist/services/FetchService.d.ts +32 -4
- package/dist/services/RelationService.d.ts +1 -34
- package/dist/services/collection-helpers.d.ts +0 -76
- package/dist/services/index.d.ts +1 -1
- package/dist/services/realtimeService.d.ts +0 -7
- package/package.json +7 -10
- package/src/PostgresBackendDriver.ts +6 -21
- package/src/PostgresBootstrapper.ts +23 -11
- package/src/data-transformer.ts +9 -11
- package/src/schema/generate-drizzle-schema-logic.ts +4 -21
- package/src/schema/generate-postgres-ddl-logic.ts +3 -63
- package/src/schema/introspect-db.ts +1 -8
- package/src/services/FetchService.ts +229 -50
- package/src/services/RelationService.ts +94 -153
- package/src/services/collection-helpers.ts +3 -166
- package/src/services/index.ts +0 -1
- package/src/services/realtimeService.ts +19 -40
- package/dist/collections/buildRegistry.d.ts +0 -27
- package/dist/services/row-pipeline.d.ts +0 -60
- package/src/collections/buildRegistry.ts +0 -59
- package/src/services/row-pipeline.ts +0 -176
|
@@ -12,19 +12,12 @@ import { PostgresCollectionRegistry } from "./collections/PostgresCollectionRegi
|
|
|
12
12
|
export interface SerializedEntityData {
|
|
13
13
|
/** Scalar column values ready for INSERT/UPDATE. */
|
|
14
14
|
scalarData: Record<string, unknown>;
|
|
15
|
-
/**
|
|
16
|
-
* Inverse relation updates that must be applied to target tables.
|
|
17
|
-
*
|
|
18
|
-
* No address here: the row being written does not know its own. These are
|
|
19
|
-
* applied by `PersistService`, which addresses them with the id it holds —
|
|
20
|
-
* the one it was given for an update, or the one the INSERT returned — and
|
|
21
|
-
* that is the authority. This item used to carry a `currentId` derived from
|
|
22
|
-
* the *input* values, which nothing ever read.
|
|
23
|
-
*/
|
|
15
|
+
/** Inverse relation updates that must be applied to target tables. */
|
|
24
16
|
inverseRelationUpdates: Array<{
|
|
25
17
|
relationKey: string;
|
|
26
18
|
relation: Relation;
|
|
27
19
|
newValue: unknown;
|
|
20
|
+
currentId?: string | number;
|
|
28
21
|
}>;
|
|
29
22
|
/** JoinPath relation updates that require multi-hop writes. */
|
|
30
23
|
joinPathRelationUpdates: Array<{
|