@rocicorp/zero 1.10.0-canary.18 → 1.10.0-canary.19
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/out/zero/package.js +1 -1
- package/out/zero/package.js.map +1 -1
- package/out/zero-cache/src/config/zero-config.d.ts +2 -19
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
- package/out/zero-cache/src/config/zero-config.js +28 -87
- package/out/zero-cache/src/config/zero-config.js.map +1 -1
- package/out/zero-cache/src/db/create.d.ts.map +1 -1
- package/out/zero-cache/src/db/create.js +1 -4
- package/out/zero-cache/src/db/create.js.map +1 -1
- package/out/zero-cache/src/db/lite-tables.d.ts +2 -10
- package/out/zero-cache/src/db/lite-tables.d.ts.map +1 -1
- package/out/zero-cache/src/db/lite-tables.js +3 -8
- package/out/zero-cache/src/db/lite-tables.js.map +1 -1
- package/out/zero-cache/src/db/specs.d.ts +0 -41
- package/out/zero-cache/src/db/specs.d.ts.map +1 -1
- package/out/zero-cache/src/db/specs.js +3 -30
- package/out/zero-cache/src/db/specs.js.map +1 -1
- package/out/zero-cache/src/server/change-streamer.d.ts.map +1 -1
- package/out/zero-cache/src/server/change-streamer.js +1 -2
- package/out/zero-cache/src/server/change-streamer.js.map +1 -1
- package/out/zero-cache/src/server/replicator.d.ts.map +1 -1
- package/out/zero-cache/src/server/replicator.js +2 -6
- package/out/zero-cache/src/server/replicator.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/change-source.d.ts +1 -11
- package/out/zero-cache/src/services/change-source/pg/change-source.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/change-source.js +2 -21
- package/out/zero-cache/src/services/change-source/pg/change-source.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts +0 -1
- package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/initial-sync.js +6 -7
- package/out/zero-cache/src/services/change-source/pg/initial-sync.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.d.ts +229 -1513
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.js +2 -2
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/init.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/init.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/init.js +6 -15
- package/out/zero-cache/src/services/change-source/pg/schema/init.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/published.d.ts +20 -137
- package/out/zero-cache/src/services/change-source/pg/schema/published.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/published.js +13 -82
- package/out/zero-cache/src/services/change-source/pg/schema/published.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/shard.d.ts +21 -128
- package/out/zero-cache/src/services/change-source/pg/schema/shard.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/shard.js +5 -5
- package/out/zero-cache/src/services/change-source/pg/schema/shard.js.map +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts +0 -2
- package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/downstream.d.ts +0 -3
- package/out/zero-cache/src/services/change-source/protocol/current/downstream.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +0 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +1 -1
- package/out/zero-cache/src/services/litestream/commands.d.ts.map +1 -1
- package/out/zero-cache/src/services/litestream/commands.js +3 -8
- package/out/zero-cache/src/services/litestream/commands.js.map +1 -1
- package/out/zero-cache/src/services/litestream/config-v5.yml +1 -15
- package/out/zero-cache/src/services/replicator/change-processor.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/change-processor.js +16 -16
- package/out/zero-cache/src/services/replicator/change-processor.js.map +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.js +0 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
- package/out/zero-cache/src/services/replicator/write-worker-client.d.ts +2 -27
- package/out/zero-cache/src/services/replicator/write-worker-client.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/write-worker-client.js +2 -3
- package/out/zero-cache/src/services/replicator/write-worker-client.js.map +1 -1
- package/out/zero-cache/src/services/replicator/write-worker.js +5 -24
- package/out/zero-cache/src/services/replicator/write-worker.js.map +1 -1
- package/out/zero-cache/src/workers/replicator.d.ts +0 -1
- package/out/zero-cache/src/workers/replicator.d.ts.map +1 -1
- package/out/zero-cache/src/workers/replicator.js +2 -4
- package/out/zero-cache/src/workers/replicator.js.map +1 -1
- package/out/zero-client/src/client/version.js +1 -1
- package/out/zqlite/src/query-builder.d.ts.map +1 -1
- package/out/zqlite/src/query-builder.js +1 -2
- package/out/zqlite/src/query-builder.js.map +1 -1
- package/out/zqlite/src/sqlite-stat-fanout.d.ts.map +1 -1
- package/out/zqlite/src/sqlite-stat-fanout.js +0 -1
- package/out/zqlite/src/sqlite-stat-fanout.js.map +1 -1
- package/out/zqlite/src/table-source.d.ts +1 -1
- package/out/zqlite/src/table-source.d.ts.map +1 -1
- package/out/zqlite/src/table-source.js +1 -2
- package/out/zqlite/src/table-source.js.map +1 -1
- package/package.json +1 -1
- package/out/zero-cache/src/db/index-predicate.d.ts +0 -4
- package/out/zero-cache/src/db/index-predicate.d.ts.map +0 -1
- package/out/zero-cache/src/db/index-predicate.js +0 -46
- package/out/zero-cache/src/db/index-predicate.js.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/schema/index-predicate.d.ts +0 -19
- package/out/zero-cache/src/services/change-source/pg/schema/index-predicate.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-source/pg/schema/index-predicate.js +0 -581
- package/out/zero-cache/src/services/change-source/pg/schema/index-predicate.js.map +0 -1
- package/out/zero-cache/src/services/litestream/litestream-checkpointer.js +0 -131
- package/out/zero-cache/src/services/litestream/litestream-checkpointer.js.map +0 -1
- package/out/zero-cache/src/services/litestream/litestream-controller.d.ts +0 -70
- package/out/zero-cache/src/services/litestream/litestream-controller.d.ts.map +0 -1
- package/out/zero-cache/src/services/litestream/litestream-controller.js +0 -101
- package/out/zero-cache/src/services/litestream/litestream-controller.js.map +0 -1
|
@@ -45,284 +45,70 @@ export declare const ddlStartEventSchema: v.ObjectType<Omit<Omit<{
|
|
|
45
45
|
type: v.Type<"ddlStart">;
|
|
46
46
|
schema: v.Optional<{
|
|
47
47
|
indexes: {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} | {
|
|
57
|
-
readonly type: "comparison";
|
|
58
|
-
readonly column: string;
|
|
59
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
60
|
-
readonly value: {
|
|
61
|
-
readonly type: "boolean";
|
|
62
|
-
readonly value: boolean;
|
|
63
|
-
} | {
|
|
64
|
-
readonly type: "integer";
|
|
65
|
-
readonly value: string;
|
|
66
|
-
} | {
|
|
67
|
-
readonly type: "string";
|
|
68
|
-
readonly value: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
} | {
|
|
72
|
-
readonly type: "null-test";
|
|
73
|
-
readonly column: string;
|
|
74
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
75
|
-
} | {
|
|
76
|
-
readonly type: "comparison";
|
|
77
|
-
readonly column: string;
|
|
78
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
79
|
-
readonly value: {
|
|
80
|
-
readonly type: "boolean";
|
|
81
|
-
readonly value: boolean;
|
|
82
|
-
} | {
|
|
83
|
-
readonly type: "integer";
|
|
84
|
-
readonly value: string;
|
|
85
|
-
} | {
|
|
86
|
-
readonly type: "string";
|
|
87
|
-
readonly value: string;
|
|
88
|
-
};
|
|
89
|
-
})[];
|
|
90
|
-
} | {
|
|
91
|
-
readonly type: "not";
|
|
92
|
-
readonly condition: {
|
|
93
|
-
readonly type: "and" | "or";
|
|
94
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
95
|
-
readonly type: "null-test";
|
|
96
|
-
readonly column: string;
|
|
97
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
98
|
-
} | {
|
|
99
|
-
readonly type: "comparison";
|
|
100
|
-
readonly column: string;
|
|
101
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
102
|
-
readonly value: {
|
|
103
|
-
readonly type: "boolean";
|
|
104
|
-
readonly value: boolean;
|
|
105
|
-
} | {
|
|
106
|
-
readonly type: "integer";
|
|
107
|
-
readonly value: string;
|
|
108
|
-
} | {
|
|
109
|
-
readonly type: "string";
|
|
110
|
-
readonly value: string;
|
|
111
|
-
};
|
|
112
|
-
})[];
|
|
113
|
-
} | /*elided*/ any | {
|
|
114
|
-
readonly type: "null-test";
|
|
115
|
-
readonly column: string;
|
|
116
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
117
|
-
} | {
|
|
118
|
-
readonly type: "comparison";
|
|
119
|
-
readonly column: string;
|
|
120
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
121
|
-
readonly value: {
|
|
122
|
-
readonly type: "boolean";
|
|
123
|
-
readonly value: boolean;
|
|
124
|
-
} | {
|
|
125
|
-
readonly type: "integer";
|
|
126
|
-
readonly value: string;
|
|
127
|
-
} | {
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
readonly value: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
} | {
|
|
133
|
-
readonly type: "null-test";
|
|
134
|
-
readonly column: string;
|
|
135
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
136
|
-
} | {
|
|
137
|
-
readonly type: "comparison";
|
|
138
|
-
readonly column: string;
|
|
139
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
140
|
-
readonly value: {
|
|
141
|
-
readonly type: "boolean";
|
|
142
|
-
readonly value: boolean;
|
|
143
|
-
} | {
|
|
144
|
-
readonly type: "integer";
|
|
145
|
-
readonly value: string;
|
|
146
|
-
} | {
|
|
147
|
-
readonly type: "string";
|
|
148
|
-
readonly value: string;
|
|
149
|
-
};
|
|
150
|
-
} | undefined;
|
|
151
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
152
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
153
|
-
readonly isImmediate?: boolean | undefined;
|
|
154
|
-
readonly name: string;
|
|
155
|
-
readonly columns: {
|
|
156
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
157
|
-
};
|
|
158
|
-
readonly schema: string;
|
|
159
|
-
readonly tableName: string;
|
|
160
|
-
readonly unique: boolean;
|
|
48
|
+
isReplicaIdentity?: boolean | undefined;
|
|
49
|
+
isPrimaryKey?: boolean | undefined;
|
|
50
|
+
isImmediate?: boolean | undefined;
|
|
51
|
+
name: string;
|
|
52
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
53
|
+
schema: string;
|
|
54
|
+
tableName: string;
|
|
55
|
+
unique: boolean;
|
|
161
56
|
}[];
|
|
162
57
|
tables: {
|
|
163
58
|
replicaIdentityColumns: string[];
|
|
164
|
-
columns: {
|
|
165
|
-
[k: string]: {
|
|
166
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
167
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
168
|
-
characterMaximumLength?: number | null | undefined;
|
|
169
|
-
notNull?: boolean | null | undefined;
|
|
170
|
-
dflt?: string | null | undefined;
|
|
171
|
-
pos: number;
|
|
172
|
-
dataType: string;
|
|
173
|
-
typeOID: number;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
59
|
primaryKey?: string[] | undefined;
|
|
177
60
|
schemaOID?: number | undefined;
|
|
178
61
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
179
62
|
name: string;
|
|
180
63
|
schema: string;
|
|
64
|
+
oid: number;
|
|
65
|
+
columns: Record<string, {
|
|
66
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
67
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
68
|
+
characterMaximumLength?: number | null | undefined;
|
|
69
|
+
notNull?: boolean | null | undefined;
|
|
70
|
+
dflt?: string | null | undefined;
|
|
71
|
+
pos: number;
|
|
72
|
+
dataType: string;
|
|
73
|
+
typeOID: number;
|
|
74
|
+
}>;
|
|
181
75
|
publications: Record<string, {
|
|
182
76
|
rowFilter: string | null;
|
|
183
77
|
}>;
|
|
184
|
-
oid: number;
|
|
185
78
|
}[];
|
|
186
79
|
}>;
|
|
187
80
|
previousSchema: v.Optional<{
|
|
188
81
|
indexes: {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
} | {
|
|
198
|
-
readonly type: "comparison";
|
|
199
|
-
readonly column: string;
|
|
200
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
201
|
-
readonly value: {
|
|
202
|
-
readonly type: "boolean";
|
|
203
|
-
readonly value: boolean;
|
|
204
|
-
} | {
|
|
205
|
-
readonly type: "integer";
|
|
206
|
-
readonly value: string;
|
|
207
|
-
} | {
|
|
208
|
-
readonly type: "string";
|
|
209
|
-
readonly value: string;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
} | {
|
|
213
|
-
readonly type: "null-test";
|
|
214
|
-
readonly column: string;
|
|
215
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
216
|
-
} | {
|
|
217
|
-
readonly type: "comparison";
|
|
218
|
-
readonly column: string;
|
|
219
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
220
|
-
readonly value: {
|
|
221
|
-
readonly type: "boolean";
|
|
222
|
-
readonly value: boolean;
|
|
223
|
-
} | {
|
|
224
|
-
readonly type: "integer";
|
|
225
|
-
readonly value: string;
|
|
226
|
-
} | {
|
|
227
|
-
readonly type: "string";
|
|
228
|
-
readonly value: string;
|
|
229
|
-
};
|
|
230
|
-
})[];
|
|
231
|
-
} | {
|
|
232
|
-
readonly type: "not";
|
|
233
|
-
readonly condition: {
|
|
234
|
-
readonly type: "and" | "or";
|
|
235
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
236
|
-
readonly type: "null-test";
|
|
237
|
-
readonly column: string;
|
|
238
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
239
|
-
} | {
|
|
240
|
-
readonly type: "comparison";
|
|
241
|
-
readonly column: string;
|
|
242
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
243
|
-
readonly value: {
|
|
244
|
-
readonly type: "boolean";
|
|
245
|
-
readonly value: boolean;
|
|
246
|
-
} | {
|
|
247
|
-
readonly type: "integer";
|
|
248
|
-
readonly value: string;
|
|
249
|
-
} | {
|
|
250
|
-
readonly type: "string";
|
|
251
|
-
readonly value: string;
|
|
252
|
-
};
|
|
253
|
-
})[];
|
|
254
|
-
} | /*elided*/ any | {
|
|
255
|
-
readonly type: "null-test";
|
|
256
|
-
readonly column: string;
|
|
257
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
258
|
-
} | {
|
|
259
|
-
readonly type: "comparison";
|
|
260
|
-
readonly column: string;
|
|
261
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
262
|
-
readonly value: {
|
|
263
|
-
readonly type: "boolean";
|
|
264
|
-
readonly value: boolean;
|
|
265
|
-
} | {
|
|
266
|
-
readonly type: "integer";
|
|
267
|
-
readonly value: string;
|
|
268
|
-
} | {
|
|
269
|
-
readonly type: "string";
|
|
270
|
-
readonly value: string;
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
} | {
|
|
274
|
-
readonly type: "null-test";
|
|
275
|
-
readonly column: string;
|
|
276
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
277
|
-
} | {
|
|
278
|
-
readonly type: "comparison";
|
|
279
|
-
readonly column: string;
|
|
280
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
281
|
-
readonly value: {
|
|
282
|
-
readonly type: "boolean";
|
|
283
|
-
readonly value: boolean;
|
|
284
|
-
} | {
|
|
285
|
-
readonly type: "integer";
|
|
286
|
-
readonly value: string;
|
|
287
|
-
} | {
|
|
288
|
-
readonly type: "string";
|
|
289
|
-
readonly value: string;
|
|
290
|
-
};
|
|
291
|
-
} | undefined;
|
|
292
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
293
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
294
|
-
readonly isImmediate?: boolean | undefined;
|
|
295
|
-
readonly name: string;
|
|
296
|
-
readonly columns: {
|
|
297
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
298
|
-
};
|
|
299
|
-
readonly schema: string;
|
|
300
|
-
readonly tableName: string;
|
|
301
|
-
readonly unique: boolean;
|
|
82
|
+
isReplicaIdentity?: boolean | undefined;
|
|
83
|
+
isPrimaryKey?: boolean | undefined;
|
|
84
|
+
isImmediate?: boolean | undefined;
|
|
85
|
+
name: string;
|
|
86
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
87
|
+
schema: string;
|
|
88
|
+
tableName: string;
|
|
89
|
+
unique: boolean;
|
|
302
90
|
}[];
|
|
303
91
|
tables: {
|
|
304
92
|
replicaIdentityColumns: string[];
|
|
305
|
-
columns: {
|
|
306
|
-
[k: string]: {
|
|
307
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
308
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
309
|
-
characterMaximumLength?: number | null | undefined;
|
|
310
|
-
notNull?: boolean | null | undefined;
|
|
311
|
-
dflt?: string | null | undefined;
|
|
312
|
-
pos: number;
|
|
313
|
-
dataType: string;
|
|
314
|
-
typeOID: number;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
93
|
primaryKey?: string[] | undefined;
|
|
318
94
|
schemaOID?: number | undefined;
|
|
319
95
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
320
96
|
name: string;
|
|
321
97
|
schema: string;
|
|
98
|
+
oid: number;
|
|
99
|
+
columns: Record<string, {
|
|
100
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
101
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
102
|
+
characterMaximumLength?: number | null | undefined;
|
|
103
|
+
notNull?: boolean | null | undefined;
|
|
104
|
+
dflt?: string | null | undefined;
|
|
105
|
+
pos: number;
|
|
106
|
+
dataType: string;
|
|
107
|
+
typeOID: number;
|
|
108
|
+
}>;
|
|
322
109
|
publications: Record<string, {
|
|
323
110
|
rowFilter: string | null;
|
|
324
111
|
}>;
|
|
325
|
-
oid: number;
|
|
326
112
|
}[];
|
|
327
113
|
} | null>;
|
|
328
114
|
event: v.Type<{
|
|
@@ -349,284 +135,70 @@ export declare const ddlUpdateEventSchema: v.ObjectType<Omit<Omit<{
|
|
|
349
135
|
type: v.Type<"ddlUpdate">;
|
|
350
136
|
schema: v.Type<{
|
|
351
137
|
indexes: {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
} | {
|
|
361
|
-
readonly type: "comparison";
|
|
362
|
-
readonly column: string;
|
|
363
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
364
|
-
readonly value: {
|
|
365
|
-
readonly type: "boolean";
|
|
366
|
-
readonly value: boolean;
|
|
367
|
-
} | {
|
|
368
|
-
readonly type: "integer";
|
|
369
|
-
readonly value: string;
|
|
370
|
-
} | {
|
|
371
|
-
readonly type: "string";
|
|
372
|
-
readonly value: string;
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
} | {
|
|
376
|
-
readonly type: "null-test";
|
|
377
|
-
readonly column: string;
|
|
378
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
379
|
-
} | {
|
|
380
|
-
readonly type: "comparison";
|
|
381
|
-
readonly column: string;
|
|
382
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
383
|
-
readonly value: {
|
|
384
|
-
readonly type: "boolean";
|
|
385
|
-
readonly value: boolean;
|
|
386
|
-
} | {
|
|
387
|
-
readonly type: "integer";
|
|
388
|
-
readonly value: string;
|
|
389
|
-
} | {
|
|
390
|
-
readonly type: "string";
|
|
391
|
-
readonly value: string;
|
|
392
|
-
};
|
|
393
|
-
})[];
|
|
394
|
-
} | {
|
|
395
|
-
readonly type: "not";
|
|
396
|
-
readonly condition: {
|
|
397
|
-
readonly type: "and" | "or";
|
|
398
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
399
|
-
readonly type: "null-test";
|
|
400
|
-
readonly column: string;
|
|
401
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
402
|
-
} | {
|
|
403
|
-
readonly type: "comparison";
|
|
404
|
-
readonly column: string;
|
|
405
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
406
|
-
readonly value: {
|
|
407
|
-
readonly type: "boolean";
|
|
408
|
-
readonly value: boolean;
|
|
409
|
-
} | {
|
|
410
|
-
readonly type: "integer";
|
|
411
|
-
readonly value: string;
|
|
412
|
-
} | {
|
|
413
|
-
readonly type: "string";
|
|
414
|
-
readonly value: string;
|
|
415
|
-
};
|
|
416
|
-
})[];
|
|
417
|
-
} | /*elided*/ any | {
|
|
418
|
-
readonly type: "null-test";
|
|
419
|
-
readonly column: string;
|
|
420
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
421
|
-
} | {
|
|
422
|
-
readonly type: "comparison";
|
|
423
|
-
readonly column: string;
|
|
424
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
425
|
-
readonly value: {
|
|
426
|
-
readonly type: "boolean";
|
|
427
|
-
readonly value: boolean;
|
|
428
|
-
} | {
|
|
429
|
-
readonly type: "integer";
|
|
430
|
-
readonly value: string;
|
|
431
|
-
} | {
|
|
432
|
-
readonly type: "string";
|
|
433
|
-
readonly value: string;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
} | {
|
|
437
|
-
readonly type: "null-test";
|
|
438
|
-
readonly column: string;
|
|
439
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
440
|
-
} | {
|
|
441
|
-
readonly type: "comparison";
|
|
442
|
-
readonly column: string;
|
|
443
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
444
|
-
readonly value: {
|
|
445
|
-
readonly type: "boolean";
|
|
446
|
-
readonly value: boolean;
|
|
447
|
-
} | {
|
|
448
|
-
readonly type: "integer";
|
|
449
|
-
readonly value: string;
|
|
450
|
-
} | {
|
|
451
|
-
readonly type: "string";
|
|
452
|
-
readonly value: string;
|
|
453
|
-
};
|
|
454
|
-
} | undefined;
|
|
455
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
456
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
457
|
-
readonly isImmediate?: boolean | undefined;
|
|
458
|
-
readonly name: string;
|
|
459
|
-
readonly columns: {
|
|
460
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
461
|
-
};
|
|
462
|
-
readonly schema: string;
|
|
463
|
-
readonly tableName: string;
|
|
464
|
-
readonly unique: boolean;
|
|
138
|
+
isReplicaIdentity?: boolean | undefined;
|
|
139
|
+
isPrimaryKey?: boolean | undefined;
|
|
140
|
+
isImmediate?: boolean | undefined;
|
|
141
|
+
name: string;
|
|
142
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
143
|
+
schema: string;
|
|
144
|
+
tableName: string;
|
|
145
|
+
unique: boolean;
|
|
465
146
|
}[];
|
|
466
147
|
tables: {
|
|
467
148
|
replicaIdentityColumns: string[];
|
|
468
|
-
columns: {
|
|
469
|
-
[k: string]: {
|
|
470
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
471
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
472
|
-
characterMaximumLength?: number | null | undefined;
|
|
473
|
-
notNull?: boolean | null | undefined;
|
|
474
|
-
dflt?: string | null | undefined;
|
|
475
|
-
pos: number;
|
|
476
|
-
dataType: string;
|
|
477
|
-
typeOID: number;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
149
|
primaryKey?: string[] | undefined;
|
|
481
150
|
schemaOID?: number | undefined;
|
|
482
151
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
483
152
|
name: string;
|
|
484
153
|
schema: string;
|
|
154
|
+
oid: number;
|
|
155
|
+
columns: Record<string, {
|
|
156
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
157
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
158
|
+
characterMaximumLength?: number | null | undefined;
|
|
159
|
+
notNull?: boolean | null | undefined;
|
|
160
|
+
dflt?: string | null | undefined;
|
|
161
|
+
pos: number;
|
|
162
|
+
dataType: string;
|
|
163
|
+
typeOID: number;
|
|
164
|
+
}>;
|
|
485
165
|
publications: Record<string, {
|
|
486
166
|
rowFilter: string | null;
|
|
487
167
|
}>;
|
|
488
|
-
oid: number;
|
|
489
168
|
}[];
|
|
490
169
|
}>;
|
|
491
170
|
previousSchema: v.Optional<{
|
|
492
171
|
indexes: {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
} | {
|
|
502
|
-
readonly type: "comparison";
|
|
503
|
-
readonly column: string;
|
|
504
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
505
|
-
readonly value: {
|
|
506
|
-
readonly type: "boolean";
|
|
507
|
-
readonly value: boolean;
|
|
508
|
-
} | {
|
|
509
|
-
readonly type: "integer";
|
|
510
|
-
readonly value: string;
|
|
511
|
-
} | {
|
|
512
|
-
readonly type: "string";
|
|
513
|
-
readonly value: string;
|
|
514
|
-
};
|
|
515
|
-
};
|
|
516
|
-
} | {
|
|
517
|
-
readonly type: "null-test";
|
|
518
|
-
readonly column: string;
|
|
519
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
520
|
-
} | {
|
|
521
|
-
readonly type: "comparison";
|
|
522
|
-
readonly column: string;
|
|
523
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
524
|
-
readonly value: {
|
|
525
|
-
readonly type: "boolean";
|
|
526
|
-
readonly value: boolean;
|
|
527
|
-
} | {
|
|
528
|
-
readonly type: "integer";
|
|
529
|
-
readonly value: string;
|
|
530
|
-
} | {
|
|
531
|
-
readonly type: "string";
|
|
532
|
-
readonly value: string;
|
|
533
|
-
};
|
|
534
|
-
})[];
|
|
535
|
-
} | {
|
|
536
|
-
readonly type: "not";
|
|
537
|
-
readonly condition: {
|
|
538
|
-
readonly type: "and" | "or";
|
|
539
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
540
|
-
readonly type: "null-test";
|
|
541
|
-
readonly column: string;
|
|
542
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
543
|
-
} | {
|
|
544
|
-
readonly type: "comparison";
|
|
545
|
-
readonly column: string;
|
|
546
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
547
|
-
readonly value: {
|
|
548
|
-
readonly type: "boolean";
|
|
549
|
-
readonly value: boolean;
|
|
550
|
-
} | {
|
|
551
|
-
readonly type: "integer";
|
|
552
|
-
readonly value: string;
|
|
553
|
-
} | {
|
|
554
|
-
readonly type: "string";
|
|
555
|
-
readonly value: string;
|
|
556
|
-
};
|
|
557
|
-
})[];
|
|
558
|
-
} | /*elided*/ any | {
|
|
559
|
-
readonly type: "null-test";
|
|
560
|
-
readonly column: string;
|
|
561
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
562
|
-
} | {
|
|
563
|
-
readonly type: "comparison";
|
|
564
|
-
readonly column: string;
|
|
565
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
566
|
-
readonly value: {
|
|
567
|
-
readonly type: "boolean";
|
|
568
|
-
readonly value: boolean;
|
|
569
|
-
} | {
|
|
570
|
-
readonly type: "integer";
|
|
571
|
-
readonly value: string;
|
|
572
|
-
} | {
|
|
573
|
-
readonly type: "string";
|
|
574
|
-
readonly value: string;
|
|
575
|
-
};
|
|
576
|
-
};
|
|
577
|
-
} | {
|
|
578
|
-
readonly type: "null-test";
|
|
579
|
-
readonly column: string;
|
|
580
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
581
|
-
} | {
|
|
582
|
-
readonly type: "comparison";
|
|
583
|
-
readonly column: string;
|
|
584
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
585
|
-
readonly value: {
|
|
586
|
-
readonly type: "boolean";
|
|
587
|
-
readonly value: boolean;
|
|
588
|
-
} | {
|
|
589
|
-
readonly type: "integer";
|
|
590
|
-
readonly value: string;
|
|
591
|
-
} | {
|
|
592
|
-
readonly type: "string";
|
|
593
|
-
readonly value: string;
|
|
594
|
-
};
|
|
595
|
-
} | undefined;
|
|
596
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
597
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
598
|
-
readonly isImmediate?: boolean | undefined;
|
|
599
|
-
readonly name: string;
|
|
600
|
-
readonly columns: {
|
|
601
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
602
|
-
};
|
|
603
|
-
readonly schema: string;
|
|
604
|
-
readonly tableName: string;
|
|
605
|
-
readonly unique: boolean;
|
|
172
|
+
isReplicaIdentity?: boolean | undefined;
|
|
173
|
+
isPrimaryKey?: boolean | undefined;
|
|
174
|
+
isImmediate?: boolean | undefined;
|
|
175
|
+
name: string;
|
|
176
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
177
|
+
schema: string;
|
|
178
|
+
tableName: string;
|
|
179
|
+
unique: boolean;
|
|
606
180
|
}[];
|
|
607
181
|
tables: {
|
|
608
182
|
replicaIdentityColumns: string[];
|
|
609
|
-
columns: {
|
|
610
|
-
[k: string]: {
|
|
611
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
612
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
613
|
-
characterMaximumLength?: number | null | undefined;
|
|
614
|
-
notNull?: boolean | null | undefined;
|
|
615
|
-
dflt?: string | null | undefined;
|
|
616
|
-
pos: number;
|
|
617
|
-
dataType: string;
|
|
618
|
-
typeOID: number;
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
183
|
primaryKey?: string[] | undefined;
|
|
622
184
|
schemaOID?: number | undefined;
|
|
623
185
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
624
186
|
name: string;
|
|
625
187
|
schema: string;
|
|
188
|
+
oid: number;
|
|
189
|
+
columns: Record<string, {
|
|
190
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
191
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
192
|
+
characterMaximumLength?: number | null | undefined;
|
|
193
|
+
notNull?: boolean | null | undefined;
|
|
194
|
+
dflt?: string | null | undefined;
|
|
195
|
+
pos: number;
|
|
196
|
+
dataType: string;
|
|
197
|
+
typeOID: number;
|
|
198
|
+
}>;
|
|
626
199
|
publications: Record<string, {
|
|
627
200
|
rowFilter: string | null;
|
|
628
201
|
}>;
|
|
629
|
-
oid: number;
|
|
630
202
|
}[];
|
|
631
203
|
}>;
|
|
632
204
|
}, undefined>;
|
|
@@ -667,284 +239,70 @@ export declare const schemaSnapshotEventSchema: v.ObjectType<Omit<Omit<{
|
|
|
667
239
|
type: v.Type<"schemaSnapshot">;
|
|
668
240
|
schema: v.Type<{
|
|
669
241
|
indexes: {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
} | {
|
|
679
|
-
readonly type: "comparison";
|
|
680
|
-
readonly column: string;
|
|
681
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
682
|
-
readonly value: {
|
|
683
|
-
readonly type: "boolean";
|
|
684
|
-
readonly value: boolean;
|
|
685
|
-
} | {
|
|
686
|
-
readonly type: "integer";
|
|
687
|
-
readonly value: string;
|
|
688
|
-
} | {
|
|
689
|
-
readonly type: "string";
|
|
690
|
-
readonly value: string;
|
|
691
|
-
};
|
|
692
|
-
};
|
|
693
|
-
} | {
|
|
694
|
-
readonly type: "null-test";
|
|
695
|
-
readonly column: string;
|
|
696
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
697
|
-
} | {
|
|
698
|
-
readonly type: "comparison";
|
|
699
|
-
readonly column: string;
|
|
700
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
701
|
-
readonly value: {
|
|
702
|
-
readonly type: "boolean";
|
|
703
|
-
readonly value: boolean;
|
|
704
|
-
} | {
|
|
705
|
-
readonly type: "integer";
|
|
706
|
-
readonly value: string;
|
|
707
|
-
} | {
|
|
708
|
-
readonly type: "string";
|
|
709
|
-
readonly value: string;
|
|
710
|
-
};
|
|
711
|
-
})[];
|
|
712
|
-
} | {
|
|
713
|
-
readonly type: "not";
|
|
714
|
-
readonly condition: {
|
|
715
|
-
readonly type: "and" | "or";
|
|
716
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
717
|
-
readonly type: "null-test";
|
|
718
|
-
readonly column: string;
|
|
719
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
720
|
-
} | {
|
|
721
|
-
readonly type: "comparison";
|
|
722
|
-
readonly column: string;
|
|
723
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
724
|
-
readonly value: {
|
|
725
|
-
readonly type: "boolean";
|
|
726
|
-
readonly value: boolean;
|
|
727
|
-
} | {
|
|
728
|
-
readonly type: "integer";
|
|
729
|
-
readonly value: string;
|
|
730
|
-
} | {
|
|
731
|
-
readonly type: "string";
|
|
732
|
-
readonly value: string;
|
|
733
|
-
};
|
|
734
|
-
})[];
|
|
735
|
-
} | /*elided*/ any | {
|
|
736
|
-
readonly type: "null-test";
|
|
737
|
-
readonly column: string;
|
|
738
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
739
|
-
} | {
|
|
740
|
-
readonly type: "comparison";
|
|
741
|
-
readonly column: string;
|
|
742
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
743
|
-
readonly value: {
|
|
744
|
-
readonly type: "boolean";
|
|
745
|
-
readonly value: boolean;
|
|
746
|
-
} | {
|
|
747
|
-
readonly type: "integer";
|
|
748
|
-
readonly value: string;
|
|
749
|
-
} | {
|
|
750
|
-
readonly type: "string";
|
|
751
|
-
readonly value: string;
|
|
752
|
-
};
|
|
753
|
-
};
|
|
754
|
-
} | {
|
|
755
|
-
readonly type: "null-test";
|
|
756
|
-
readonly column: string;
|
|
757
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
758
|
-
} | {
|
|
759
|
-
readonly type: "comparison";
|
|
760
|
-
readonly column: string;
|
|
761
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
762
|
-
readonly value: {
|
|
763
|
-
readonly type: "boolean";
|
|
764
|
-
readonly value: boolean;
|
|
765
|
-
} | {
|
|
766
|
-
readonly type: "integer";
|
|
767
|
-
readonly value: string;
|
|
768
|
-
} | {
|
|
769
|
-
readonly type: "string";
|
|
770
|
-
readonly value: string;
|
|
771
|
-
};
|
|
772
|
-
} | undefined;
|
|
773
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
774
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
775
|
-
readonly isImmediate?: boolean | undefined;
|
|
776
|
-
readonly name: string;
|
|
777
|
-
readonly columns: {
|
|
778
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
779
|
-
};
|
|
780
|
-
readonly schema: string;
|
|
781
|
-
readonly tableName: string;
|
|
782
|
-
readonly unique: boolean;
|
|
242
|
+
isReplicaIdentity?: boolean | undefined;
|
|
243
|
+
isPrimaryKey?: boolean | undefined;
|
|
244
|
+
isImmediate?: boolean | undefined;
|
|
245
|
+
name: string;
|
|
246
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
247
|
+
schema: string;
|
|
248
|
+
tableName: string;
|
|
249
|
+
unique: boolean;
|
|
783
250
|
}[];
|
|
784
251
|
tables: {
|
|
785
252
|
replicaIdentityColumns: string[];
|
|
786
|
-
columns: {
|
|
787
|
-
[k: string]: {
|
|
788
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
789
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
790
|
-
characterMaximumLength?: number | null | undefined;
|
|
791
|
-
notNull?: boolean | null | undefined;
|
|
792
|
-
dflt?: string | null | undefined;
|
|
793
|
-
pos: number;
|
|
794
|
-
dataType: string;
|
|
795
|
-
typeOID: number;
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
253
|
primaryKey?: string[] | undefined;
|
|
799
254
|
schemaOID?: number | undefined;
|
|
800
255
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
801
256
|
name: string;
|
|
802
257
|
schema: string;
|
|
258
|
+
oid: number;
|
|
259
|
+
columns: Record<string, {
|
|
260
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
261
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
262
|
+
characterMaximumLength?: number | null | undefined;
|
|
263
|
+
notNull?: boolean | null | undefined;
|
|
264
|
+
dflt?: string | null | undefined;
|
|
265
|
+
pos: number;
|
|
266
|
+
dataType: string;
|
|
267
|
+
typeOID: number;
|
|
268
|
+
}>;
|
|
803
269
|
publications: Record<string, {
|
|
804
270
|
rowFilter: string | null;
|
|
805
271
|
}>;
|
|
806
|
-
oid: number;
|
|
807
272
|
}[];
|
|
808
273
|
}>;
|
|
809
274
|
previousSchema: v.Optional<{
|
|
810
275
|
indexes: {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
} | {
|
|
820
|
-
readonly type: "comparison";
|
|
821
|
-
readonly column: string;
|
|
822
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
823
|
-
readonly value: {
|
|
824
|
-
readonly type: "boolean";
|
|
825
|
-
readonly value: boolean;
|
|
826
|
-
} | {
|
|
827
|
-
readonly type: "integer";
|
|
828
|
-
readonly value: string;
|
|
829
|
-
} | {
|
|
830
|
-
readonly type: "string";
|
|
831
|
-
readonly value: string;
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
} | {
|
|
835
|
-
readonly type: "null-test";
|
|
836
|
-
readonly column: string;
|
|
837
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
838
|
-
} | {
|
|
839
|
-
readonly type: "comparison";
|
|
840
|
-
readonly column: string;
|
|
841
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
842
|
-
readonly value: {
|
|
843
|
-
readonly type: "boolean";
|
|
844
|
-
readonly value: boolean;
|
|
845
|
-
} | {
|
|
846
|
-
readonly type: "integer";
|
|
847
|
-
readonly value: string;
|
|
848
|
-
} | {
|
|
849
|
-
readonly type: "string";
|
|
850
|
-
readonly value: string;
|
|
851
|
-
};
|
|
852
|
-
})[];
|
|
853
|
-
} | {
|
|
854
|
-
readonly type: "not";
|
|
855
|
-
readonly condition: {
|
|
856
|
-
readonly type: "and" | "or";
|
|
857
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
858
|
-
readonly type: "null-test";
|
|
859
|
-
readonly column: string;
|
|
860
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
861
|
-
} | {
|
|
862
|
-
readonly type: "comparison";
|
|
863
|
-
readonly column: string;
|
|
864
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
865
|
-
readonly value: {
|
|
866
|
-
readonly type: "boolean";
|
|
867
|
-
readonly value: boolean;
|
|
868
|
-
} | {
|
|
869
|
-
readonly type: "integer";
|
|
870
|
-
readonly value: string;
|
|
871
|
-
} | {
|
|
872
|
-
readonly type: "string";
|
|
873
|
-
readonly value: string;
|
|
874
|
-
};
|
|
875
|
-
})[];
|
|
876
|
-
} | /*elided*/ any | {
|
|
877
|
-
readonly type: "null-test";
|
|
878
|
-
readonly column: string;
|
|
879
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
880
|
-
} | {
|
|
881
|
-
readonly type: "comparison";
|
|
882
|
-
readonly column: string;
|
|
883
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
884
|
-
readonly value: {
|
|
885
|
-
readonly type: "boolean";
|
|
886
|
-
readonly value: boolean;
|
|
887
|
-
} | {
|
|
888
|
-
readonly type: "integer";
|
|
889
|
-
readonly value: string;
|
|
890
|
-
} | {
|
|
891
|
-
readonly type: "string";
|
|
892
|
-
readonly value: string;
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
} | {
|
|
896
|
-
readonly type: "null-test";
|
|
897
|
-
readonly column: string;
|
|
898
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
899
|
-
} | {
|
|
900
|
-
readonly type: "comparison";
|
|
901
|
-
readonly column: string;
|
|
902
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
903
|
-
readonly value: {
|
|
904
|
-
readonly type: "boolean";
|
|
905
|
-
readonly value: boolean;
|
|
906
|
-
} | {
|
|
907
|
-
readonly type: "integer";
|
|
908
|
-
readonly value: string;
|
|
909
|
-
} | {
|
|
910
|
-
readonly type: "string";
|
|
911
|
-
readonly value: string;
|
|
912
|
-
};
|
|
913
|
-
} | undefined;
|
|
914
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
915
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
916
|
-
readonly isImmediate?: boolean | undefined;
|
|
917
|
-
readonly name: string;
|
|
918
|
-
readonly columns: {
|
|
919
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
920
|
-
};
|
|
921
|
-
readonly schema: string;
|
|
922
|
-
readonly tableName: string;
|
|
923
|
-
readonly unique: boolean;
|
|
276
|
+
isReplicaIdentity?: boolean | undefined;
|
|
277
|
+
isPrimaryKey?: boolean | undefined;
|
|
278
|
+
isImmediate?: boolean | undefined;
|
|
279
|
+
name: string;
|
|
280
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
281
|
+
schema: string;
|
|
282
|
+
tableName: string;
|
|
283
|
+
unique: boolean;
|
|
924
284
|
}[];
|
|
925
285
|
tables: {
|
|
926
286
|
replicaIdentityColumns: string[];
|
|
927
|
-
columns: {
|
|
928
|
-
[k: string]: {
|
|
929
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
930
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
931
|
-
characterMaximumLength?: number | null | undefined;
|
|
932
|
-
notNull?: boolean | null | undefined;
|
|
933
|
-
dflt?: string | null | undefined;
|
|
934
|
-
pos: number;
|
|
935
|
-
dataType: string;
|
|
936
|
-
typeOID: number;
|
|
937
|
-
};
|
|
938
|
-
};
|
|
939
287
|
primaryKey?: string[] | undefined;
|
|
940
288
|
schemaOID?: number | undefined;
|
|
941
289
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
942
290
|
name: string;
|
|
943
291
|
schema: string;
|
|
292
|
+
oid: number;
|
|
293
|
+
columns: Record<string, {
|
|
294
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
295
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
296
|
+
characterMaximumLength?: number | null | undefined;
|
|
297
|
+
notNull?: boolean | null | undefined;
|
|
298
|
+
dflt?: string | null | undefined;
|
|
299
|
+
pos: number;
|
|
300
|
+
dataType: string;
|
|
301
|
+
typeOID: number;
|
|
302
|
+
}>;
|
|
944
303
|
publications: Record<string, {
|
|
945
304
|
rowFilter: string | null;
|
|
946
305
|
}>;
|
|
947
|
-
oid: number;
|
|
948
306
|
}[];
|
|
949
307
|
}>;
|
|
950
308
|
}, undefined>;
|
|
@@ -963,284 +321,70 @@ export declare const replicationEventSchema: v.UnionType<[v.ObjectType<Omit<Omit
|
|
|
963
321
|
type: v.Type<"ddlStart">;
|
|
964
322
|
schema: v.Optional<{
|
|
965
323
|
indexes: {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
} | {
|
|
975
|
-
readonly type: "comparison";
|
|
976
|
-
readonly column: string;
|
|
977
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
978
|
-
readonly value: {
|
|
979
|
-
readonly type: "boolean";
|
|
980
|
-
readonly value: boolean;
|
|
981
|
-
} | {
|
|
982
|
-
readonly type: "integer";
|
|
983
|
-
readonly value: string;
|
|
984
|
-
} | {
|
|
985
|
-
readonly type: "string";
|
|
986
|
-
readonly value: string;
|
|
987
|
-
};
|
|
988
|
-
};
|
|
989
|
-
} | {
|
|
990
|
-
readonly type: "null-test";
|
|
991
|
-
readonly column: string;
|
|
992
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
993
|
-
} | {
|
|
994
|
-
readonly type: "comparison";
|
|
995
|
-
readonly column: string;
|
|
996
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
997
|
-
readonly value: {
|
|
998
|
-
readonly type: "boolean";
|
|
999
|
-
readonly value: boolean;
|
|
1000
|
-
} | {
|
|
1001
|
-
readonly type: "integer";
|
|
1002
|
-
readonly value: string;
|
|
1003
|
-
} | {
|
|
1004
|
-
readonly type: "string";
|
|
1005
|
-
readonly value: string;
|
|
1006
|
-
};
|
|
1007
|
-
})[];
|
|
1008
|
-
} | {
|
|
1009
|
-
readonly type: "not";
|
|
1010
|
-
readonly condition: {
|
|
1011
|
-
readonly type: "and" | "or";
|
|
1012
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
1013
|
-
readonly type: "null-test";
|
|
1014
|
-
readonly column: string;
|
|
1015
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1016
|
-
} | {
|
|
1017
|
-
readonly type: "comparison";
|
|
1018
|
-
readonly column: string;
|
|
1019
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1020
|
-
readonly value: {
|
|
1021
|
-
readonly type: "boolean";
|
|
1022
|
-
readonly value: boolean;
|
|
1023
|
-
} | {
|
|
1024
|
-
readonly type: "integer";
|
|
1025
|
-
readonly value: string;
|
|
1026
|
-
} | {
|
|
1027
|
-
readonly type: "string";
|
|
1028
|
-
readonly value: string;
|
|
1029
|
-
};
|
|
1030
|
-
})[];
|
|
1031
|
-
} | /*elided*/ any | {
|
|
1032
|
-
readonly type: "null-test";
|
|
1033
|
-
readonly column: string;
|
|
1034
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1035
|
-
} | {
|
|
1036
|
-
readonly type: "comparison";
|
|
1037
|
-
readonly column: string;
|
|
1038
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1039
|
-
readonly value: {
|
|
1040
|
-
readonly type: "boolean";
|
|
1041
|
-
readonly value: boolean;
|
|
1042
|
-
} | {
|
|
1043
|
-
readonly type: "integer";
|
|
1044
|
-
readonly value: string;
|
|
1045
|
-
} | {
|
|
1046
|
-
readonly type: "string";
|
|
1047
|
-
readonly value: string;
|
|
1048
|
-
};
|
|
1049
|
-
};
|
|
1050
|
-
} | {
|
|
1051
|
-
readonly type: "null-test";
|
|
1052
|
-
readonly column: string;
|
|
1053
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1054
|
-
} | {
|
|
1055
|
-
readonly type: "comparison";
|
|
1056
|
-
readonly column: string;
|
|
1057
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1058
|
-
readonly value: {
|
|
1059
|
-
readonly type: "boolean";
|
|
1060
|
-
readonly value: boolean;
|
|
1061
|
-
} | {
|
|
1062
|
-
readonly type: "integer";
|
|
1063
|
-
readonly value: string;
|
|
1064
|
-
} | {
|
|
1065
|
-
readonly type: "string";
|
|
1066
|
-
readonly value: string;
|
|
1067
|
-
};
|
|
1068
|
-
} | undefined;
|
|
1069
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
1070
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
1071
|
-
readonly isImmediate?: boolean | undefined;
|
|
1072
|
-
readonly name: string;
|
|
1073
|
-
readonly columns: {
|
|
1074
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
1075
|
-
};
|
|
1076
|
-
readonly schema: string;
|
|
1077
|
-
readonly tableName: string;
|
|
1078
|
-
readonly unique: boolean;
|
|
324
|
+
isReplicaIdentity?: boolean | undefined;
|
|
325
|
+
isPrimaryKey?: boolean | undefined;
|
|
326
|
+
isImmediate?: boolean | undefined;
|
|
327
|
+
name: string;
|
|
328
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
329
|
+
schema: string;
|
|
330
|
+
tableName: string;
|
|
331
|
+
unique: boolean;
|
|
1079
332
|
}[];
|
|
1080
333
|
tables: {
|
|
1081
334
|
replicaIdentityColumns: string[];
|
|
1082
|
-
columns: {
|
|
1083
|
-
[k: string]: {
|
|
1084
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
1085
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
1086
|
-
characterMaximumLength?: number | null | undefined;
|
|
1087
|
-
notNull?: boolean | null | undefined;
|
|
1088
|
-
dflt?: string | null | undefined;
|
|
1089
|
-
pos: number;
|
|
1090
|
-
dataType: string;
|
|
1091
|
-
typeOID: number;
|
|
1092
|
-
};
|
|
1093
|
-
};
|
|
1094
335
|
primaryKey?: string[] | undefined;
|
|
1095
336
|
schemaOID?: number | undefined;
|
|
1096
337
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
1097
338
|
name: string;
|
|
1098
339
|
schema: string;
|
|
340
|
+
oid: number;
|
|
341
|
+
columns: Record<string, {
|
|
342
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
343
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
344
|
+
characterMaximumLength?: number | null | undefined;
|
|
345
|
+
notNull?: boolean | null | undefined;
|
|
346
|
+
dflt?: string | null | undefined;
|
|
347
|
+
pos: number;
|
|
348
|
+
dataType: string;
|
|
349
|
+
typeOID: number;
|
|
350
|
+
}>;
|
|
1099
351
|
publications: Record<string, {
|
|
1100
352
|
rowFilter: string | null;
|
|
1101
353
|
}>;
|
|
1102
|
-
oid: number;
|
|
1103
354
|
}[];
|
|
1104
355
|
}>;
|
|
1105
356
|
previousSchema: v.Optional<{
|
|
1106
357
|
indexes: {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
} | {
|
|
1116
|
-
readonly type: "comparison";
|
|
1117
|
-
readonly column: string;
|
|
1118
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1119
|
-
readonly value: {
|
|
1120
|
-
readonly type: "boolean";
|
|
1121
|
-
readonly value: boolean;
|
|
1122
|
-
} | {
|
|
1123
|
-
readonly type: "integer";
|
|
1124
|
-
readonly value: string;
|
|
1125
|
-
} | {
|
|
1126
|
-
readonly type: "string";
|
|
1127
|
-
readonly value: string;
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
|
-
} | {
|
|
1131
|
-
readonly type: "null-test";
|
|
1132
|
-
readonly column: string;
|
|
1133
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1134
|
-
} | {
|
|
1135
|
-
readonly type: "comparison";
|
|
1136
|
-
readonly column: string;
|
|
1137
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1138
|
-
readonly value: {
|
|
1139
|
-
readonly type: "boolean";
|
|
1140
|
-
readonly value: boolean;
|
|
1141
|
-
} | {
|
|
1142
|
-
readonly type: "integer";
|
|
1143
|
-
readonly value: string;
|
|
1144
|
-
} | {
|
|
1145
|
-
readonly type: "string";
|
|
1146
|
-
readonly value: string;
|
|
1147
|
-
};
|
|
1148
|
-
})[];
|
|
1149
|
-
} | {
|
|
1150
|
-
readonly type: "not";
|
|
1151
|
-
readonly condition: {
|
|
1152
|
-
readonly type: "and" | "or";
|
|
1153
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
1154
|
-
readonly type: "null-test";
|
|
1155
|
-
readonly column: string;
|
|
1156
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1157
|
-
} | {
|
|
1158
|
-
readonly type: "comparison";
|
|
1159
|
-
readonly column: string;
|
|
1160
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1161
|
-
readonly value: {
|
|
1162
|
-
readonly type: "boolean";
|
|
1163
|
-
readonly value: boolean;
|
|
1164
|
-
} | {
|
|
1165
|
-
readonly type: "integer";
|
|
1166
|
-
readonly value: string;
|
|
1167
|
-
} | {
|
|
1168
|
-
readonly type: "string";
|
|
1169
|
-
readonly value: string;
|
|
1170
|
-
};
|
|
1171
|
-
})[];
|
|
1172
|
-
} | /*elided*/ any | {
|
|
1173
|
-
readonly type: "null-test";
|
|
1174
|
-
readonly column: string;
|
|
1175
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1176
|
-
} | {
|
|
1177
|
-
readonly type: "comparison";
|
|
1178
|
-
readonly column: string;
|
|
1179
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1180
|
-
readonly value: {
|
|
1181
|
-
readonly type: "boolean";
|
|
1182
|
-
readonly value: boolean;
|
|
1183
|
-
} | {
|
|
1184
|
-
readonly type: "integer";
|
|
1185
|
-
readonly value: string;
|
|
1186
|
-
} | {
|
|
1187
|
-
readonly type: "string";
|
|
1188
|
-
readonly value: string;
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
|
-
} | {
|
|
1192
|
-
readonly type: "null-test";
|
|
1193
|
-
readonly column: string;
|
|
1194
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1195
|
-
} | {
|
|
1196
|
-
readonly type: "comparison";
|
|
1197
|
-
readonly column: string;
|
|
1198
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1199
|
-
readonly value: {
|
|
1200
|
-
readonly type: "boolean";
|
|
1201
|
-
readonly value: boolean;
|
|
1202
|
-
} | {
|
|
1203
|
-
readonly type: "integer";
|
|
1204
|
-
readonly value: string;
|
|
1205
|
-
} | {
|
|
1206
|
-
readonly type: "string";
|
|
1207
|
-
readonly value: string;
|
|
1208
|
-
};
|
|
1209
|
-
} | undefined;
|
|
1210
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
1211
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
1212
|
-
readonly isImmediate?: boolean | undefined;
|
|
1213
|
-
readonly name: string;
|
|
1214
|
-
readonly columns: {
|
|
1215
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
1216
|
-
};
|
|
1217
|
-
readonly schema: string;
|
|
1218
|
-
readonly tableName: string;
|
|
1219
|
-
readonly unique: boolean;
|
|
358
|
+
isReplicaIdentity?: boolean | undefined;
|
|
359
|
+
isPrimaryKey?: boolean | undefined;
|
|
360
|
+
isImmediate?: boolean | undefined;
|
|
361
|
+
name: string;
|
|
362
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
363
|
+
schema: string;
|
|
364
|
+
tableName: string;
|
|
365
|
+
unique: boolean;
|
|
1220
366
|
}[];
|
|
1221
367
|
tables: {
|
|
1222
368
|
replicaIdentityColumns: string[];
|
|
1223
|
-
columns: {
|
|
1224
|
-
[k: string]: {
|
|
1225
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
1226
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
1227
|
-
characterMaximumLength?: number | null | undefined;
|
|
1228
|
-
notNull?: boolean | null | undefined;
|
|
1229
|
-
dflt?: string | null | undefined;
|
|
1230
|
-
pos: number;
|
|
1231
|
-
dataType: string;
|
|
1232
|
-
typeOID: number;
|
|
1233
|
-
};
|
|
1234
|
-
};
|
|
1235
369
|
primaryKey?: string[] | undefined;
|
|
1236
370
|
schemaOID?: number | undefined;
|
|
1237
371
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
1238
372
|
name: string;
|
|
1239
373
|
schema: string;
|
|
374
|
+
oid: number;
|
|
375
|
+
columns: Record<string, {
|
|
376
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
377
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
378
|
+
characterMaximumLength?: number | null | undefined;
|
|
379
|
+
notNull?: boolean | null | undefined;
|
|
380
|
+
dflt?: string | null | undefined;
|
|
381
|
+
pos: number;
|
|
382
|
+
dataType: string;
|
|
383
|
+
typeOID: number;
|
|
384
|
+
}>;
|
|
1240
385
|
publications: Record<string, {
|
|
1241
386
|
rowFilter: string | null;
|
|
1242
387
|
}>;
|
|
1243
|
-
oid: number;
|
|
1244
388
|
}[];
|
|
1245
389
|
} | null>;
|
|
1246
390
|
event: v.Type<{
|
|
@@ -1260,284 +404,70 @@ export declare const replicationEventSchema: v.UnionType<[v.ObjectType<Omit<Omit
|
|
|
1260
404
|
type: v.Type<"ddlUpdate">;
|
|
1261
405
|
schema: v.Type<{
|
|
1262
406
|
indexes: {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
} | {
|
|
1272
|
-
readonly type: "comparison";
|
|
1273
|
-
readonly column: string;
|
|
1274
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1275
|
-
readonly value: {
|
|
1276
|
-
readonly type: "boolean";
|
|
1277
|
-
readonly value: boolean;
|
|
1278
|
-
} | {
|
|
1279
|
-
readonly type: "integer";
|
|
1280
|
-
readonly value: string;
|
|
1281
|
-
} | {
|
|
1282
|
-
readonly type: "string";
|
|
1283
|
-
readonly value: string;
|
|
1284
|
-
};
|
|
1285
|
-
};
|
|
1286
|
-
} | {
|
|
1287
|
-
readonly type: "null-test";
|
|
1288
|
-
readonly column: string;
|
|
1289
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1290
|
-
} | {
|
|
1291
|
-
readonly type: "comparison";
|
|
1292
|
-
readonly column: string;
|
|
1293
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1294
|
-
readonly value: {
|
|
1295
|
-
readonly type: "boolean";
|
|
1296
|
-
readonly value: boolean;
|
|
1297
|
-
} | {
|
|
1298
|
-
readonly type: "integer";
|
|
1299
|
-
readonly value: string;
|
|
1300
|
-
} | {
|
|
1301
|
-
readonly type: "string";
|
|
1302
|
-
readonly value: string;
|
|
1303
|
-
};
|
|
1304
|
-
})[];
|
|
1305
|
-
} | {
|
|
1306
|
-
readonly type: "not";
|
|
1307
|
-
readonly condition: {
|
|
1308
|
-
readonly type: "and" | "or";
|
|
1309
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
1310
|
-
readonly type: "null-test";
|
|
1311
|
-
readonly column: string;
|
|
1312
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1313
|
-
} | {
|
|
1314
|
-
readonly type: "comparison";
|
|
1315
|
-
readonly column: string;
|
|
1316
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1317
|
-
readonly value: {
|
|
1318
|
-
readonly type: "boolean";
|
|
1319
|
-
readonly value: boolean;
|
|
1320
|
-
} | {
|
|
1321
|
-
readonly type: "integer";
|
|
1322
|
-
readonly value: string;
|
|
1323
|
-
} | {
|
|
1324
|
-
readonly type: "string";
|
|
1325
|
-
readonly value: string;
|
|
1326
|
-
};
|
|
1327
|
-
})[];
|
|
1328
|
-
} | /*elided*/ any | {
|
|
1329
|
-
readonly type: "null-test";
|
|
1330
|
-
readonly column: string;
|
|
1331
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1332
|
-
} | {
|
|
1333
|
-
readonly type: "comparison";
|
|
1334
|
-
readonly column: string;
|
|
1335
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1336
|
-
readonly value: {
|
|
1337
|
-
readonly type: "boolean";
|
|
1338
|
-
readonly value: boolean;
|
|
1339
|
-
} | {
|
|
1340
|
-
readonly type: "integer";
|
|
1341
|
-
readonly value: string;
|
|
1342
|
-
} | {
|
|
1343
|
-
readonly type: "string";
|
|
1344
|
-
readonly value: string;
|
|
1345
|
-
};
|
|
1346
|
-
};
|
|
1347
|
-
} | {
|
|
1348
|
-
readonly type: "null-test";
|
|
1349
|
-
readonly column: string;
|
|
1350
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1351
|
-
} | {
|
|
1352
|
-
readonly type: "comparison";
|
|
1353
|
-
readonly column: string;
|
|
1354
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1355
|
-
readonly value: {
|
|
1356
|
-
readonly type: "boolean";
|
|
1357
|
-
readonly value: boolean;
|
|
1358
|
-
} | {
|
|
1359
|
-
readonly type: "integer";
|
|
1360
|
-
readonly value: string;
|
|
1361
|
-
} | {
|
|
1362
|
-
readonly type: "string";
|
|
1363
|
-
readonly value: string;
|
|
1364
|
-
};
|
|
1365
|
-
} | undefined;
|
|
1366
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
1367
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
1368
|
-
readonly isImmediate?: boolean | undefined;
|
|
1369
|
-
readonly name: string;
|
|
1370
|
-
readonly columns: {
|
|
1371
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
1372
|
-
};
|
|
1373
|
-
readonly schema: string;
|
|
1374
|
-
readonly tableName: string;
|
|
1375
|
-
readonly unique: boolean;
|
|
407
|
+
isReplicaIdentity?: boolean | undefined;
|
|
408
|
+
isPrimaryKey?: boolean | undefined;
|
|
409
|
+
isImmediate?: boolean | undefined;
|
|
410
|
+
name: string;
|
|
411
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
412
|
+
schema: string;
|
|
413
|
+
tableName: string;
|
|
414
|
+
unique: boolean;
|
|
1376
415
|
}[];
|
|
1377
416
|
tables: {
|
|
1378
417
|
replicaIdentityColumns: string[];
|
|
1379
|
-
columns: {
|
|
1380
|
-
[k: string]: {
|
|
1381
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
1382
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
1383
|
-
characterMaximumLength?: number | null | undefined;
|
|
1384
|
-
notNull?: boolean | null | undefined;
|
|
1385
|
-
dflt?: string | null | undefined;
|
|
1386
|
-
pos: number;
|
|
1387
|
-
dataType: string;
|
|
1388
|
-
typeOID: number;
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
418
|
primaryKey?: string[] | undefined;
|
|
1392
419
|
schemaOID?: number | undefined;
|
|
1393
420
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
1394
421
|
name: string;
|
|
1395
422
|
schema: string;
|
|
423
|
+
oid: number;
|
|
424
|
+
columns: Record<string, {
|
|
425
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
426
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
427
|
+
characterMaximumLength?: number | null | undefined;
|
|
428
|
+
notNull?: boolean | null | undefined;
|
|
429
|
+
dflt?: string | null | undefined;
|
|
430
|
+
pos: number;
|
|
431
|
+
dataType: string;
|
|
432
|
+
typeOID: number;
|
|
433
|
+
}>;
|
|
1396
434
|
publications: Record<string, {
|
|
1397
435
|
rowFilter: string | null;
|
|
1398
436
|
}>;
|
|
1399
|
-
oid: number;
|
|
1400
437
|
}[];
|
|
1401
438
|
}>;
|
|
1402
439
|
previousSchema: v.Optional<{
|
|
1403
440
|
indexes: {
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
} | {
|
|
1413
|
-
readonly type: "comparison";
|
|
1414
|
-
readonly column: string;
|
|
1415
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1416
|
-
readonly value: {
|
|
1417
|
-
readonly type: "boolean";
|
|
1418
|
-
readonly value: boolean;
|
|
1419
|
-
} | {
|
|
1420
|
-
readonly type: "integer";
|
|
1421
|
-
readonly value: string;
|
|
1422
|
-
} | {
|
|
1423
|
-
readonly type: "string";
|
|
1424
|
-
readonly value: string;
|
|
1425
|
-
};
|
|
1426
|
-
};
|
|
1427
|
-
} | {
|
|
1428
|
-
readonly type: "null-test";
|
|
1429
|
-
readonly column: string;
|
|
1430
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1431
|
-
} | {
|
|
1432
|
-
readonly type: "comparison";
|
|
1433
|
-
readonly column: string;
|
|
1434
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1435
|
-
readonly value: {
|
|
1436
|
-
readonly type: "boolean";
|
|
1437
|
-
readonly value: boolean;
|
|
1438
|
-
} | {
|
|
1439
|
-
readonly type: "integer";
|
|
1440
|
-
readonly value: string;
|
|
1441
|
-
} | {
|
|
1442
|
-
readonly type: "string";
|
|
1443
|
-
readonly value: string;
|
|
1444
|
-
};
|
|
1445
|
-
})[];
|
|
1446
|
-
} | {
|
|
1447
|
-
readonly type: "not";
|
|
1448
|
-
readonly condition: {
|
|
1449
|
-
readonly type: "and" | "or";
|
|
1450
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
1451
|
-
readonly type: "null-test";
|
|
1452
|
-
readonly column: string;
|
|
1453
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1454
|
-
} | {
|
|
1455
|
-
readonly type: "comparison";
|
|
1456
|
-
readonly column: string;
|
|
1457
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1458
|
-
readonly value: {
|
|
1459
|
-
readonly type: "boolean";
|
|
1460
|
-
readonly value: boolean;
|
|
1461
|
-
} | {
|
|
1462
|
-
readonly type: "integer";
|
|
1463
|
-
readonly value: string;
|
|
1464
|
-
} | {
|
|
1465
|
-
readonly type: "string";
|
|
1466
|
-
readonly value: string;
|
|
1467
|
-
};
|
|
1468
|
-
})[];
|
|
1469
|
-
} | /*elided*/ any | {
|
|
1470
|
-
readonly type: "null-test";
|
|
1471
|
-
readonly column: string;
|
|
1472
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1473
|
-
} | {
|
|
1474
|
-
readonly type: "comparison";
|
|
1475
|
-
readonly column: string;
|
|
1476
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1477
|
-
readonly value: {
|
|
1478
|
-
readonly type: "boolean";
|
|
1479
|
-
readonly value: boolean;
|
|
1480
|
-
} | {
|
|
1481
|
-
readonly type: "integer";
|
|
1482
|
-
readonly value: string;
|
|
1483
|
-
} | {
|
|
1484
|
-
readonly type: "string";
|
|
1485
|
-
readonly value: string;
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
|
-
} | {
|
|
1489
|
-
readonly type: "null-test";
|
|
1490
|
-
readonly column: string;
|
|
1491
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1492
|
-
} | {
|
|
1493
|
-
readonly type: "comparison";
|
|
1494
|
-
readonly column: string;
|
|
1495
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1496
|
-
readonly value: {
|
|
1497
|
-
readonly type: "boolean";
|
|
1498
|
-
readonly value: boolean;
|
|
1499
|
-
} | {
|
|
1500
|
-
readonly type: "integer";
|
|
1501
|
-
readonly value: string;
|
|
1502
|
-
} | {
|
|
1503
|
-
readonly type: "string";
|
|
1504
|
-
readonly value: string;
|
|
1505
|
-
};
|
|
1506
|
-
} | undefined;
|
|
1507
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
1508
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
1509
|
-
readonly isImmediate?: boolean | undefined;
|
|
1510
|
-
readonly name: string;
|
|
1511
|
-
readonly columns: {
|
|
1512
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
1513
|
-
};
|
|
1514
|
-
readonly schema: string;
|
|
1515
|
-
readonly tableName: string;
|
|
1516
|
-
readonly unique: boolean;
|
|
441
|
+
isReplicaIdentity?: boolean | undefined;
|
|
442
|
+
isPrimaryKey?: boolean | undefined;
|
|
443
|
+
isImmediate?: boolean | undefined;
|
|
444
|
+
name: string;
|
|
445
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
446
|
+
schema: string;
|
|
447
|
+
tableName: string;
|
|
448
|
+
unique: boolean;
|
|
1517
449
|
}[];
|
|
1518
450
|
tables: {
|
|
1519
451
|
replicaIdentityColumns: string[];
|
|
1520
|
-
columns: {
|
|
1521
|
-
[k: string]: {
|
|
1522
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
1523
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
1524
|
-
characterMaximumLength?: number | null | undefined;
|
|
1525
|
-
notNull?: boolean | null | undefined;
|
|
1526
|
-
dflt?: string | null | undefined;
|
|
1527
|
-
pos: number;
|
|
1528
|
-
dataType: string;
|
|
1529
|
-
typeOID: number;
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
452
|
primaryKey?: string[] | undefined;
|
|
1533
453
|
schemaOID?: number | undefined;
|
|
1534
454
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
1535
455
|
name: string;
|
|
1536
456
|
schema: string;
|
|
457
|
+
oid: number;
|
|
458
|
+
columns: Record<string, {
|
|
459
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
460
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
461
|
+
characterMaximumLength?: number | null | undefined;
|
|
462
|
+
notNull?: boolean | null | undefined;
|
|
463
|
+
dflt?: string | null | undefined;
|
|
464
|
+
pos: number;
|
|
465
|
+
dataType: string;
|
|
466
|
+
typeOID: number;
|
|
467
|
+
}>;
|
|
1537
468
|
publications: Record<string, {
|
|
1538
469
|
rowFilter: string | null;
|
|
1539
470
|
}>;
|
|
1540
|
-
oid: number;
|
|
1541
471
|
}[];
|
|
1542
472
|
}>;
|
|
1543
473
|
}, undefined>, v.ObjectType<Omit<Omit<{
|
|
@@ -1554,284 +484,70 @@ export declare const replicationEventSchema: v.UnionType<[v.ObjectType<Omit<Omit
|
|
|
1554
484
|
type: v.Type<"schemaSnapshot">;
|
|
1555
485
|
schema: v.Type<{
|
|
1556
486
|
indexes: {
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
} | {
|
|
1566
|
-
readonly type: "comparison";
|
|
1567
|
-
readonly column: string;
|
|
1568
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1569
|
-
readonly value: {
|
|
1570
|
-
readonly type: "boolean";
|
|
1571
|
-
readonly value: boolean;
|
|
1572
|
-
} | {
|
|
1573
|
-
readonly type: "integer";
|
|
1574
|
-
readonly value: string;
|
|
1575
|
-
} | {
|
|
1576
|
-
readonly type: "string";
|
|
1577
|
-
readonly value: string;
|
|
1578
|
-
};
|
|
1579
|
-
};
|
|
1580
|
-
} | {
|
|
1581
|
-
readonly type: "null-test";
|
|
1582
|
-
readonly column: string;
|
|
1583
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1584
|
-
} | {
|
|
1585
|
-
readonly type: "comparison";
|
|
1586
|
-
readonly column: string;
|
|
1587
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1588
|
-
readonly value: {
|
|
1589
|
-
readonly type: "boolean";
|
|
1590
|
-
readonly value: boolean;
|
|
1591
|
-
} | {
|
|
1592
|
-
readonly type: "integer";
|
|
1593
|
-
readonly value: string;
|
|
1594
|
-
} | {
|
|
1595
|
-
readonly type: "string";
|
|
1596
|
-
readonly value: string;
|
|
1597
|
-
};
|
|
1598
|
-
})[];
|
|
1599
|
-
} | {
|
|
1600
|
-
readonly type: "not";
|
|
1601
|
-
readonly condition: {
|
|
1602
|
-
readonly type: "and" | "or";
|
|
1603
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
1604
|
-
readonly type: "null-test";
|
|
1605
|
-
readonly column: string;
|
|
1606
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1607
|
-
} | {
|
|
1608
|
-
readonly type: "comparison";
|
|
1609
|
-
readonly column: string;
|
|
1610
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1611
|
-
readonly value: {
|
|
1612
|
-
readonly type: "boolean";
|
|
1613
|
-
readonly value: boolean;
|
|
1614
|
-
} | {
|
|
1615
|
-
readonly type: "integer";
|
|
1616
|
-
readonly value: string;
|
|
1617
|
-
} | {
|
|
1618
|
-
readonly type: "string";
|
|
1619
|
-
readonly value: string;
|
|
1620
|
-
};
|
|
1621
|
-
})[];
|
|
1622
|
-
} | /*elided*/ any | {
|
|
1623
|
-
readonly type: "null-test";
|
|
1624
|
-
readonly column: string;
|
|
1625
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1626
|
-
} | {
|
|
1627
|
-
readonly type: "comparison";
|
|
1628
|
-
readonly column: string;
|
|
1629
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1630
|
-
readonly value: {
|
|
1631
|
-
readonly type: "boolean";
|
|
1632
|
-
readonly value: boolean;
|
|
1633
|
-
} | {
|
|
1634
|
-
readonly type: "integer";
|
|
1635
|
-
readonly value: string;
|
|
1636
|
-
} | {
|
|
1637
|
-
readonly type: "string";
|
|
1638
|
-
readonly value: string;
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
} | {
|
|
1642
|
-
readonly type: "null-test";
|
|
1643
|
-
readonly column: string;
|
|
1644
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1645
|
-
} | {
|
|
1646
|
-
readonly type: "comparison";
|
|
1647
|
-
readonly column: string;
|
|
1648
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1649
|
-
readonly value: {
|
|
1650
|
-
readonly type: "boolean";
|
|
1651
|
-
readonly value: boolean;
|
|
1652
|
-
} | {
|
|
1653
|
-
readonly type: "integer";
|
|
1654
|
-
readonly value: string;
|
|
1655
|
-
} | {
|
|
1656
|
-
readonly type: "string";
|
|
1657
|
-
readonly value: string;
|
|
1658
|
-
};
|
|
1659
|
-
} | undefined;
|
|
1660
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
1661
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
1662
|
-
readonly isImmediate?: boolean | undefined;
|
|
1663
|
-
readonly name: string;
|
|
1664
|
-
readonly columns: {
|
|
1665
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
1666
|
-
};
|
|
1667
|
-
readonly schema: string;
|
|
1668
|
-
readonly tableName: string;
|
|
1669
|
-
readonly unique: boolean;
|
|
487
|
+
isReplicaIdentity?: boolean | undefined;
|
|
488
|
+
isPrimaryKey?: boolean | undefined;
|
|
489
|
+
isImmediate?: boolean | undefined;
|
|
490
|
+
name: string;
|
|
491
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
492
|
+
schema: string;
|
|
493
|
+
tableName: string;
|
|
494
|
+
unique: boolean;
|
|
1670
495
|
}[];
|
|
1671
496
|
tables: {
|
|
1672
497
|
replicaIdentityColumns: string[];
|
|
1673
|
-
columns: {
|
|
1674
|
-
[k: string]: {
|
|
1675
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
1676
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
1677
|
-
characterMaximumLength?: number | null | undefined;
|
|
1678
|
-
notNull?: boolean | null | undefined;
|
|
1679
|
-
dflt?: string | null | undefined;
|
|
1680
|
-
pos: number;
|
|
1681
|
-
dataType: string;
|
|
1682
|
-
typeOID: number;
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
498
|
primaryKey?: string[] | undefined;
|
|
1686
499
|
schemaOID?: number | undefined;
|
|
1687
500
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
1688
501
|
name: string;
|
|
1689
502
|
schema: string;
|
|
503
|
+
oid: number;
|
|
504
|
+
columns: Record<string, {
|
|
505
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
506
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
507
|
+
characterMaximumLength?: number | null | undefined;
|
|
508
|
+
notNull?: boolean | null | undefined;
|
|
509
|
+
dflt?: string | null | undefined;
|
|
510
|
+
pos: number;
|
|
511
|
+
dataType: string;
|
|
512
|
+
typeOID: number;
|
|
513
|
+
}>;
|
|
1690
514
|
publications: Record<string, {
|
|
1691
515
|
rowFilter: string | null;
|
|
1692
516
|
}>;
|
|
1693
|
-
oid: number;
|
|
1694
517
|
}[];
|
|
1695
518
|
}>;
|
|
1696
519
|
previousSchema: v.Optional<{
|
|
1697
520
|
indexes: {
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
} | {
|
|
1707
|
-
readonly type: "comparison";
|
|
1708
|
-
readonly column: string;
|
|
1709
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1710
|
-
readonly value: {
|
|
1711
|
-
readonly type: "boolean";
|
|
1712
|
-
readonly value: boolean;
|
|
1713
|
-
} | {
|
|
1714
|
-
readonly type: "integer";
|
|
1715
|
-
readonly value: string;
|
|
1716
|
-
} | {
|
|
1717
|
-
readonly type: "string";
|
|
1718
|
-
readonly value: string;
|
|
1719
|
-
};
|
|
1720
|
-
};
|
|
1721
|
-
} | {
|
|
1722
|
-
readonly type: "null-test";
|
|
1723
|
-
readonly column: string;
|
|
1724
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1725
|
-
} | {
|
|
1726
|
-
readonly type: "comparison";
|
|
1727
|
-
readonly column: string;
|
|
1728
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1729
|
-
readonly value: {
|
|
1730
|
-
readonly type: "boolean";
|
|
1731
|
-
readonly value: boolean;
|
|
1732
|
-
} | {
|
|
1733
|
-
readonly type: "integer";
|
|
1734
|
-
readonly value: string;
|
|
1735
|
-
} | {
|
|
1736
|
-
readonly type: "string";
|
|
1737
|
-
readonly value: string;
|
|
1738
|
-
};
|
|
1739
|
-
})[];
|
|
1740
|
-
} | {
|
|
1741
|
-
readonly type: "not";
|
|
1742
|
-
readonly condition: {
|
|
1743
|
-
readonly type: "and" | "or";
|
|
1744
|
-
readonly conditions: readonly (/*elided*/ any | /*elided*/ any | {
|
|
1745
|
-
readonly type: "null-test";
|
|
1746
|
-
readonly column: string;
|
|
1747
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1748
|
-
} | {
|
|
1749
|
-
readonly type: "comparison";
|
|
1750
|
-
readonly column: string;
|
|
1751
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1752
|
-
readonly value: {
|
|
1753
|
-
readonly type: "boolean";
|
|
1754
|
-
readonly value: boolean;
|
|
1755
|
-
} | {
|
|
1756
|
-
readonly type: "integer";
|
|
1757
|
-
readonly value: string;
|
|
1758
|
-
} | {
|
|
1759
|
-
readonly type: "string";
|
|
1760
|
-
readonly value: string;
|
|
1761
|
-
};
|
|
1762
|
-
})[];
|
|
1763
|
-
} | /*elided*/ any | {
|
|
1764
|
-
readonly type: "null-test";
|
|
1765
|
-
readonly column: string;
|
|
1766
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1767
|
-
} | {
|
|
1768
|
-
readonly type: "comparison";
|
|
1769
|
-
readonly column: string;
|
|
1770
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1771
|
-
readonly value: {
|
|
1772
|
-
readonly type: "boolean";
|
|
1773
|
-
readonly value: boolean;
|
|
1774
|
-
} | {
|
|
1775
|
-
readonly type: "integer";
|
|
1776
|
-
readonly value: string;
|
|
1777
|
-
} | {
|
|
1778
|
-
readonly type: "string";
|
|
1779
|
-
readonly value: string;
|
|
1780
|
-
};
|
|
1781
|
-
};
|
|
1782
|
-
} | {
|
|
1783
|
-
readonly type: "null-test";
|
|
1784
|
-
readonly column: string;
|
|
1785
|
-
readonly op: "IS NULL" | "IS NOT NULL";
|
|
1786
|
-
} | {
|
|
1787
|
-
readonly type: "comparison";
|
|
1788
|
-
readonly column: string;
|
|
1789
|
-
readonly op: "=" | "<>" | "<" | "<=" | ">" | ">=";
|
|
1790
|
-
readonly value: {
|
|
1791
|
-
readonly type: "boolean";
|
|
1792
|
-
readonly value: boolean;
|
|
1793
|
-
} | {
|
|
1794
|
-
readonly type: "integer";
|
|
1795
|
-
readonly value: string;
|
|
1796
|
-
} | {
|
|
1797
|
-
readonly type: "string";
|
|
1798
|
-
readonly value: string;
|
|
1799
|
-
};
|
|
1800
|
-
} | undefined;
|
|
1801
|
-
readonly isReplicaIdentity?: boolean | undefined;
|
|
1802
|
-
readonly isPrimaryKey?: boolean | undefined;
|
|
1803
|
-
readonly isImmediate?: boolean | undefined;
|
|
1804
|
-
readonly name: string;
|
|
1805
|
-
readonly columns: {
|
|
1806
|
-
readonly [x: string]: "ASC" | "DESC";
|
|
1807
|
-
};
|
|
1808
|
-
readonly schema: string;
|
|
1809
|
-
readonly tableName: string;
|
|
1810
|
-
readonly unique: boolean;
|
|
521
|
+
isReplicaIdentity?: boolean | undefined;
|
|
522
|
+
isPrimaryKey?: boolean | undefined;
|
|
523
|
+
isImmediate?: boolean | undefined;
|
|
524
|
+
name: string;
|
|
525
|
+
columns: Record<string, "ASC" | "DESC">;
|
|
526
|
+
schema: string;
|
|
527
|
+
tableName: string;
|
|
528
|
+
unique: boolean;
|
|
1811
529
|
}[];
|
|
1812
530
|
tables: {
|
|
1813
531
|
replicaIdentityColumns: string[];
|
|
1814
|
-
columns: {
|
|
1815
|
-
[k: string]: {
|
|
1816
|
-
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
1817
|
-
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
1818
|
-
characterMaximumLength?: number | null | undefined;
|
|
1819
|
-
notNull?: boolean | null | undefined;
|
|
1820
|
-
dflt?: string | null | undefined;
|
|
1821
|
-
pos: number;
|
|
1822
|
-
dataType: string;
|
|
1823
|
-
typeOID: number;
|
|
1824
|
-
};
|
|
1825
|
-
};
|
|
1826
532
|
primaryKey?: string[] | undefined;
|
|
1827
533
|
schemaOID?: number | undefined;
|
|
1828
534
|
replicaIdentity?: "n" | "d" | "f" | "i" | undefined;
|
|
1829
535
|
name: string;
|
|
1830
536
|
schema: string;
|
|
537
|
+
oid: number;
|
|
538
|
+
columns: Record<string, {
|
|
539
|
+
pgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | undefined;
|
|
540
|
+
elemPgTypeClass?: "e" | "d" | "b" | "c" | "p" | "r" | "m" | null | undefined;
|
|
541
|
+
characterMaximumLength?: number | null | undefined;
|
|
542
|
+
notNull?: boolean | null | undefined;
|
|
543
|
+
dflt?: string | null | undefined;
|
|
544
|
+
pos: number;
|
|
545
|
+
dataType: string;
|
|
546
|
+
typeOID: number;
|
|
547
|
+
}>;
|
|
1831
548
|
publications: Record<string, {
|
|
1832
549
|
rowFilter: string | null;
|
|
1833
550
|
}>;
|
|
1834
|
-
oid: number;
|
|
1835
551
|
}[];
|
|
1836
552
|
}>;
|
|
1837
553
|
}, undefined>]>;
|
|
@@ -1853,7 +569,7 @@ export type ReplicationEvent = v.Infer<typeof replicationEventSchema>;
|
|
|
1853
569
|
* Instead, we opt for the simplicity and isolation of having each shard
|
|
1854
570
|
* completely own (and maintain) the entirety of its trigger/function stack.
|
|
1855
571
|
*/
|
|
1856
|
-
export declare function createEventFunctionStatements(shard: ShardConfig
|
|
572
|
+
export declare function createEventFunctionStatements(shard: ShardConfig): string;
|
|
1857
573
|
export declare const TAGS: readonly ["CREATE TABLE", "ALTER TABLE", "CREATE INDEX", "DROP TABLE", "DROP INDEX", "ALTER PUBLICATION", "ALTER SCHEMA"];
|
|
1858
574
|
export declare function createEventTriggerStatements(shard: ShardConfig): string;
|
|
1859
575
|
export declare function dropEventTriggerStatements(appID: string, shardID: string | number): string;
|