@pgsql/utils 17.5.2 → 17.6.1

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/esm/wrapped.js ADDED
@@ -0,0 +1,3031 @@
1
+ /**
2
+ * This file was automatically generated by pg-proto-parser@1.29.0.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
4
+ * and run the pg-proto-parser generate command to regenerate this file.
5
+ */
6
+ import _o from "nested-obj";
7
+ export default {
8
+ parseResult(_p) {
9
+ const _j = {};
10
+ _o.set(_j, "version", _p?.version);
11
+ _o.set(_j, "stmts", _p?.stmts);
12
+ return {
13
+ ParseResult: _j
14
+ };
15
+ },
16
+ scanResult(_p) {
17
+ const _j = {};
18
+ _o.set(_j, "version", _p?.version);
19
+ _o.set(_j, "tokens", _p?.tokens);
20
+ return {
21
+ ScanResult: _j
22
+ };
23
+ },
24
+ integer(_p) {
25
+ const _j = {};
26
+ _o.set(_j, "ival", _p?.ival);
27
+ return {
28
+ Integer: _j
29
+ };
30
+ },
31
+ float(_p) {
32
+ const _j = {};
33
+ _o.set(_j, "fval", _p?.fval);
34
+ return {
35
+ Float: _j
36
+ };
37
+ },
38
+ boolean(_p) {
39
+ const _j = {};
40
+ _o.set(_j, "boolval", _p?.boolval);
41
+ return {
42
+ Boolean: _j
43
+ };
44
+ },
45
+ string(_p) {
46
+ const _j = {};
47
+ _o.set(_j, "sval", _p?.sval);
48
+ return {
49
+ String: _j
50
+ };
51
+ },
52
+ bitString(_p) {
53
+ const _j = {};
54
+ _o.set(_j, "bsval", _p?.bsval);
55
+ return {
56
+ BitString: _j
57
+ };
58
+ },
59
+ list(_p) {
60
+ const _j = {};
61
+ _o.set(_j, "items", _p?.items);
62
+ return {
63
+ List: _j
64
+ };
65
+ },
66
+ oidList(_p) {
67
+ const _j = {};
68
+ _o.set(_j, "items", _p?.items);
69
+ return {
70
+ OidList: _j
71
+ };
72
+ },
73
+ intList(_p) {
74
+ const _j = {};
75
+ _o.set(_j, "items", _p?.items);
76
+ return {
77
+ IntList: _j
78
+ };
79
+ },
80
+ aConst(_p) {
81
+ const _j = {};
82
+ _o.set(_j, "ival", _p?.ival);
83
+ _o.set(_j, "fval", _p?.fval);
84
+ _o.set(_j, "boolval", _p?.boolval);
85
+ _o.set(_j, "sval", _p?.sval);
86
+ _o.set(_j, "bsval", _p?.bsval);
87
+ _o.set(_j, "isnull", _p?.isnull);
88
+ _o.set(_j, "location", _p?.location);
89
+ return {
90
+ A_Const: _j
91
+ };
92
+ },
93
+ alias(_p) {
94
+ const _j = {};
95
+ _o.set(_j, "aliasname", _p?.aliasname);
96
+ _o.set(_j, "colnames", _p?.colnames);
97
+ return {
98
+ Alias: _j
99
+ };
100
+ },
101
+ rangeVar(_p) {
102
+ const _j = {};
103
+ _o.set(_j, "catalogname", _p?.catalogname);
104
+ _o.set(_j, "schemaname", _p?.schemaname);
105
+ _o.set(_j, "relname", _p?.relname);
106
+ _o.set(_j, "inh", _p?.inh);
107
+ _o.set(_j, "relpersistence", _p?.relpersistence);
108
+ _o.set(_j, "alias", _p?.alias);
109
+ _o.set(_j, "location", _p?.location);
110
+ return {
111
+ RangeVar: _j
112
+ };
113
+ },
114
+ tableFunc(_p) {
115
+ const _j = {};
116
+ _o.set(_j, "functype", _p?.functype);
117
+ _o.set(_j, "ns_uris", _p?.ns_uris);
118
+ _o.set(_j, "ns_names", _p?.ns_names);
119
+ _o.set(_j, "docexpr", _p?.docexpr);
120
+ _o.set(_j, "rowexpr", _p?.rowexpr);
121
+ _o.set(_j, "colnames", _p?.colnames);
122
+ _o.set(_j, "coltypes", _p?.coltypes);
123
+ _o.set(_j, "coltypmods", _p?.coltypmods);
124
+ _o.set(_j, "colcollations", _p?.colcollations);
125
+ _o.set(_j, "colexprs", _p?.colexprs);
126
+ _o.set(_j, "coldefexprs", _p?.coldefexprs);
127
+ _o.set(_j, "colvalexprs", _p?.colvalexprs);
128
+ _o.set(_j, "passingvalexprs", _p?.passingvalexprs);
129
+ _o.set(_j, "notnulls", _p?.notnulls);
130
+ _o.set(_j, "plan", _p?.plan);
131
+ _o.set(_j, "ordinalitycol", _p?.ordinalitycol);
132
+ _o.set(_j, "location", _p?.location);
133
+ return {
134
+ TableFunc: _j
135
+ };
136
+ },
137
+ intoClause(_p) {
138
+ const _j = {};
139
+ _o.set(_j, "rel", _p?.rel);
140
+ _o.set(_j, "colNames", _p?.colNames);
141
+ _o.set(_j, "accessMethod", _p?.accessMethod);
142
+ _o.set(_j, "options", _p?.options);
143
+ _o.set(_j, "onCommit", _p?.onCommit);
144
+ _o.set(_j, "tableSpaceName", _p?.tableSpaceName);
145
+ _o.set(_j, "viewQuery", _p?.viewQuery);
146
+ _o.set(_j, "skipData", _p?.skipData);
147
+ return {
148
+ IntoClause: _j
149
+ };
150
+ },
151
+ var(_p) {
152
+ const _j = {};
153
+ _o.set(_j, "xpr", _p?.xpr);
154
+ _o.set(_j, "varno", _p?.varno);
155
+ _o.set(_j, "varattno", _p?.varattno);
156
+ _o.set(_j, "vartype", _p?.vartype);
157
+ _o.set(_j, "vartypmod", _p?.vartypmod);
158
+ _o.set(_j, "varcollid", _p?.varcollid);
159
+ _o.set(_j, "varnullingrels", _p?.varnullingrels);
160
+ _o.set(_j, "varlevelsup", _p?.varlevelsup);
161
+ _o.set(_j, "location", _p?.location);
162
+ return {
163
+ Var: _j
164
+ };
165
+ },
166
+ param(_p) {
167
+ const _j = {};
168
+ _o.set(_j, "xpr", _p?.xpr);
169
+ _o.set(_j, "paramkind", _p?.paramkind);
170
+ _o.set(_j, "paramid", _p?.paramid);
171
+ _o.set(_j, "paramtype", _p?.paramtype);
172
+ _o.set(_j, "paramtypmod", _p?.paramtypmod);
173
+ _o.set(_j, "paramcollid", _p?.paramcollid);
174
+ _o.set(_j, "location", _p?.location);
175
+ return {
176
+ Param: _j
177
+ };
178
+ },
179
+ aggref(_p) {
180
+ const _j = {};
181
+ _o.set(_j, "xpr", _p?.xpr);
182
+ _o.set(_j, "aggfnoid", _p?.aggfnoid);
183
+ _o.set(_j, "aggtype", _p?.aggtype);
184
+ _o.set(_j, "aggcollid", _p?.aggcollid);
185
+ _o.set(_j, "inputcollid", _p?.inputcollid);
186
+ _o.set(_j, "aggargtypes", _p?.aggargtypes);
187
+ _o.set(_j, "aggdirectargs", _p?.aggdirectargs);
188
+ _o.set(_j, "args", _p?.args);
189
+ _o.set(_j, "aggorder", _p?.aggorder);
190
+ _o.set(_j, "aggdistinct", _p?.aggdistinct);
191
+ _o.set(_j, "aggfilter", _p?.aggfilter);
192
+ _o.set(_j, "aggstar", _p?.aggstar);
193
+ _o.set(_j, "aggvariadic", _p?.aggvariadic);
194
+ _o.set(_j, "aggkind", _p?.aggkind);
195
+ _o.set(_j, "agglevelsup", _p?.agglevelsup);
196
+ _o.set(_j, "aggsplit", _p?.aggsplit);
197
+ _o.set(_j, "aggno", _p?.aggno);
198
+ _o.set(_j, "aggtransno", _p?.aggtransno);
199
+ _o.set(_j, "location", _p?.location);
200
+ return {
201
+ Aggref: _j
202
+ };
203
+ },
204
+ groupingFunc(_p) {
205
+ const _j = {};
206
+ _o.set(_j, "xpr", _p?.xpr);
207
+ _o.set(_j, "args", _p?.args);
208
+ _o.set(_j, "refs", _p?.refs);
209
+ _o.set(_j, "agglevelsup", _p?.agglevelsup);
210
+ _o.set(_j, "location", _p?.location);
211
+ return {
212
+ GroupingFunc: _j
213
+ };
214
+ },
215
+ windowFunc(_p) {
216
+ const _j = {};
217
+ _o.set(_j, "xpr", _p?.xpr);
218
+ _o.set(_j, "winfnoid", _p?.winfnoid);
219
+ _o.set(_j, "wintype", _p?.wintype);
220
+ _o.set(_j, "wincollid", _p?.wincollid);
221
+ _o.set(_j, "inputcollid", _p?.inputcollid);
222
+ _o.set(_j, "args", _p?.args);
223
+ _o.set(_j, "aggfilter", _p?.aggfilter);
224
+ _o.set(_j, "runCondition", _p?.runCondition);
225
+ _o.set(_j, "winref", _p?.winref);
226
+ _o.set(_j, "winstar", _p?.winstar);
227
+ _o.set(_j, "winagg", _p?.winagg);
228
+ _o.set(_j, "location", _p?.location);
229
+ return {
230
+ WindowFunc: _j
231
+ };
232
+ },
233
+ windowFuncRunCondition(_p) {
234
+ const _j = {};
235
+ _o.set(_j, "xpr", _p?.xpr);
236
+ _o.set(_j, "opno", _p?.opno);
237
+ _o.set(_j, "inputcollid", _p?.inputcollid);
238
+ _o.set(_j, "wfunc_left", _p?.wfunc_left);
239
+ _o.set(_j, "arg", _p?.arg);
240
+ return {
241
+ WindowFuncRunCondition: _j
242
+ };
243
+ },
244
+ mergeSupportFunc(_p) {
245
+ const _j = {};
246
+ _o.set(_j, "xpr", _p?.xpr);
247
+ _o.set(_j, "msftype", _p?.msftype);
248
+ _o.set(_j, "msfcollid", _p?.msfcollid);
249
+ _o.set(_j, "location", _p?.location);
250
+ return {
251
+ MergeSupportFunc: _j
252
+ };
253
+ },
254
+ subscriptingRef(_p) {
255
+ const _j = {};
256
+ _o.set(_j, "xpr", _p?.xpr);
257
+ _o.set(_j, "refcontainertype", _p?.refcontainertype);
258
+ _o.set(_j, "refelemtype", _p?.refelemtype);
259
+ _o.set(_j, "refrestype", _p?.refrestype);
260
+ _o.set(_j, "reftypmod", _p?.reftypmod);
261
+ _o.set(_j, "refcollid", _p?.refcollid);
262
+ _o.set(_j, "refupperindexpr", _p?.refupperindexpr);
263
+ _o.set(_j, "reflowerindexpr", _p?.reflowerindexpr);
264
+ _o.set(_j, "refexpr", _p?.refexpr);
265
+ _o.set(_j, "refassgnexpr", _p?.refassgnexpr);
266
+ return {
267
+ SubscriptingRef: _j
268
+ };
269
+ },
270
+ funcExpr(_p) {
271
+ const _j = {};
272
+ _o.set(_j, "xpr", _p?.xpr);
273
+ _o.set(_j, "funcid", _p?.funcid);
274
+ _o.set(_j, "funcresulttype", _p?.funcresulttype);
275
+ _o.set(_j, "funcretset", _p?.funcretset);
276
+ _o.set(_j, "funcvariadic", _p?.funcvariadic);
277
+ _o.set(_j, "funcformat", _p?.funcformat);
278
+ _o.set(_j, "funccollid", _p?.funccollid);
279
+ _o.set(_j, "inputcollid", _p?.inputcollid);
280
+ _o.set(_j, "args", _p?.args);
281
+ _o.set(_j, "location", _p?.location);
282
+ return {
283
+ FuncExpr: _j
284
+ };
285
+ },
286
+ namedArgExpr(_p) {
287
+ const _j = {};
288
+ _o.set(_j, "xpr", _p?.xpr);
289
+ _o.set(_j, "arg", _p?.arg);
290
+ _o.set(_j, "name", _p?.name);
291
+ _o.set(_j, "argnumber", _p?.argnumber);
292
+ _o.set(_j, "location", _p?.location);
293
+ return {
294
+ NamedArgExpr: _j
295
+ };
296
+ },
297
+ opExpr(_p) {
298
+ const _j = {};
299
+ _o.set(_j, "xpr", _p?.xpr);
300
+ _o.set(_j, "opno", _p?.opno);
301
+ _o.set(_j, "opresulttype", _p?.opresulttype);
302
+ _o.set(_j, "opretset", _p?.opretset);
303
+ _o.set(_j, "opcollid", _p?.opcollid);
304
+ _o.set(_j, "inputcollid", _p?.inputcollid);
305
+ _o.set(_j, "args", _p?.args);
306
+ _o.set(_j, "location", _p?.location);
307
+ return {
308
+ OpExpr: _j
309
+ };
310
+ },
311
+ distinctExpr(_p) {
312
+ const _j = {};
313
+ _o.set(_j, "xpr", _p?.xpr);
314
+ _o.set(_j, "opno", _p?.opno);
315
+ _o.set(_j, "opresulttype", _p?.opresulttype);
316
+ _o.set(_j, "opretset", _p?.opretset);
317
+ _o.set(_j, "opcollid", _p?.opcollid);
318
+ _o.set(_j, "inputcollid", _p?.inputcollid);
319
+ _o.set(_j, "args", _p?.args);
320
+ _o.set(_j, "location", _p?.location);
321
+ return {
322
+ DistinctExpr: _j
323
+ };
324
+ },
325
+ nullIfExpr(_p) {
326
+ const _j = {};
327
+ _o.set(_j, "xpr", _p?.xpr);
328
+ _o.set(_j, "opno", _p?.opno);
329
+ _o.set(_j, "opresulttype", _p?.opresulttype);
330
+ _o.set(_j, "opretset", _p?.opretset);
331
+ _o.set(_j, "opcollid", _p?.opcollid);
332
+ _o.set(_j, "inputcollid", _p?.inputcollid);
333
+ _o.set(_j, "args", _p?.args);
334
+ _o.set(_j, "location", _p?.location);
335
+ return {
336
+ NullIfExpr: _j
337
+ };
338
+ },
339
+ scalarArrayOpExpr(_p) {
340
+ const _j = {};
341
+ _o.set(_j, "xpr", _p?.xpr);
342
+ _o.set(_j, "opno", _p?.opno);
343
+ _o.set(_j, "useOr", _p?.useOr);
344
+ _o.set(_j, "inputcollid", _p?.inputcollid);
345
+ _o.set(_j, "args", _p?.args);
346
+ _o.set(_j, "location", _p?.location);
347
+ return {
348
+ ScalarArrayOpExpr: _j
349
+ };
350
+ },
351
+ boolExpr(_p) {
352
+ const _j = {};
353
+ _o.set(_j, "xpr", _p?.xpr);
354
+ _o.set(_j, "boolop", _p?.boolop);
355
+ _o.set(_j, "args", _p?.args);
356
+ _o.set(_j, "location", _p?.location);
357
+ return {
358
+ BoolExpr: _j
359
+ };
360
+ },
361
+ subLink(_p) {
362
+ const _j = {};
363
+ _o.set(_j, "xpr", _p?.xpr);
364
+ _o.set(_j, "subLinkType", _p?.subLinkType);
365
+ _o.set(_j, "subLinkId", _p?.subLinkId);
366
+ _o.set(_j, "testexpr", _p?.testexpr);
367
+ _o.set(_j, "operName", _p?.operName);
368
+ _o.set(_j, "subselect", _p?.subselect);
369
+ _o.set(_j, "location", _p?.location);
370
+ return {
371
+ SubLink: _j
372
+ };
373
+ },
374
+ subPlan(_p) {
375
+ const _j = {};
376
+ _o.set(_j, "xpr", _p?.xpr);
377
+ _o.set(_j, "subLinkType", _p?.subLinkType);
378
+ _o.set(_j, "testexpr", _p?.testexpr);
379
+ _o.set(_j, "paramIds", _p?.paramIds);
380
+ _o.set(_j, "plan_id", _p?.plan_id);
381
+ _o.set(_j, "plan_name", _p?.plan_name);
382
+ _o.set(_j, "firstColType", _p?.firstColType);
383
+ _o.set(_j, "firstColTypmod", _p?.firstColTypmod);
384
+ _o.set(_j, "firstColCollation", _p?.firstColCollation);
385
+ _o.set(_j, "useHashTable", _p?.useHashTable);
386
+ _o.set(_j, "unknownEqFalse", _p?.unknownEqFalse);
387
+ _o.set(_j, "parallel_safe", _p?.parallel_safe);
388
+ _o.set(_j, "setParam", _p?.setParam);
389
+ _o.set(_j, "parParam", _p?.parParam);
390
+ _o.set(_j, "args", _p?.args);
391
+ _o.set(_j, "startup_cost", _p?.startup_cost);
392
+ _o.set(_j, "per_call_cost", _p?.per_call_cost);
393
+ return {
394
+ SubPlan: _j
395
+ };
396
+ },
397
+ alternativeSubPlan(_p) {
398
+ const _j = {};
399
+ _o.set(_j, "xpr", _p?.xpr);
400
+ _o.set(_j, "subplans", _p?.subplans);
401
+ return {
402
+ AlternativeSubPlan: _j
403
+ };
404
+ },
405
+ fieldSelect(_p) {
406
+ const _j = {};
407
+ _o.set(_j, "xpr", _p?.xpr);
408
+ _o.set(_j, "arg", _p?.arg);
409
+ _o.set(_j, "fieldnum", _p?.fieldnum);
410
+ _o.set(_j, "resulttype", _p?.resulttype);
411
+ _o.set(_j, "resulttypmod", _p?.resulttypmod);
412
+ _o.set(_j, "resultcollid", _p?.resultcollid);
413
+ return {
414
+ FieldSelect: _j
415
+ };
416
+ },
417
+ fieldStore(_p) {
418
+ const _j = {};
419
+ _o.set(_j, "xpr", _p?.xpr);
420
+ _o.set(_j, "arg", _p?.arg);
421
+ _o.set(_j, "newvals", _p?.newvals);
422
+ _o.set(_j, "fieldnums", _p?.fieldnums);
423
+ _o.set(_j, "resulttype", _p?.resulttype);
424
+ return {
425
+ FieldStore: _j
426
+ };
427
+ },
428
+ relabelType(_p) {
429
+ const _j = {};
430
+ _o.set(_j, "xpr", _p?.xpr);
431
+ _o.set(_j, "arg", _p?.arg);
432
+ _o.set(_j, "resulttype", _p?.resulttype);
433
+ _o.set(_j, "resulttypmod", _p?.resulttypmod);
434
+ _o.set(_j, "resultcollid", _p?.resultcollid);
435
+ _o.set(_j, "relabelformat", _p?.relabelformat);
436
+ _o.set(_j, "location", _p?.location);
437
+ return {
438
+ RelabelType: _j
439
+ };
440
+ },
441
+ coerceViaio(_p) {
442
+ const _j = {};
443
+ _o.set(_j, "xpr", _p?.xpr);
444
+ _o.set(_j, "arg", _p?.arg);
445
+ _o.set(_j, "resulttype", _p?.resulttype);
446
+ _o.set(_j, "resultcollid", _p?.resultcollid);
447
+ _o.set(_j, "coerceformat", _p?.coerceformat);
448
+ _o.set(_j, "location", _p?.location);
449
+ return {
450
+ CoerceViaIO: _j
451
+ };
452
+ },
453
+ arrayCoerceExpr(_p) {
454
+ const _j = {};
455
+ _o.set(_j, "xpr", _p?.xpr);
456
+ _o.set(_j, "arg", _p?.arg);
457
+ _o.set(_j, "elemexpr", _p?.elemexpr);
458
+ _o.set(_j, "resulttype", _p?.resulttype);
459
+ _o.set(_j, "resulttypmod", _p?.resulttypmod);
460
+ _o.set(_j, "resultcollid", _p?.resultcollid);
461
+ _o.set(_j, "coerceformat", _p?.coerceformat);
462
+ _o.set(_j, "location", _p?.location);
463
+ return {
464
+ ArrayCoerceExpr: _j
465
+ };
466
+ },
467
+ convertRowtypeExpr(_p) {
468
+ const _j = {};
469
+ _o.set(_j, "xpr", _p?.xpr);
470
+ _o.set(_j, "arg", _p?.arg);
471
+ _o.set(_j, "resulttype", _p?.resulttype);
472
+ _o.set(_j, "convertformat", _p?.convertformat);
473
+ _o.set(_j, "location", _p?.location);
474
+ return {
475
+ ConvertRowtypeExpr: _j
476
+ };
477
+ },
478
+ collateExpr(_p) {
479
+ const _j = {};
480
+ _o.set(_j, "xpr", _p?.xpr);
481
+ _o.set(_j, "arg", _p?.arg);
482
+ _o.set(_j, "collOid", _p?.collOid);
483
+ _o.set(_j, "location", _p?.location);
484
+ return {
485
+ CollateExpr: _j
486
+ };
487
+ },
488
+ caseExpr(_p) {
489
+ const _j = {};
490
+ _o.set(_j, "xpr", _p?.xpr);
491
+ _o.set(_j, "casetype", _p?.casetype);
492
+ _o.set(_j, "casecollid", _p?.casecollid);
493
+ _o.set(_j, "arg", _p?.arg);
494
+ _o.set(_j, "args", _p?.args);
495
+ _o.set(_j, "defresult", _p?.defresult);
496
+ _o.set(_j, "location", _p?.location);
497
+ return {
498
+ CaseExpr: _j
499
+ };
500
+ },
501
+ caseWhen(_p) {
502
+ const _j = {};
503
+ _o.set(_j, "xpr", _p?.xpr);
504
+ _o.set(_j, "expr", _p?.expr);
505
+ _o.set(_j, "result", _p?.result);
506
+ _o.set(_j, "location", _p?.location);
507
+ return {
508
+ CaseWhen: _j
509
+ };
510
+ },
511
+ caseTestExpr(_p) {
512
+ const _j = {};
513
+ _o.set(_j, "xpr", _p?.xpr);
514
+ _o.set(_j, "typeId", _p?.typeId);
515
+ _o.set(_j, "typeMod", _p?.typeMod);
516
+ _o.set(_j, "collation", _p?.collation);
517
+ return {
518
+ CaseTestExpr: _j
519
+ };
520
+ },
521
+ arrayExpr(_p) {
522
+ const _j = {};
523
+ _o.set(_j, "xpr", _p?.xpr);
524
+ _o.set(_j, "array_typeid", _p?.array_typeid);
525
+ _o.set(_j, "array_collid", _p?.array_collid);
526
+ _o.set(_j, "element_typeid", _p?.element_typeid);
527
+ _o.set(_j, "elements", _p?.elements);
528
+ _o.set(_j, "multidims", _p?.multidims);
529
+ _o.set(_j, "location", _p?.location);
530
+ return {
531
+ ArrayExpr: _j
532
+ };
533
+ },
534
+ rowExpr(_p) {
535
+ const _j = {};
536
+ _o.set(_j, "xpr", _p?.xpr);
537
+ _o.set(_j, "args", _p?.args);
538
+ _o.set(_j, "row_typeid", _p?.row_typeid);
539
+ _o.set(_j, "row_format", _p?.row_format);
540
+ _o.set(_j, "colnames", _p?.colnames);
541
+ _o.set(_j, "location", _p?.location);
542
+ return {
543
+ RowExpr: _j
544
+ };
545
+ },
546
+ rowCompareExpr(_p) {
547
+ const _j = {};
548
+ _o.set(_j, "xpr", _p?.xpr);
549
+ _o.set(_j, "rctype", _p?.rctype);
550
+ _o.set(_j, "opnos", _p?.opnos);
551
+ _o.set(_j, "opfamilies", _p?.opfamilies);
552
+ _o.set(_j, "inputcollids", _p?.inputcollids);
553
+ _o.set(_j, "largs", _p?.largs);
554
+ _o.set(_j, "rargs", _p?.rargs);
555
+ return {
556
+ RowCompareExpr: _j
557
+ };
558
+ },
559
+ coalesceExpr(_p) {
560
+ const _j = {};
561
+ _o.set(_j, "xpr", _p?.xpr);
562
+ _o.set(_j, "coalescetype", _p?.coalescetype);
563
+ _o.set(_j, "coalescecollid", _p?.coalescecollid);
564
+ _o.set(_j, "args", _p?.args);
565
+ _o.set(_j, "location", _p?.location);
566
+ return {
567
+ CoalesceExpr: _j
568
+ };
569
+ },
570
+ minMaxExpr(_p) {
571
+ const _j = {};
572
+ _o.set(_j, "xpr", _p?.xpr);
573
+ _o.set(_j, "minmaxtype", _p?.minmaxtype);
574
+ _o.set(_j, "minmaxcollid", _p?.minmaxcollid);
575
+ _o.set(_j, "inputcollid", _p?.inputcollid);
576
+ _o.set(_j, "op", _p?.op);
577
+ _o.set(_j, "args", _p?.args);
578
+ _o.set(_j, "location", _p?.location);
579
+ return {
580
+ MinMaxExpr: _j
581
+ };
582
+ },
583
+ sqlValueFunction(_p) {
584
+ const _j = {};
585
+ _o.set(_j, "xpr", _p?.xpr);
586
+ _o.set(_j, "op", _p?.op);
587
+ _o.set(_j, "type", _p?.type);
588
+ _o.set(_j, "typmod", _p?.typmod);
589
+ _o.set(_j, "location", _p?.location);
590
+ return {
591
+ SQLValueFunction: _j
592
+ };
593
+ },
594
+ xmlExpr(_p) {
595
+ const _j = {};
596
+ _o.set(_j, "xpr", _p?.xpr);
597
+ _o.set(_j, "op", _p?.op);
598
+ _o.set(_j, "name", _p?.name);
599
+ _o.set(_j, "named_args", _p?.named_args);
600
+ _o.set(_j, "arg_names", _p?.arg_names);
601
+ _o.set(_j, "args", _p?.args);
602
+ _o.set(_j, "xmloption", _p?.xmloption);
603
+ _o.set(_j, "indent", _p?.indent);
604
+ _o.set(_j, "type", _p?.type);
605
+ _o.set(_j, "typmod", _p?.typmod);
606
+ _o.set(_j, "location", _p?.location);
607
+ return {
608
+ XmlExpr: _j
609
+ };
610
+ },
611
+ jsonFormat(_p) {
612
+ const _j = {};
613
+ _o.set(_j, "format_type", _p?.format_type);
614
+ _o.set(_j, "encoding", _p?.encoding);
615
+ _o.set(_j, "location", _p?.location);
616
+ return {
617
+ JsonFormat: _j
618
+ };
619
+ },
620
+ jsonReturning(_p) {
621
+ const _j = {};
622
+ _o.set(_j, "format", _p?.format);
623
+ _o.set(_j, "typid", _p?.typid);
624
+ _o.set(_j, "typmod", _p?.typmod);
625
+ return {
626
+ JsonReturning: _j
627
+ };
628
+ },
629
+ jsonValueExpr(_p) {
630
+ const _j = {};
631
+ _o.set(_j, "raw_expr", _p?.raw_expr);
632
+ _o.set(_j, "formatted_expr", _p?.formatted_expr);
633
+ _o.set(_j, "format", _p?.format);
634
+ return {
635
+ JsonValueExpr: _j
636
+ };
637
+ },
638
+ jsonConstructorExpr(_p) {
639
+ const _j = {};
640
+ _o.set(_j, "xpr", _p?.xpr);
641
+ _o.set(_j, "type", _p?.type);
642
+ _o.set(_j, "args", _p?.args);
643
+ _o.set(_j, "func", _p?.func);
644
+ _o.set(_j, "coercion", _p?.coercion);
645
+ _o.set(_j, "returning", _p?.returning);
646
+ _o.set(_j, "absent_on_null", _p?.absent_on_null);
647
+ _o.set(_j, "unique", _p?.unique);
648
+ _o.set(_j, "location", _p?.location);
649
+ return {
650
+ JsonConstructorExpr: _j
651
+ };
652
+ },
653
+ jsonIsPredicate(_p) {
654
+ const _j = {};
655
+ _o.set(_j, "expr", _p?.expr);
656
+ _o.set(_j, "format", _p?.format);
657
+ _o.set(_j, "item_type", _p?.item_type);
658
+ _o.set(_j, "unique_keys", _p?.unique_keys);
659
+ _o.set(_j, "location", _p?.location);
660
+ return {
661
+ JsonIsPredicate: _j
662
+ };
663
+ },
664
+ jsonBehavior(_p) {
665
+ const _j = {};
666
+ _o.set(_j, "btype", _p?.btype);
667
+ _o.set(_j, "expr", _p?.expr);
668
+ _o.set(_j, "coerce", _p?.coerce);
669
+ _o.set(_j, "location", _p?.location);
670
+ return {
671
+ JsonBehavior: _j
672
+ };
673
+ },
674
+ jsonExpr(_p) {
675
+ const _j = {};
676
+ _o.set(_j, "xpr", _p?.xpr);
677
+ _o.set(_j, "op", _p?.op);
678
+ _o.set(_j, "column_name", _p?.column_name);
679
+ _o.set(_j, "formatted_expr", _p?.formatted_expr);
680
+ _o.set(_j, "format", _p?.format);
681
+ _o.set(_j, "path_spec", _p?.path_spec);
682
+ _o.set(_j, "returning", _p?.returning);
683
+ _o.set(_j, "passing_names", _p?.passing_names);
684
+ _o.set(_j, "passing_values", _p?.passing_values);
685
+ _o.set(_j, "on_empty", _p?.on_empty);
686
+ _o.set(_j, "on_error", _p?.on_error);
687
+ _o.set(_j, "use_io_coercion", _p?.use_io_coercion);
688
+ _o.set(_j, "use_json_coercion", _p?.use_json_coercion);
689
+ _o.set(_j, "wrapper", _p?.wrapper);
690
+ _o.set(_j, "omit_quotes", _p?.omit_quotes);
691
+ _o.set(_j, "collation", _p?.collation);
692
+ _o.set(_j, "location", _p?.location);
693
+ return {
694
+ JsonExpr: _j
695
+ };
696
+ },
697
+ jsonTablePath(_p) {
698
+ const _j = {};
699
+ _o.set(_j, "name", _p?.name);
700
+ return {
701
+ JsonTablePath: _j
702
+ };
703
+ },
704
+ jsonTablePathScan(_p) {
705
+ const _j = {};
706
+ _o.set(_j, "plan", _p?.plan);
707
+ _o.set(_j, "path", _p?.path);
708
+ _o.set(_j, "errorOnError", _p?.errorOnError);
709
+ _o.set(_j, "child", _p?.child);
710
+ _o.set(_j, "colMin", _p?.colMin);
711
+ _o.set(_j, "colMax", _p?.colMax);
712
+ return {
713
+ JsonTablePathScan: _j
714
+ };
715
+ },
716
+ jsonTableSiblingJoin(_p) {
717
+ const _j = {};
718
+ _o.set(_j, "plan", _p?.plan);
719
+ _o.set(_j, "lplan", _p?.lplan);
720
+ _o.set(_j, "rplan", _p?.rplan);
721
+ return {
722
+ JsonTableSiblingJoin: _j
723
+ };
724
+ },
725
+ nullTest(_p) {
726
+ const _j = {};
727
+ _o.set(_j, "xpr", _p?.xpr);
728
+ _o.set(_j, "arg", _p?.arg);
729
+ _o.set(_j, "nulltesttype", _p?.nulltesttype);
730
+ _o.set(_j, "argisrow", _p?.argisrow);
731
+ _o.set(_j, "location", _p?.location);
732
+ return {
733
+ NullTest: _j
734
+ };
735
+ },
736
+ booleanTest(_p) {
737
+ const _j = {};
738
+ _o.set(_j, "xpr", _p?.xpr);
739
+ _o.set(_j, "arg", _p?.arg);
740
+ _o.set(_j, "booltesttype", _p?.booltesttype);
741
+ _o.set(_j, "location", _p?.location);
742
+ return {
743
+ BooleanTest: _j
744
+ };
745
+ },
746
+ mergeAction(_p) {
747
+ const _j = {};
748
+ _o.set(_j, "matchKind", _p?.matchKind);
749
+ _o.set(_j, "commandType", _p?.commandType);
750
+ _o.set(_j, "override", _p?.override);
751
+ _o.set(_j, "qual", _p?.qual);
752
+ _o.set(_j, "targetList", _p?.targetList);
753
+ _o.set(_j, "updateColnos", _p?.updateColnos);
754
+ return {
755
+ MergeAction: _j
756
+ };
757
+ },
758
+ coerceToDomain(_p) {
759
+ const _j = {};
760
+ _o.set(_j, "xpr", _p?.xpr);
761
+ _o.set(_j, "arg", _p?.arg);
762
+ _o.set(_j, "resulttype", _p?.resulttype);
763
+ _o.set(_j, "resulttypmod", _p?.resulttypmod);
764
+ _o.set(_j, "resultcollid", _p?.resultcollid);
765
+ _o.set(_j, "coercionformat", _p?.coercionformat);
766
+ _o.set(_j, "location", _p?.location);
767
+ return {
768
+ CoerceToDomain: _j
769
+ };
770
+ },
771
+ coerceToDomainValue(_p) {
772
+ const _j = {};
773
+ _o.set(_j, "xpr", _p?.xpr);
774
+ _o.set(_j, "typeId", _p?.typeId);
775
+ _o.set(_j, "typeMod", _p?.typeMod);
776
+ _o.set(_j, "collation", _p?.collation);
777
+ _o.set(_j, "location", _p?.location);
778
+ return {
779
+ CoerceToDomainValue: _j
780
+ };
781
+ },
782
+ setToDefault(_p) {
783
+ const _j = {};
784
+ _o.set(_j, "xpr", _p?.xpr);
785
+ _o.set(_j, "typeId", _p?.typeId);
786
+ _o.set(_j, "typeMod", _p?.typeMod);
787
+ _o.set(_j, "collation", _p?.collation);
788
+ _o.set(_j, "location", _p?.location);
789
+ return {
790
+ SetToDefault: _j
791
+ };
792
+ },
793
+ currentOfExpr(_p) {
794
+ const _j = {};
795
+ _o.set(_j, "xpr", _p?.xpr);
796
+ _o.set(_j, "cvarno", _p?.cvarno);
797
+ _o.set(_j, "cursor_name", _p?.cursor_name);
798
+ _o.set(_j, "cursor_param", _p?.cursor_param);
799
+ return {
800
+ CurrentOfExpr: _j
801
+ };
802
+ },
803
+ nextValueExpr(_p) {
804
+ const _j = {};
805
+ _o.set(_j, "xpr", _p?.xpr);
806
+ _o.set(_j, "seqid", _p?.seqid);
807
+ _o.set(_j, "typeId", _p?.typeId);
808
+ return {
809
+ NextValueExpr: _j
810
+ };
811
+ },
812
+ inferenceElem(_p) {
813
+ const _j = {};
814
+ _o.set(_j, "xpr", _p?.xpr);
815
+ _o.set(_j, "expr", _p?.expr);
816
+ _o.set(_j, "infercollid", _p?.infercollid);
817
+ _o.set(_j, "inferopclass", _p?.inferopclass);
818
+ return {
819
+ InferenceElem: _j
820
+ };
821
+ },
822
+ targetEntry(_p) {
823
+ const _j = {};
824
+ _o.set(_j, "xpr", _p?.xpr);
825
+ _o.set(_j, "expr", _p?.expr);
826
+ _o.set(_j, "resno", _p?.resno);
827
+ _o.set(_j, "resname", _p?.resname);
828
+ _o.set(_j, "ressortgroupref", _p?.ressortgroupref);
829
+ _o.set(_j, "resorigtbl", _p?.resorigtbl);
830
+ _o.set(_j, "resorigcol", _p?.resorigcol);
831
+ _o.set(_j, "resjunk", _p?.resjunk);
832
+ return {
833
+ TargetEntry: _j
834
+ };
835
+ },
836
+ rangeTblRef(_p) {
837
+ const _j = {};
838
+ _o.set(_j, "rtindex", _p?.rtindex);
839
+ return {
840
+ RangeTblRef: _j
841
+ };
842
+ },
843
+ joinExpr(_p) {
844
+ const _j = {};
845
+ _o.set(_j, "jointype", _p?.jointype);
846
+ _o.set(_j, "isNatural", _p?.isNatural);
847
+ _o.set(_j, "larg", _p?.larg);
848
+ _o.set(_j, "rarg", _p?.rarg);
849
+ _o.set(_j, "usingClause", _p?.usingClause);
850
+ _o.set(_j, "join_using_alias", _p?.join_using_alias);
851
+ _o.set(_j, "quals", _p?.quals);
852
+ _o.set(_j, "alias", _p?.alias);
853
+ _o.set(_j, "rtindex", _p?.rtindex);
854
+ return {
855
+ JoinExpr: _j
856
+ };
857
+ },
858
+ fromExpr(_p) {
859
+ const _j = {};
860
+ _o.set(_j, "fromlist", _p?.fromlist);
861
+ _o.set(_j, "quals", _p?.quals);
862
+ return {
863
+ FromExpr: _j
864
+ };
865
+ },
866
+ onConflictExpr(_p) {
867
+ const _j = {};
868
+ _o.set(_j, "action", _p?.action);
869
+ _o.set(_j, "arbiterElems", _p?.arbiterElems);
870
+ _o.set(_j, "arbiterWhere", _p?.arbiterWhere);
871
+ _o.set(_j, "constraint", _p?.constraint);
872
+ _o.set(_j, "onConflictSet", _p?.onConflictSet);
873
+ _o.set(_j, "onConflictWhere", _p?.onConflictWhere);
874
+ _o.set(_j, "exclRelIndex", _p?.exclRelIndex);
875
+ _o.set(_j, "exclRelTlist", _p?.exclRelTlist);
876
+ return {
877
+ OnConflictExpr: _j
878
+ };
879
+ },
880
+ query(_p) {
881
+ const _j = {};
882
+ _o.set(_j, "commandType", _p?.commandType);
883
+ _o.set(_j, "querySource", _p?.querySource);
884
+ _o.set(_j, "canSetTag", _p?.canSetTag);
885
+ _o.set(_j, "utilityStmt", _p?.utilityStmt);
886
+ _o.set(_j, "resultRelation", _p?.resultRelation);
887
+ _o.set(_j, "hasAggs", _p?.hasAggs);
888
+ _o.set(_j, "hasWindowFuncs", _p?.hasWindowFuncs);
889
+ _o.set(_j, "hasTargetSRFs", _p?.hasTargetSRFs);
890
+ _o.set(_j, "hasSubLinks", _p?.hasSubLinks);
891
+ _o.set(_j, "hasDistinctOn", _p?.hasDistinctOn);
892
+ _o.set(_j, "hasRecursive", _p?.hasRecursive);
893
+ _o.set(_j, "hasModifyingCTE", _p?.hasModifyingCTE);
894
+ _o.set(_j, "hasForUpdate", _p?.hasForUpdate);
895
+ _o.set(_j, "hasRowSecurity", _p?.hasRowSecurity);
896
+ _o.set(_j, "isReturn", _p?.isReturn);
897
+ _o.set(_j, "cteList", _p?.cteList);
898
+ _o.set(_j, "rtable", _p?.rtable);
899
+ _o.set(_j, "rteperminfos", _p?.rteperminfos);
900
+ _o.set(_j, "jointree", _p?.jointree);
901
+ _o.set(_j, "mergeActionList", _p?.mergeActionList);
902
+ _o.set(_j, "mergeTargetRelation", _p?.mergeTargetRelation);
903
+ _o.set(_j, "mergeJoinCondition", _p?.mergeJoinCondition);
904
+ _o.set(_j, "targetList", _p?.targetList);
905
+ _o.set(_j, "override", _p?.override);
906
+ _o.set(_j, "onConflict", _p?.onConflict);
907
+ _o.set(_j, "returningList", _p?.returningList);
908
+ _o.set(_j, "groupClause", _p?.groupClause);
909
+ _o.set(_j, "groupDistinct", _p?.groupDistinct);
910
+ _o.set(_j, "groupingSets", _p?.groupingSets);
911
+ _o.set(_j, "havingQual", _p?.havingQual);
912
+ _o.set(_j, "windowClause", _p?.windowClause);
913
+ _o.set(_j, "distinctClause", _p?.distinctClause);
914
+ _o.set(_j, "sortClause", _p?.sortClause);
915
+ _o.set(_j, "limitOffset", _p?.limitOffset);
916
+ _o.set(_j, "limitCount", _p?.limitCount);
917
+ _o.set(_j, "limitOption", _p?.limitOption);
918
+ _o.set(_j, "rowMarks", _p?.rowMarks);
919
+ _o.set(_j, "setOperations", _p?.setOperations);
920
+ _o.set(_j, "constraintDeps", _p?.constraintDeps);
921
+ _o.set(_j, "withCheckOptions", _p?.withCheckOptions);
922
+ _o.set(_j, "stmt_location", _p?.stmt_location);
923
+ _o.set(_j, "stmt_len", _p?.stmt_len);
924
+ return {
925
+ Query: _j
926
+ };
927
+ },
928
+ typeName(_p) {
929
+ const _j = {};
930
+ _o.set(_j, "names", _p?.names);
931
+ _o.set(_j, "typeOid", _p?.typeOid);
932
+ _o.set(_j, "setof", _p?.setof);
933
+ _o.set(_j, "pct_type", _p?.pct_type);
934
+ _o.set(_j, "typmods", _p?.typmods);
935
+ _o.set(_j, "typemod", _p?.typemod);
936
+ _o.set(_j, "arrayBounds", _p?.arrayBounds);
937
+ _o.set(_j, "location", _p?.location);
938
+ return {
939
+ TypeName: _j
940
+ };
941
+ },
942
+ columnRef(_p) {
943
+ const _j = {};
944
+ _o.set(_j, "fields", _p?.fields);
945
+ _o.set(_j, "location", _p?.location);
946
+ return {
947
+ ColumnRef: _j
948
+ };
949
+ },
950
+ paramRef(_p) {
951
+ const _j = {};
952
+ _o.set(_j, "number", _p?.number);
953
+ _o.set(_j, "location", _p?.location);
954
+ return {
955
+ ParamRef: _j
956
+ };
957
+ },
958
+ aExpr(_p) {
959
+ const _j = {};
960
+ _o.set(_j, "kind", _p?.kind);
961
+ _o.set(_j, "name", _p?.name);
962
+ _o.set(_j, "lexpr", _p?.lexpr);
963
+ _o.set(_j, "rexpr", _p?.rexpr);
964
+ _o.set(_j, "location", _p?.location);
965
+ return {
966
+ A_Expr: _j
967
+ };
968
+ },
969
+ typeCast(_p) {
970
+ const _j = {};
971
+ _o.set(_j, "arg", _p?.arg);
972
+ _o.set(_j, "typeName", _p?.typeName);
973
+ _o.set(_j, "location", _p?.location);
974
+ return {
975
+ TypeCast: _j
976
+ };
977
+ },
978
+ collateClause(_p) {
979
+ const _j = {};
980
+ _o.set(_j, "arg", _p?.arg);
981
+ _o.set(_j, "collname", _p?.collname);
982
+ _o.set(_j, "location", _p?.location);
983
+ return {
984
+ CollateClause: _j
985
+ };
986
+ },
987
+ roleSpec(_p) {
988
+ const _j = {};
989
+ _o.set(_j, "roletype", _p?.roletype);
990
+ _o.set(_j, "rolename", _p?.rolename);
991
+ _o.set(_j, "location", _p?.location);
992
+ return {
993
+ RoleSpec: _j
994
+ };
995
+ },
996
+ funcCall(_p) {
997
+ const _j = {};
998
+ _o.set(_j, "funcname", _p?.funcname);
999
+ _o.set(_j, "args", _p?.args);
1000
+ _o.set(_j, "agg_order", _p?.agg_order);
1001
+ _o.set(_j, "agg_filter", _p?.agg_filter);
1002
+ _o.set(_j, "over", _p?.over);
1003
+ _o.set(_j, "agg_within_group", _p?.agg_within_group);
1004
+ _o.set(_j, "agg_star", _p?.agg_star);
1005
+ _o.set(_j, "agg_distinct", _p?.agg_distinct);
1006
+ _o.set(_j, "func_variadic", _p?.func_variadic);
1007
+ _o.set(_j, "funcformat", _p?.funcformat);
1008
+ _o.set(_j, "location", _p?.location);
1009
+ return {
1010
+ FuncCall: _j
1011
+ };
1012
+ },
1013
+ aStar(_p) {
1014
+ const _j = {};
1015
+ return {
1016
+ A_Star: _j
1017
+ };
1018
+ },
1019
+ aIndices(_p) {
1020
+ const _j = {};
1021
+ _o.set(_j, "is_slice", _p?.is_slice);
1022
+ _o.set(_j, "lidx", _p?.lidx);
1023
+ _o.set(_j, "uidx", _p?.uidx);
1024
+ return {
1025
+ A_Indices: _j
1026
+ };
1027
+ },
1028
+ aIndirection(_p) {
1029
+ const _j = {};
1030
+ _o.set(_j, "arg", _p?.arg);
1031
+ _o.set(_j, "indirection", _p?.indirection);
1032
+ return {
1033
+ A_Indirection: _j
1034
+ };
1035
+ },
1036
+ aArrayExpr(_p) {
1037
+ const _j = {};
1038
+ _o.set(_j, "elements", _p?.elements);
1039
+ _o.set(_j, "location", _p?.location);
1040
+ return {
1041
+ A_ArrayExpr: _j
1042
+ };
1043
+ },
1044
+ resTarget(_p) {
1045
+ const _j = {};
1046
+ _o.set(_j, "name", _p?.name);
1047
+ _o.set(_j, "indirection", _p?.indirection);
1048
+ _o.set(_j, "val", _p?.val);
1049
+ _o.set(_j, "location", _p?.location);
1050
+ return {
1051
+ ResTarget: _j
1052
+ };
1053
+ },
1054
+ multiAssignRef(_p) {
1055
+ const _j = {};
1056
+ _o.set(_j, "source", _p?.source);
1057
+ _o.set(_j, "colno", _p?.colno);
1058
+ _o.set(_j, "ncolumns", _p?.ncolumns);
1059
+ return {
1060
+ MultiAssignRef: _j
1061
+ };
1062
+ },
1063
+ sortBy(_p) {
1064
+ const _j = {};
1065
+ _o.set(_j, "node", _p?.node);
1066
+ _o.set(_j, "sortby_dir", _p?.sortby_dir);
1067
+ _o.set(_j, "sortby_nulls", _p?.sortby_nulls);
1068
+ _o.set(_j, "useOp", _p?.useOp);
1069
+ _o.set(_j, "location", _p?.location);
1070
+ return {
1071
+ SortBy: _j
1072
+ };
1073
+ },
1074
+ windowDef(_p) {
1075
+ const _j = {};
1076
+ _o.set(_j, "name", _p?.name);
1077
+ _o.set(_j, "refname", _p?.refname);
1078
+ _o.set(_j, "partitionClause", _p?.partitionClause);
1079
+ _o.set(_j, "orderClause", _p?.orderClause);
1080
+ _o.set(_j, "frameOptions", _p?.frameOptions);
1081
+ _o.set(_j, "startOffset", _p?.startOffset);
1082
+ _o.set(_j, "endOffset", _p?.endOffset);
1083
+ _o.set(_j, "location", _p?.location);
1084
+ return {
1085
+ WindowDef: _j
1086
+ };
1087
+ },
1088
+ rangeSubselect(_p) {
1089
+ const _j = {};
1090
+ _o.set(_j, "lateral", _p?.lateral);
1091
+ _o.set(_j, "subquery", _p?.subquery);
1092
+ _o.set(_j, "alias", _p?.alias);
1093
+ return {
1094
+ RangeSubselect: _j
1095
+ };
1096
+ },
1097
+ rangeFunction(_p) {
1098
+ const _j = {};
1099
+ _o.set(_j, "lateral", _p?.lateral);
1100
+ _o.set(_j, "ordinality", _p?.ordinality);
1101
+ _o.set(_j, "is_rowsfrom", _p?.is_rowsfrom);
1102
+ _o.set(_j, "functions", _p?.functions);
1103
+ _o.set(_j, "alias", _p?.alias);
1104
+ _o.set(_j, "coldeflist", _p?.coldeflist);
1105
+ return {
1106
+ RangeFunction: _j
1107
+ };
1108
+ },
1109
+ rangeTableFunc(_p) {
1110
+ const _j = {};
1111
+ _o.set(_j, "lateral", _p?.lateral);
1112
+ _o.set(_j, "docexpr", _p?.docexpr);
1113
+ _o.set(_j, "rowexpr", _p?.rowexpr);
1114
+ _o.set(_j, "namespaces", _p?.namespaces);
1115
+ _o.set(_j, "columns", _p?.columns);
1116
+ _o.set(_j, "alias", _p?.alias);
1117
+ _o.set(_j, "location", _p?.location);
1118
+ return {
1119
+ RangeTableFunc: _j
1120
+ };
1121
+ },
1122
+ rangeTableFuncCol(_p) {
1123
+ const _j = {};
1124
+ _o.set(_j, "colname", _p?.colname);
1125
+ _o.set(_j, "typeName", _p?.typeName);
1126
+ _o.set(_j, "for_ordinality", _p?.for_ordinality);
1127
+ _o.set(_j, "is_not_null", _p?.is_not_null);
1128
+ _o.set(_j, "colexpr", _p?.colexpr);
1129
+ _o.set(_j, "coldefexpr", _p?.coldefexpr);
1130
+ _o.set(_j, "location", _p?.location);
1131
+ return {
1132
+ RangeTableFuncCol: _j
1133
+ };
1134
+ },
1135
+ rangeTableSample(_p) {
1136
+ const _j = {};
1137
+ _o.set(_j, "relation", _p?.relation);
1138
+ _o.set(_j, "method", _p?.method);
1139
+ _o.set(_j, "args", _p?.args);
1140
+ _o.set(_j, "repeatable", _p?.repeatable);
1141
+ _o.set(_j, "location", _p?.location);
1142
+ return {
1143
+ RangeTableSample: _j
1144
+ };
1145
+ },
1146
+ columnDef(_p) {
1147
+ const _j = {};
1148
+ _o.set(_j, "colname", _p?.colname);
1149
+ _o.set(_j, "typeName", _p?.typeName);
1150
+ _o.set(_j, "compression", _p?.compression);
1151
+ _o.set(_j, "inhcount", _p?.inhcount);
1152
+ _o.set(_j, "is_local", _p?.is_local);
1153
+ _o.set(_j, "is_not_null", _p?.is_not_null);
1154
+ _o.set(_j, "is_from_type", _p?.is_from_type);
1155
+ _o.set(_j, "storage", _p?.storage);
1156
+ _o.set(_j, "storage_name", _p?.storage_name);
1157
+ _o.set(_j, "raw_default", _p?.raw_default);
1158
+ _o.set(_j, "cooked_default", _p?.cooked_default);
1159
+ _o.set(_j, "identity", _p?.identity);
1160
+ _o.set(_j, "identitySequence", _p?.identitySequence);
1161
+ _o.set(_j, "generated", _p?.generated);
1162
+ _o.set(_j, "collClause", _p?.collClause);
1163
+ _o.set(_j, "collOid", _p?.collOid);
1164
+ _o.set(_j, "constraints", _p?.constraints);
1165
+ _o.set(_j, "fdwoptions", _p?.fdwoptions);
1166
+ _o.set(_j, "location", _p?.location);
1167
+ return {
1168
+ ColumnDef: _j
1169
+ };
1170
+ },
1171
+ tableLikeClause(_p) {
1172
+ const _j = {};
1173
+ _o.set(_j, "relation", _p?.relation);
1174
+ _o.set(_j, "options", _p?.options);
1175
+ _o.set(_j, "relationOid", _p?.relationOid);
1176
+ return {
1177
+ TableLikeClause: _j
1178
+ };
1179
+ },
1180
+ indexElem(_p) {
1181
+ const _j = {};
1182
+ _o.set(_j, "name", _p?.name);
1183
+ _o.set(_j, "expr", _p?.expr);
1184
+ _o.set(_j, "indexcolname", _p?.indexcolname);
1185
+ _o.set(_j, "collation", _p?.collation);
1186
+ _o.set(_j, "opclass", _p?.opclass);
1187
+ _o.set(_j, "opclassopts", _p?.opclassopts);
1188
+ _o.set(_j, "ordering", _p?.ordering);
1189
+ _o.set(_j, "nulls_ordering", _p?.nulls_ordering);
1190
+ return {
1191
+ IndexElem: _j
1192
+ };
1193
+ },
1194
+ defElem(_p) {
1195
+ const _j = {};
1196
+ _o.set(_j, "defnamespace", _p?.defnamespace);
1197
+ _o.set(_j, "defname", _p?.defname);
1198
+ _o.set(_j, "arg", _p?.arg);
1199
+ _o.set(_j, "defaction", _p?.defaction);
1200
+ _o.set(_j, "location", _p?.location);
1201
+ return {
1202
+ DefElem: _j
1203
+ };
1204
+ },
1205
+ lockingClause(_p) {
1206
+ const _j = {};
1207
+ _o.set(_j, "lockedRels", _p?.lockedRels);
1208
+ _o.set(_j, "strength", _p?.strength);
1209
+ _o.set(_j, "waitPolicy", _p?.waitPolicy);
1210
+ return {
1211
+ LockingClause: _j
1212
+ };
1213
+ },
1214
+ xmlSerialize(_p) {
1215
+ const _j = {};
1216
+ _o.set(_j, "xmloption", _p?.xmloption);
1217
+ _o.set(_j, "expr", _p?.expr);
1218
+ _o.set(_j, "typeName", _p?.typeName);
1219
+ _o.set(_j, "indent", _p?.indent);
1220
+ _o.set(_j, "location", _p?.location);
1221
+ return {
1222
+ XmlSerialize: _j
1223
+ };
1224
+ },
1225
+ partitionElem(_p) {
1226
+ const _j = {};
1227
+ _o.set(_j, "name", _p?.name);
1228
+ _o.set(_j, "expr", _p?.expr);
1229
+ _o.set(_j, "collation", _p?.collation);
1230
+ _o.set(_j, "opclass", _p?.opclass);
1231
+ _o.set(_j, "location", _p?.location);
1232
+ return {
1233
+ PartitionElem: _j
1234
+ };
1235
+ },
1236
+ partitionSpec(_p) {
1237
+ const _j = {};
1238
+ _o.set(_j, "strategy", _p?.strategy);
1239
+ _o.set(_j, "partParams", _p?.partParams);
1240
+ _o.set(_j, "location", _p?.location);
1241
+ return {
1242
+ PartitionSpec: _j
1243
+ };
1244
+ },
1245
+ partitionBoundSpec(_p) {
1246
+ const _j = {};
1247
+ _o.set(_j, "strategy", _p?.strategy);
1248
+ _o.set(_j, "is_default", _p?.is_default);
1249
+ _o.set(_j, "modulus", _p?.modulus);
1250
+ _o.set(_j, "remainder", _p?.remainder);
1251
+ _o.set(_j, "listdatums", _p?.listdatums);
1252
+ _o.set(_j, "lowerdatums", _p?.lowerdatums);
1253
+ _o.set(_j, "upperdatums", _p?.upperdatums);
1254
+ _o.set(_j, "location", _p?.location);
1255
+ return {
1256
+ PartitionBoundSpec: _j
1257
+ };
1258
+ },
1259
+ partitionRangeDatum(_p) {
1260
+ const _j = {};
1261
+ _o.set(_j, "kind", _p?.kind);
1262
+ _o.set(_j, "value", _p?.value);
1263
+ _o.set(_j, "location", _p?.location);
1264
+ return {
1265
+ PartitionRangeDatum: _j
1266
+ };
1267
+ },
1268
+ singlePartitionSpec(_p) {
1269
+ const _j = {};
1270
+ return {
1271
+ SinglePartitionSpec: _j
1272
+ };
1273
+ },
1274
+ partitionCmd(_p) {
1275
+ const _j = {};
1276
+ _o.set(_j, "name", _p?.name);
1277
+ _o.set(_j, "bound", _p?.bound);
1278
+ _o.set(_j, "concurrent", _p?.concurrent);
1279
+ return {
1280
+ PartitionCmd: _j
1281
+ };
1282
+ },
1283
+ rangeTblEntry(_p) {
1284
+ const _j = {};
1285
+ _o.set(_j, "alias", _p?.alias);
1286
+ _o.set(_j, "eref", _p?.eref);
1287
+ _o.set(_j, "rtekind", _p?.rtekind);
1288
+ _o.set(_j, "relid", _p?.relid);
1289
+ _o.set(_j, "inh", _p?.inh);
1290
+ _o.set(_j, "relkind", _p?.relkind);
1291
+ _o.set(_j, "rellockmode", _p?.rellockmode);
1292
+ _o.set(_j, "perminfoindex", _p?.perminfoindex);
1293
+ _o.set(_j, "tablesample", _p?.tablesample);
1294
+ _o.set(_j, "subquery", _p?.subquery);
1295
+ _o.set(_j, "security_barrier", _p?.security_barrier);
1296
+ _o.set(_j, "jointype", _p?.jointype);
1297
+ _o.set(_j, "joinmergedcols", _p?.joinmergedcols);
1298
+ _o.set(_j, "joinaliasvars", _p?.joinaliasvars);
1299
+ _o.set(_j, "joinleftcols", _p?.joinleftcols);
1300
+ _o.set(_j, "joinrightcols", _p?.joinrightcols);
1301
+ _o.set(_j, "join_using_alias", _p?.join_using_alias);
1302
+ _o.set(_j, "functions", _p?.functions);
1303
+ _o.set(_j, "funcordinality", _p?.funcordinality);
1304
+ _o.set(_j, "tablefunc", _p?.tablefunc);
1305
+ _o.set(_j, "values_lists", _p?.values_lists);
1306
+ _o.set(_j, "ctename", _p?.ctename);
1307
+ _o.set(_j, "ctelevelsup", _p?.ctelevelsup);
1308
+ _o.set(_j, "self_reference", _p?.self_reference);
1309
+ _o.set(_j, "coltypes", _p?.coltypes);
1310
+ _o.set(_j, "coltypmods", _p?.coltypmods);
1311
+ _o.set(_j, "colcollations", _p?.colcollations);
1312
+ _o.set(_j, "enrname", _p?.enrname);
1313
+ _o.set(_j, "enrtuples", _p?.enrtuples);
1314
+ _o.set(_j, "lateral", _p?.lateral);
1315
+ _o.set(_j, "inFromCl", _p?.inFromCl);
1316
+ _o.set(_j, "securityQuals", _p?.securityQuals);
1317
+ return {
1318
+ RangeTblEntry: _j
1319
+ };
1320
+ },
1321
+ rtePermissionInfo(_p) {
1322
+ const _j = {};
1323
+ _o.set(_j, "relid", _p?.relid);
1324
+ _o.set(_j, "inh", _p?.inh);
1325
+ _o.set(_j, "requiredPerms", _p?.requiredPerms);
1326
+ _o.set(_j, "checkAsUser", _p?.checkAsUser);
1327
+ _o.set(_j, "selectedCols", _p?.selectedCols);
1328
+ _o.set(_j, "insertedCols", _p?.insertedCols);
1329
+ _o.set(_j, "updatedCols", _p?.updatedCols);
1330
+ return {
1331
+ RTEPermissionInfo: _j
1332
+ };
1333
+ },
1334
+ rangeTblFunction(_p) {
1335
+ const _j = {};
1336
+ _o.set(_j, "funcexpr", _p?.funcexpr);
1337
+ _o.set(_j, "funccolcount", _p?.funccolcount);
1338
+ _o.set(_j, "funccolnames", _p?.funccolnames);
1339
+ _o.set(_j, "funccoltypes", _p?.funccoltypes);
1340
+ _o.set(_j, "funccoltypmods", _p?.funccoltypmods);
1341
+ _o.set(_j, "funccolcollations", _p?.funccolcollations);
1342
+ _o.set(_j, "funcparams", _p?.funcparams);
1343
+ return {
1344
+ RangeTblFunction: _j
1345
+ };
1346
+ },
1347
+ tableSampleClause(_p) {
1348
+ const _j = {};
1349
+ _o.set(_j, "tsmhandler", _p?.tsmhandler);
1350
+ _o.set(_j, "args", _p?.args);
1351
+ _o.set(_j, "repeatable", _p?.repeatable);
1352
+ return {
1353
+ TableSampleClause: _j
1354
+ };
1355
+ },
1356
+ withCheckOption(_p) {
1357
+ const _j = {};
1358
+ _o.set(_j, "kind", _p?.kind);
1359
+ _o.set(_j, "relname", _p?.relname);
1360
+ _o.set(_j, "polname", _p?.polname);
1361
+ _o.set(_j, "qual", _p?.qual);
1362
+ _o.set(_j, "cascaded", _p?.cascaded);
1363
+ return {
1364
+ WithCheckOption: _j
1365
+ };
1366
+ },
1367
+ sortGroupClause(_p) {
1368
+ const _j = {};
1369
+ _o.set(_j, "tleSortGroupRef", _p?.tleSortGroupRef);
1370
+ _o.set(_j, "eqop", _p?.eqop);
1371
+ _o.set(_j, "sortop", _p?.sortop);
1372
+ _o.set(_j, "nulls_first", _p?.nulls_first);
1373
+ _o.set(_j, "hashable", _p?.hashable);
1374
+ return {
1375
+ SortGroupClause: _j
1376
+ };
1377
+ },
1378
+ groupingSet(_p) {
1379
+ const _j = {};
1380
+ _o.set(_j, "kind", _p?.kind);
1381
+ _o.set(_j, "content", _p?.content);
1382
+ _o.set(_j, "location", _p?.location);
1383
+ return {
1384
+ GroupingSet: _j
1385
+ };
1386
+ },
1387
+ windowClause(_p) {
1388
+ const _j = {};
1389
+ _o.set(_j, "name", _p?.name);
1390
+ _o.set(_j, "refname", _p?.refname);
1391
+ _o.set(_j, "partitionClause", _p?.partitionClause);
1392
+ _o.set(_j, "orderClause", _p?.orderClause);
1393
+ _o.set(_j, "frameOptions", _p?.frameOptions);
1394
+ _o.set(_j, "startOffset", _p?.startOffset);
1395
+ _o.set(_j, "endOffset", _p?.endOffset);
1396
+ _o.set(_j, "startInRangeFunc", _p?.startInRangeFunc);
1397
+ _o.set(_j, "endInRangeFunc", _p?.endInRangeFunc);
1398
+ _o.set(_j, "inRangeColl", _p?.inRangeColl);
1399
+ _o.set(_j, "inRangeAsc", _p?.inRangeAsc);
1400
+ _o.set(_j, "inRangeNullsFirst", _p?.inRangeNullsFirst);
1401
+ _o.set(_j, "winref", _p?.winref);
1402
+ _o.set(_j, "copiedOrder", _p?.copiedOrder);
1403
+ return {
1404
+ WindowClause: _j
1405
+ };
1406
+ },
1407
+ rowMarkClause(_p) {
1408
+ const _j = {};
1409
+ _o.set(_j, "rti", _p?.rti);
1410
+ _o.set(_j, "strength", _p?.strength);
1411
+ _o.set(_j, "waitPolicy", _p?.waitPolicy);
1412
+ _o.set(_j, "pushedDown", _p?.pushedDown);
1413
+ return {
1414
+ RowMarkClause: _j
1415
+ };
1416
+ },
1417
+ withClause(_p) {
1418
+ const _j = {};
1419
+ _o.set(_j, "ctes", _p?.ctes);
1420
+ _o.set(_j, "recursive", _p?.recursive);
1421
+ _o.set(_j, "location", _p?.location);
1422
+ return {
1423
+ WithClause: _j
1424
+ };
1425
+ },
1426
+ inferClause(_p) {
1427
+ const _j = {};
1428
+ _o.set(_j, "indexElems", _p?.indexElems);
1429
+ _o.set(_j, "whereClause", _p?.whereClause);
1430
+ _o.set(_j, "conname", _p?.conname);
1431
+ _o.set(_j, "location", _p?.location);
1432
+ return {
1433
+ InferClause: _j
1434
+ };
1435
+ },
1436
+ onConflictClause(_p) {
1437
+ const _j = {};
1438
+ _o.set(_j, "action", _p?.action);
1439
+ _o.set(_j, "infer", _p?.infer);
1440
+ _o.set(_j, "targetList", _p?.targetList);
1441
+ _o.set(_j, "whereClause", _p?.whereClause);
1442
+ _o.set(_j, "location", _p?.location);
1443
+ return {
1444
+ OnConflictClause: _j
1445
+ };
1446
+ },
1447
+ cteSearchClause(_p) {
1448
+ const _j = {};
1449
+ _o.set(_j, "search_col_list", _p?.search_col_list);
1450
+ _o.set(_j, "search_breadth_first", _p?.search_breadth_first);
1451
+ _o.set(_j, "search_seq_column", _p?.search_seq_column);
1452
+ _o.set(_j, "location", _p?.location);
1453
+ return {
1454
+ CTESearchClause: _j
1455
+ };
1456
+ },
1457
+ cteCycleClause(_p) {
1458
+ const _j = {};
1459
+ _o.set(_j, "cycle_col_list", _p?.cycle_col_list);
1460
+ _o.set(_j, "cycle_mark_column", _p?.cycle_mark_column);
1461
+ _o.set(_j, "cycle_mark_value", _p?.cycle_mark_value);
1462
+ _o.set(_j, "cycle_mark_default", _p?.cycle_mark_default);
1463
+ _o.set(_j, "cycle_path_column", _p?.cycle_path_column);
1464
+ _o.set(_j, "location", _p?.location);
1465
+ _o.set(_j, "cycle_mark_type", _p?.cycle_mark_type);
1466
+ _o.set(_j, "cycle_mark_typmod", _p?.cycle_mark_typmod);
1467
+ _o.set(_j, "cycle_mark_collation", _p?.cycle_mark_collation);
1468
+ _o.set(_j, "cycle_mark_neop", _p?.cycle_mark_neop);
1469
+ return {
1470
+ CTECycleClause: _j
1471
+ };
1472
+ },
1473
+ commonTableExpr(_p) {
1474
+ const _j = {};
1475
+ _o.set(_j, "ctename", _p?.ctename);
1476
+ _o.set(_j, "aliascolnames", _p?.aliascolnames);
1477
+ _o.set(_j, "ctematerialized", _p?.ctematerialized);
1478
+ _o.set(_j, "ctequery", _p?.ctequery);
1479
+ _o.set(_j, "search_clause", _p?.search_clause);
1480
+ _o.set(_j, "cycle_clause", _p?.cycle_clause);
1481
+ _o.set(_j, "location", _p?.location);
1482
+ _o.set(_j, "cterecursive", _p?.cterecursive);
1483
+ _o.set(_j, "cterefcount", _p?.cterefcount);
1484
+ _o.set(_j, "ctecolnames", _p?.ctecolnames);
1485
+ _o.set(_j, "ctecoltypes", _p?.ctecoltypes);
1486
+ _o.set(_j, "ctecoltypmods", _p?.ctecoltypmods);
1487
+ _o.set(_j, "ctecolcollations", _p?.ctecolcollations);
1488
+ return {
1489
+ CommonTableExpr: _j
1490
+ };
1491
+ },
1492
+ mergeWhenClause(_p) {
1493
+ const _j = {};
1494
+ _o.set(_j, "matchKind", _p?.matchKind);
1495
+ _o.set(_j, "commandType", _p?.commandType);
1496
+ _o.set(_j, "override", _p?.override);
1497
+ _o.set(_j, "condition", _p?.condition);
1498
+ _o.set(_j, "targetList", _p?.targetList);
1499
+ _o.set(_j, "values", _p?.values);
1500
+ return {
1501
+ MergeWhenClause: _j
1502
+ };
1503
+ },
1504
+ triggerTransition(_p) {
1505
+ const _j = {};
1506
+ _o.set(_j, "name", _p?.name);
1507
+ _o.set(_j, "isNew", _p?.isNew);
1508
+ _o.set(_j, "isTable", _p?.isTable);
1509
+ return {
1510
+ TriggerTransition: _j
1511
+ };
1512
+ },
1513
+ jsonOutput(_p) {
1514
+ const _j = {};
1515
+ _o.set(_j, "typeName", _p?.typeName);
1516
+ _o.set(_j, "returning", _p?.returning);
1517
+ return {
1518
+ JsonOutput: _j
1519
+ };
1520
+ },
1521
+ jsonArgument(_p) {
1522
+ const _j = {};
1523
+ _o.set(_j, "val", _p?.val);
1524
+ _o.set(_j, "name", _p?.name);
1525
+ return {
1526
+ JsonArgument: _j
1527
+ };
1528
+ },
1529
+ jsonFuncExpr(_p) {
1530
+ const _j = {};
1531
+ _o.set(_j, "op", _p?.op);
1532
+ _o.set(_j, "column_name", _p?.column_name);
1533
+ _o.set(_j, "context_item", _p?.context_item);
1534
+ _o.set(_j, "pathspec", _p?.pathspec);
1535
+ _o.set(_j, "passing", _p?.passing);
1536
+ _o.set(_j, "output", _p?.output);
1537
+ _o.set(_j, "on_empty", _p?.on_empty);
1538
+ _o.set(_j, "on_error", _p?.on_error);
1539
+ _o.set(_j, "wrapper", _p?.wrapper);
1540
+ _o.set(_j, "quotes", _p?.quotes);
1541
+ _o.set(_j, "location", _p?.location);
1542
+ return {
1543
+ JsonFuncExpr: _j
1544
+ };
1545
+ },
1546
+ jsonTablePathSpec(_p) {
1547
+ const _j = {};
1548
+ _o.set(_j, "string", _p?.string);
1549
+ _o.set(_j, "name", _p?.name);
1550
+ _o.set(_j, "name_location", _p?.name_location);
1551
+ _o.set(_j, "location", _p?.location);
1552
+ return {
1553
+ JsonTablePathSpec: _j
1554
+ };
1555
+ },
1556
+ jsonTable(_p) {
1557
+ const _j = {};
1558
+ _o.set(_j, "context_item", _p?.context_item);
1559
+ _o.set(_j, "pathspec", _p?.pathspec);
1560
+ _o.set(_j, "passing", _p?.passing);
1561
+ _o.set(_j, "columns", _p?.columns);
1562
+ _o.set(_j, "on_error", _p?.on_error);
1563
+ _o.set(_j, "alias", _p?.alias);
1564
+ _o.set(_j, "lateral", _p?.lateral);
1565
+ _o.set(_j, "location", _p?.location);
1566
+ return {
1567
+ JsonTable: _j
1568
+ };
1569
+ },
1570
+ jsonTableColumn(_p) {
1571
+ const _j = {};
1572
+ _o.set(_j, "coltype", _p?.coltype);
1573
+ _o.set(_j, "name", _p?.name);
1574
+ _o.set(_j, "typeName", _p?.typeName);
1575
+ _o.set(_j, "pathspec", _p?.pathspec);
1576
+ _o.set(_j, "format", _p?.format);
1577
+ _o.set(_j, "wrapper", _p?.wrapper);
1578
+ _o.set(_j, "quotes", _p?.quotes);
1579
+ _o.set(_j, "columns", _p?.columns);
1580
+ _o.set(_j, "on_empty", _p?.on_empty);
1581
+ _o.set(_j, "on_error", _p?.on_error);
1582
+ _o.set(_j, "location", _p?.location);
1583
+ return {
1584
+ JsonTableColumn: _j
1585
+ };
1586
+ },
1587
+ jsonKeyValue(_p) {
1588
+ const _j = {};
1589
+ _o.set(_j, "key", _p?.key);
1590
+ _o.set(_j, "value", _p?.value);
1591
+ return {
1592
+ JsonKeyValue: _j
1593
+ };
1594
+ },
1595
+ jsonParseExpr(_p) {
1596
+ const _j = {};
1597
+ _o.set(_j, "expr", _p?.expr);
1598
+ _o.set(_j, "output", _p?.output);
1599
+ _o.set(_j, "unique_keys", _p?.unique_keys);
1600
+ _o.set(_j, "location", _p?.location);
1601
+ return {
1602
+ JsonParseExpr: _j
1603
+ };
1604
+ },
1605
+ jsonScalarExpr(_p) {
1606
+ const _j = {};
1607
+ _o.set(_j, "expr", _p?.expr);
1608
+ _o.set(_j, "output", _p?.output);
1609
+ _o.set(_j, "location", _p?.location);
1610
+ return {
1611
+ JsonScalarExpr: _j
1612
+ };
1613
+ },
1614
+ jsonSerializeExpr(_p) {
1615
+ const _j = {};
1616
+ _o.set(_j, "expr", _p?.expr);
1617
+ _o.set(_j, "output", _p?.output);
1618
+ _o.set(_j, "location", _p?.location);
1619
+ return {
1620
+ JsonSerializeExpr: _j
1621
+ };
1622
+ },
1623
+ jsonObjectConstructor(_p) {
1624
+ const _j = {};
1625
+ _o.set(_j, "exprs", _p?.exprs);
1626
+ _o.set(_j, "output", _p?.output);
1627
+ _o.set(_j, "absent_on_null", _p?.absent_on_null);
1628
+ _o.set(_j, "unique", _p?.unique);
1629
+ _o.set(_j, "location", _p?.location);
1630
+ return {
1631
+ JsonObjectConstructor: _j
1632
+ };
1633
+ },
1634
+ jsonArrayConstructor(_p) {
1635
+ const _j = {};
1636
+ _o.set(_j, "exprs", _p?.exprs);
1637
+ _o.set(_j, "output", _p?.output);
1638
+ _o.set(_j, "absent_on_null", _p?.absent_on_null);
1639
+ _o.set(_j, "location", _p?.location);
1640
+ return {
1641
+ JsonArrayConstructor: _j
1642
+ };
1643
+ },
1644
+ jsonArrayQueryConstructor(_p) {
1645
+ const _j = {};
1646
+ _o.set(_j, "query", _p?.query);
1647
+ _o.set(_j, "output", _p?.output);
1648
+ _o.set(_j, "format", _p?.format);
1649
+ _o.set(_j, "absent_on_null", _p?.absent_on_null);
1650
+ _o.set(_j, "location", _p?.location);
1651
+ return {
1652
+ JsonArrayQueryConstructor: _j
1653
+ };
1654
+ },
1655
+ jsonAggConstructor(_p) {
1656
+ const _j = {};
1657
+ _o.set(_j, "output", _p?.output);
1658
+ _o.set(_j, "agg_filter", _p?.agg_filter);
1659
+ _o.set(_j, "agg_order", _p?.agg_order);
1660
+ _o.set(_j, "over", _p?.over);
1661
+ _o.set(_j, "location", _p?.location);
1662
+ return {
1663
+ JsonAggConstructor: _j
1664
+ };
1665
+ },
1666
+ jsonObjectAgg(_p) {
1667
+ const _j = {};
1668
+ _o.set(_j, "constructor", _p?.constructor);
1669
+ _o.set(_j, "arg", _p?.arg);
1670
+ _o.set(_j, "absent_on_null", _p?.absent_on_null);
1671
+ _o.set(_j, "unique", _p?.unique);
1672
+ return {
1673
+ JsonObjectAgg: _j
1674
+ };
1675
+ },
1676
+ jsonArrayAgg(_p) {
1677
+ const _j = {};
1678
+ _o.set(_j, "constructor", _p?.constructor);
1679
+ _o.set(_j, "arg", _p?.arg);
1680
+ _o.set(_j, "absent_on_null", _p?.absent_on_null);
1681
+ return {
1682
+ JsonArrayAgg: _j
1683
+ };
1684
+ },
1685
+ rawStmt(_p) {
1686
+ const _j = {};
1687
+ _o.set(_j, "stmt", _p?.stmt);
1688
+ _o.set(_j, "stmt_location", _p?.stmt_location);
1689
+ _o.set(_j, "stmt_len", _p?.stmt_len);
1690
+ return {
1691
+ RawStmt: _j
1692
+ };
1693
+ },
1694
+ insertStmt(_p) {
1695
+ const _j = {};
1696
+ _o.set(_j, "relation", _p?.relation);
1697
+ _o.set(_j, "cols", _p?.cols);
1698
+ _o.set(_j, "selectStmt", _p?.selectStmt);
1699
+ _o.set(_j, "onConflictClause", _p?.onConflictClause);
1700
+ _o.set(_j, "returningList", _p?.returningList);
1701
+ _o.set(_j, "withClause", _p?.withClause);
1702
+ _o.set(_j, "override", _p?.override);
1703
+ return {
1704
+ InsertStmt: _j
1705
+ };
1706
+ },
1707
+ deleteStmt(_p) {
1708
+ const _j = {};
1709
+ _o.set(_j, "relation", _p?.relation);
1710
+ _o.set(_j, "usingClause", _p?.usingClause);
1711
+ _o.set(_j, "whereClause", _p?.whereClause);
1712
+ _o.set(_j, "returningList", _p?.returningList);
1713
+ _o.set(_j, "withClause", _p?.withClause);
1714
+ return {
1715
+ DeleteStmt: _j
1716
+ };
1717
+ },
1718
+ updateStmt(_p) {
1719
+ const _j = {};
1720
+ _o.set(_j, "relation", _p?.relation);
1721
+ _o.set(_j, "targetList", _p?.targetList);
1722
+ _o.set(_j, "whereClause", _p?.whereClause);
1723
+ _o.set(_j, "fromClause", _p?.fromClause);
1724
+ _o.set(_j, "returningList", _p?.returningList);
1725
+ _o.set(_j, "withClause", _p?.withClause);
1726
+ return {
1727
+ UpdateStmt: _j
1728
+ };
1729
+ },
1730
+ mergeStmt(_p) {
1731
+ const _j = {};
1732
+ _o.set(_j, "relation", _p?.relation);
1733
+ _o.set(_j, "sourceRelation", _p?.sourceRelation);
1734
+ _o.set(_j, "joinCondition", _p?.joinCondition);
1735
+ _o.set(_j, "mergeWhenClauses", _p?.mergeWhenClauses);
1736
+ _o.set(_j, "returningList", _p?.returningList);
1737
+ _o.set(_j, "withClause", _p?.withClause);
1738
+ return {
1739
+ MergeStmt: _j
1740
+ };
1741
+ },
1742
+ selectStmt(_p) {
1743
+ const _j = {};
1744
+ _o.set(_j, "distinctClause", _p?.distinctClause);
1745
+ _o.set(_j, "intoClause", _p?.intoClause);
1746
+ _o.set(_j, "targetList", _p?.targetList);
1747
+ _o.set(_j, "fromClause", _p?.fromClause);
1748
+ _o.set(_j, "whereClause", _p?.whereClause);
1749
+ _o.set(_j, "groupClause", _p?.groupClause);
1750
+ _o.set(_j, "groupDistinct", _p?.groupDistinct);
1751
+ _o.set(_j, "havingClause", _p?.havingClause);
1752
+ _o.set(_j, "windowClause", _p?.windowClause);
1753
+ _o.set(_j, "valuesLists", _p?.valuesLists);
1754
+ _o.set(_j, "sortClause", _p?.sortClause);
1755
+ _o.set(_j, "limitOffset", _p?.limitOffset);
1756
+ _o.set(_j, "limitCount", _p?.limitCount);
1757
+ _o.set(_j, "limitOption", _p?.limitOption);
1758
+ _o.set(_j, "lockingClause", _p?.lockingClause);
1759
+ _o.set(_j, "withClause", _p?.withClause);
1760
+ _o.set(_j, "op", _p?.op);
1761
+ _o.set(_j, "all", _p?.all);
1762
+ _o.set(_j, "larg", _p?.larg);
1763
+ _o.set(_j, "rarg", _p?.rarg);
1764
+ return {
1765
+ SelectStmt: _j
1766
+ };
1767
+ },
1768
+ setOperationStmt(_p) {
1769
+ const _j = {};
1770
+ _o.set(_j, "op", _p?.op);
1771
+ _o.set(_j, "all", _p?.all);
1772
+ _o.set(_j, "larg", _p?.larg);
1773
+ _o.set(_j, "rarg", _p?.rarg);
1774
+ _o.set(_j, "colTypes", _p?.colTypes);
1775
+ _o.set(_j, "colTypmods", _p?.colTypmods);
1776
+ _o.set(_j, "colCollations", _p?.colCollations);
1777
+ _o.set(_j, "groupClauses", _p?.groupClauses);
1778
+ return {
1779
+ SetOperationStmt: _j
1780
+ };
1781
+ },
1782
+ returnStmt(_p) {
1783
+ const _j = {};
1784
+ _o.set(_j, "returnval", _p?.returnval);
1785
+ return {
1786
+ ReturnStmt: _j
1787
+ };
1788
+ },
1789
+ plAssignStmt(_p) {
1790
+ const _j = {};
1791
+ _o.set(_j, "name", _p?.name);
1792
+ _o.set(_j, "indirection", _p?.indirection);
1793
+ _o.set(_j, "nnames", _p?.nnames);
1794
+ _o.set(_j, "val", _p?.val);
1795
+ _o.set(_j, "location", _p?.location);
1796
+ return {
1797
+ PLAssignStmt: _j
1798
+ };
1799
+ },
1800
+ createSchemaStmt(_p) {
1801
+ const _j = {};
1802
+ _o.set(_j, "schemaname", _p?.schemaname);
1803
+ _o.set(_j, "authrole", _p?.authrole);
1804
+ _o.set(_j, "schemaElts", _p?.schemaElts);
1805
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
1806
+ return {
1807
+ CreateSchemaStmt: _j
1808
+ };
1809
+ },
1810
+ alterTableStmt(_p) {
1811
+ const _j = {};
1812
+ _o.set(_j, "relation", _p?.relation);
1813
+ _o.set(_j, "cmds", _p?.cmds);
1814
+ _o.set(_j, "objtype", _p?.objtype);
1815
+ _o.set(_j, "missing_ok", _p?.missing_ok);
1816
+ return {
1817
+ AlterTableStmt: _j
1818
+ };
1819
+ },
1820
+ replicaIdentityStmt(_p) {
1821
+ const _j = {};
1822
+ _o.set(_j, "identity_type", _p?.identity_type);
1823
+ _o.set(_j, "name", _p?.name);
1824
+ return {
1825
+ ReplicaIdentityStmt: _j
1826
+ };
1827
+ },
1828
+ alterTableCmd(_p) {
1829
+ const _j = {};
1830
+ _o.set(_j, "subtype", _p?.subtype);
1831
+ _o.set(_j, "name", _p?.name);
1832
+ _o.set(_j, "num", _p?.num);
1833
+ _o.set(_j, "newowner", _p?.newowner);
1834
+ _o.set(_j, "def", _p?.def);
1835
+ _o.set(_j, "behavior", _p?.behavior);
1836
+ _o.set(_j, "missing_ok", _p?.missing_ok);
1837
+ _o.set(_j, "recurse", _p?.recurse);
1838
+ return {
1839
+ AlterTableCmd: _j
1840
+ };
1841
+ },
1842
+ alterCollationStmt(_p) {
1843
+ const _j = {};
1844
+ _o.set(_j, "collname", _p?.collname);
1845
+ return {
1846
+ AlterCollationStmt: _j
1847
+ };
1848
+ },
1849
+ alterDomainStmt(_p) {
1850
+ const _j = {};
1851
+ _o.set(_j, "subtype", _p?.subtype);
1852
+ _o.set(_j, "typeName", _p?.typeName);
1853
+ _o.set(_j, "name", _p?.name);
1854
+ _o.set(_j, "def", _p?.def);
1855
+ _o.set(_j, "behavior", _p?.behavior);
1856
+ _o.set(_j, "missing_ok", _p?.missing_ok);
1857
+ return {
1858
+ AlterDomainStmt: _j
1859
+ };
1860
+ },
1861
+ grantStmt(_p) {
1862
+ const _j = {};
1863
+ _o.set(_j, "is_grant", _p?.is_grant);
1864
+ _o.set(_j, "targtype", _p?.targtype);
1865
+ _o.set(_j, "objtype", _p?.objtype);
1866
+ _o.set(_j, "objects", _p?.objects);
1867
+ _o.set(_j, "privileges", _p?.privileges);
1868
+ _o.set(_j, "grantees", _p?.grantees);
1869
+ _o.set(_j, "grant_option", _p?.grant_option);
1870
+ _o.set(_j, "grantor", _p?.grantor);
1871
+ _o.set(_j, "behavior", _p?.behavior);
1872
+ return {
1873
+ GrantStmt: _j
1874
+ };
1875
+ },
1876
+ objectWithArgs(_p) {
1877
+ const _j = {};
1878
+ _o.set(_j, "objname", _p?.objname);
1879
+ _o.set(_j, "objargs", _p?.objargs);
1880
+ _o.set(_j, "objfuncargs", _p?.objfuncargs);
1881
+ _o.set(_j, "args_unspecified", _p?.args_unspecified);
1882
+ return {
1883
+ ObjectWithArgs: _j
1884
+ };
1885
+ },
1886
+ accessPriv(_p) {
1887
+ const _j = {};
1888
+ _o.set(_j, "priv_name", _p?.priv_name);
1889
+ _o.set(_j, "cols", _p?.cols);
1890
+ return {
1891
+ AccessPriv: _j
1892
+ };
1893
+ },
1894
+ grantRoleStmt(_p) {
1895
+ const _j = {};
1896
+ _o.set(_j, "granted_roles", _p?.granted_roles);
1897
+ _o.set(_j, "grantee_roles", _p?.grantee_roles);
1898
+ _o.set(_j, "is_grant", _p?.is_grant);
1899
+ _o.set(_j, "opt", _p?.opt);
1900
+ _o.set(_j, "grantor", _p?.grantor);
1901
+ _o.set(_j, "behavior", _p?.behavior);
1902
+ return {
1903
+ GrantRoleStmt: _j
1904
+ };
1905
+ },
1906
+ alterDefaultPrivilegesStmt(_p) {
1907
+ const _j = {};
1908
+ _o.set(_j, "options", _p?.options);
1909
+ _o.set(_j, "action", _p?.action);
1910
+ return {
1911
+ AlterDefaultPrivilegesStmt: _j
1912
+ };
1913
+ },
1914
+ copyStmt(_p) {
1915
+ const _j = {};
1916
+ _o.set(_j, "relation", _p?.relation);
1917
+ _o.set(_j, "query", _p?.query);
1918
+ _o.set(_j, "attlist", _p?.attlist);
1919
+ _o.set(_j, "is_from", _p?.is_from);
1920
+ _o.set(_j, "is_program", _p?.is_program);
1921
+ _o.set(_j, "filename", _p?.filename);
1922
+ _o.set(_j, "options", _p?.options);
1923
+ _o.set(_j, "whereClause", _p?.whereClause);
1924
+ return {
1925
+ CopyStmt: _j
1926
+ };
1927
+ },
1928
+ variableSetStmt(_p) {
1929
+ const _j = {};
1930
+ _o.set(_j, "kind", _p?.kind);
1931
+ _o.set(_j, "name", _p?.name);
1932
+ _o.set(_j, "args", _p?.args);
1933
+ _o.set(_j, "is_local", _p?.is_local);
1934
+ return {
1935
+ VariableSetStmt: _j
1936
+ };
1937
+ },
1938
+ variableShowStmt(_p) {
1939
+ const _j = {};
1940
+ _o.set(_j, "name", _p?.name);
1941
+ return {
1942
+ VariableShowStmt: _j
1943
+ };
1944
+ },
1945
+ createStmt(_p) {
1946
+ const _j = {};
1947
+ _o.set(_j, "relation", _p?.relation);
1948
+ _o.set(_j, "tableElts", _p?.tableElts);
1949
+ _o.set(_j, "inhRelations", _p?.inhRelations);
1950
+ _o.set(_j, "partbound", _p?.partbound);
1951
+ _o.set(_j, "partspec", _p?.partspec);
1952
+ _o.set(_j, "ofTypename", _p?.ofTypename);
1953
+ _o.set(_j, "constraints", _p?.constraints);
1954
+ _o.set(_j, "options", _p?.options);
1955
+ _o.set(_j, "oncommit", _p?.oncommit);
1956
+ _o.set(_j, "tablespacename", _p?.tablespacename);
1957
+ _o.set(_j, "accessMethod", _p?.accessMethod);
1958
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
1959
+ return {
1960
+ CreateStmt: _j
1961
+ };
1962
+ },
1963
+ constraint(_p) {
1964
+ const _j = {};
1965
+ _o.set(_j, "contype", _p?.contype);
1966
+ _o.set(_j, "conname", _p?.conname);
1967
+ _o.set(_j, "deferrable", _p?.deferrable);
1968
+ _o.set(_j, "initdeferred", _p?.initdeferred);
1969
+ _o.set(_j, "skip_validation", _p?.skip_validation);
1970
+ _o.set(_j, "initially_valid", _p?.initially_valid);
1971
+ _o.set(_j, "is_no_inherit", _p?.is_no_inherit);
1972
+ _o.set(_j, "raw_expr", _p?.raw_expr);
1973
+ _o.set(_j, "cooked_expr", _p?.cooked_expr);
1974
+ _o.set(_j, "generated_when", _p?.generated_when);
1975
+ _o.set(_j, "inhcount", _p?.inhcount);
1976
+ _o.set(_j, "nulls_not_distinct", _p?.nulls_not_distinct);
1977
+ _o.set(_j, "keys", _p?.keys);
1978
+ _o.set(_j, "including", _p?.including);
1979
+ _o.set(_j, "exclusions", _p?.exclusions);
1980
+ _o.set(_j, "options", _p?.options);
1981
+ _o.set(_j, "indexname", _p?.indexname);
1982
+ _o.set(_j, "indexspace", _p?.indexspace);
1983
+ _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc);
1984
+ _o.set(_j, "access_method", _p?.access_method);
1985
+ _o.set(_j, "where_clause", _p?.where_clause);
1986
+ _o.set(_j, "pktable", _p?.pktable);
1987
+ _o.set(_j, "fk_attrs", _p?.fk_attrs);
1988
+ _o.set(_j, "pk_attrs", _p?.pk_attrs);
1989
+ _o.set(_j, "fk_matchtype", _p?.fk_matchtype);
1990
+ _o.set(_j, "fk_upd_action", _p?.fk_upd_action);
1991
+ _o.set(_j, "fk_del_action", _p?.fk_del_action);
1992
+ _o.set(_j, "fk_del_set_cols", _p?.fk_del_set_cols);
1993
+ _o.set(_j, "old_conpfeqop", _p?.old_conpfeqop);
1994
+ _o.set(_j, "old_pktable_oid", _p?.old_pktable_oid);
1995
+ _o.set(_j, "location", _p?.location);
1996
+ return {
1997
+ Constraint: _j
1998
+ };
1999
+ },
2000
+ createTableSpaceStmt(_p) {
2001
+ const _j = {};
2002
+ _o.set(_j, "tablespacename", _p?.tablespacename);
2003
+ _o.set(_j, "owner", _p?.owner);
2004
+ _o.set(_j, "location", _p?.location);
2005
+ _o.set(_j, "options", _p?.options);
2006
+ return {
2007
+ CreateTableSpaceStmt: _j
2008
+ };
2009
+ },
2010
+ dropTableSpaceStmt(_p) {
2011
+ const _j = {};
2012
+ _o.set(_j, "tablespacename", _p?.tablespacename);
2013
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2014
+ return {
2015
+ DropTableSpaceStmt: _j
2016
+ };
2017
+ },
2018
+ alterTableSpaceOptionsStmt(_p) {
2019
+ const _j = {};
2020
+ _o.set(_j, "tablespacename", _p?.tablespacename);
2021
+ _o.set(_j, "options", _p?.options);
2022
+ _o.set(_j, "isReset", _p?.isReset);
2023
+ return {
2024
+ AlterTableSpaceOptionsStmt: _j
2025
+ };
2026
+ },
2027
+ alterTableMoveAllStmt(_p) {
2028
+ const _j = {};
2029
+ _o.set(_j, "orig_tablespacename", _p?.orig_tablespacename);
2030
+ _o.set(_j, "objtype", _p?.objtype);
2031
+ _o.set(_j, "roles", _p?.roles);
2032
+ _o.set(_j, "new_tablespacename", _p?.new_tablespacename);
2033
+ _o.set(_j, "nowait", _p?.nowait);
2034
+ return {
2035
+ AlterTableMoveAllStmt: _j
2036
+ };
2037
+ },
2038
+ createExtensionStmt(_p) {
2039
+ const _j = {};
2040
+ _o.set(_j, "extname", _p?.extname);
2041
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2042
+ _o.set(_j, "options", _p?.options);
2043
+ return {
2044
+ CreateExtensionStmt: _j
2045
+ };
2046
+ },
2047
+ alterExtensionStmt(_p) {
2048
+ const _j = {};
2049
+ _o.set(_j, "extname", _p?.extname);
2050
+ _o.set(_j, "options", _p?.options);
2051
+ return {
2052
+ AlterExtensionStmt: _j
2053
+ };
2054
+ },
2055
+ alterExtensionContentsStmt(_p) {
2056
+ const _j = {};
2057
+ _o.set(_j, "extname", _p?.extname);
2058
+ _o.set(_j, "action", _p?.action);
2059
+ _o.set(_j, "objtype", _p?.objtype);
2060
+ _o.set(_j, "object", _p?.object);
2061
+ return {
2062
+ AlterExtensionContentsStmt: _j
2063
+ };
2064
+ },
2065
+ createFdwStmt(_p) {
2066
+ const _j = {};
2067
+ _o.set(_j, "fdwname", _p?.fdwname);
2068
+ _o.set(_j, "func_options", _p?.func_options);
2069
+ _o.set(_j, "options", _p?.options);
2070
+ return {
2071
+ CreateFdwStmt: _j
2072
+ };
2073
+ },
2074
+ alterFdwStmt(_p) {
2075
+ const _j = {};
2076
+ _o.set(_j, "fdwname", _p?.fdwname);
2077
+ _o.set(_j, "func_options", _p?.func_options);
2078
+ _o.set(_j, "options", _p?.options);
2079
+ return {
2080
+ AlterFdwStmt: _j
2081
+ };
2082
+ },
2083
+ createForeignServerStmt(_p) {
2084
+ const _j = {};
2085
+ _o.set(_j, "servername", _p?.servername);
2086
+ _o.set(_j, "servertype", _p?.servertype);
2087
+ _o.set(_j, "version", _p?.version);
2088
+ _o.set(_j, "fdwname", _p?.fdwname);
2089
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2090
+ _o.set(_j, "options", _p?.options);
2091
+ return {
2092
+ CreateForeignServerStmt: _j
2093
+ };
2094
+ },
2095
+ alterForeignServerStmt(_p) {
2096
+ const _j = {};
2097
+ _o.set(_j, "servername", _p?.servername);
2098
+ _o.set(_j, "version", _p?.version);
2099
+ _o.set(_j, "options", _p?.options);
2100
+ _o.set(_j, "has_version", _p?.has_version);
2101
+ return {
2102
+ AlterForeignServerStmt: _j
2103
+ };
2104
+ },
2105
+ createForeignTableStmt(_p) {
2106
+ const _j = {};
2107
+ _o.set(_j, "base", _p?.base);
2108
+ _o.set(_j, "servername", _p?.servername);
2109
+ _o.set(_j, "options", _p?.options);
2110
+ return {
2111
+ CreateForeignTableStmt: _j
2112
+ };
2113
+ },
2114
+ createUserMappingStmt(_p) {
2115
+ const _j = {};
2116
+ _o.set(_j, "user", _p?.user);
2117
+ _o.set(_j, "servername", _p?.servername);
2118
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2119
+ _o.set(_j, "options", _p?.options);
2120
+ return {
2121
+ CreateUserMappingStmt: _j
2122
+ };
2123
+ },
2124
+ alterUserMappingStmt(_p) {
2125
+ const _j = {};
2126
+ _o.set(_j, "user", _p?.user);
2127
+ _o.set(_j, "servername", _p?.servername);
2128
+ _o.set(_j, "options", _p?.options);
2129
+ return {
2130
+ AlterUserMappingStmt: _j
2131
+ };
2132
+ },
2133
+ dropUserMappingStmt(_p) {
2134
+ const _j = {};
2135
+ _o.set(_j, "user", _p?.user);
2136
+ _o.set(_j, "servername", _p?.servername);
2137
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2138
+ return {
2139
+ DropUserMappingStmt: _j
2140
+ };
2141
+ },
2142
+ importForeignSchemaStmt(_p) {
2143
+ const _j = {};
2144
+ _o.set(_j, "server_name", _p?.server_name);
2145
+ _o.set(_j, "remote_schema", _p?.remote_schema);
2146
+ _o.set(_j, "local_schema", _p?.local_schema);
2147
+ _o.set(_j, "list_type", _p?.list_type);
2148
+ _o.set(_j, "table_list", _p?.table_list);
2149
+ _o.set(_j, "options", _p?.options);
2150
+ return {
2151
+ ImportForeignSchemaStmt: _j
2152
+ };
2153
+ },
2154
+ createPolicyStmt(_p) {
2155
+ const _j = {};
2156
+ _o.set(_j, "policy_name", _p?.policy_name);
2157
+ _o.set(_j, "table", _p?.table);
2158
+ _o.set(_j, "cmd_name", _p?.cmd_name);
2159
+ _o.set(_j, "permissive", _p?.permissive);
2160
+ _o.set(_j, "roles", _p?.roles);
2161
+ _o.set(_j, "qual", _p?.qual);
2162
+ _o.set(_j, "with_check", _p?.with_check);
2163
+ return {
2164
+ CreatePolicyStmt: _j
2165
+ };
2166
+ },
2167
+ alterPolicyStmt(_p) {
2168
+ const _j = {};
2169
+ _o.set(_j, "policy_name", _p?.policy_name);
2170
+ _o.set(_j, "table", _p?.table);
2171
+ _o.set(_j, "roles", _p?.roles);
2172
+ _o.set(_j, "qual", _p?.qual);
2173
+ _o.set(_j, "with_check", _p?.with_check);
2174
+ return {
2175
+ AlterPolicyStmt: _j
2176
+ };
2177
+ },
2178
+ createAmStmt(_p) {
2179
+ const _j = {};
2180
+ _o.set(_j, "amname", _p?.amname);
2181
+ _o.set(_j, "handler_name", _p?.handler_name);
2182
+ _o.set(_j, "amtype", _p?.amtype);
2183
+ return {
2184
+ CreateAmStmt: _j
2185
+ };
2186
+ },
2187
+ createTrigStmt(_p) {
2188
+ const _j = {};
2189
+ _o.set(_j, "replace", _p?.replace);
2190
+ _o.set(_j, "isconstraint", _p?.isconstraint);
2191
+ _o.set(_j, "trigname", _p?.trigname);
2192
+ _o.set(_j, "relation", _p?.relation);
2193
+ _o.set(_j, "funcname", _p?.funcname);
2194
+ _o.set(_j, "args", _p?.args);
2195
+ _o.set(_j, "row", _p?.row);
2196
+ _o.set(_j, "timing", _p?.timing);
2197
+ _o.set(_j, "events", _p?.events);
2198
+ _o.set(_j, "columns", _p?.columns);
2199
+ _o.set(_j, "whenClause", _p?.whenClause);
2200
+ _o.set(_j, "transitionRels", _p?.transitionRels);
2201
+ _o.set(_j, "deferrable", _p?.deferrable);
2202
+ _o.set(_j, "initdeferred", _p?.initdeferred);
2203
+ _o.set(_j, "constrrel", _p?.constrrel);
2204
+ return {
2205
+ CreateTrigStmt: _j
2206
+ };
2207
+ },
2208
+ createEventTrigStmt(_p) {
2209
+ const _j = {};
2210
+ _o.set(_j, "trigname", _p?.trigname);
2211
+ _o.set(_j, "eventname", _p?.eventname);
2212
+ _o.set(_j, "whenclause", _p?.whenclause);
2213
+ _o.set(_j, "funcname", _p?.funcname);
2214
+ return {
2215
+ CreateEventTrigStmt: _j
2216
+ };
2217
+ },
2218
+ alterEventTrigStmt(_p) {
2219
+ const _j = {};
2220
+ _o.set(_j, "trigname", _p?.trigname);
2221
+ _o.set(_j, "tgenabled", _p?.tgenabled);
2222
+ return {
2223
+ AlterEventTrigStmt: _j
2224
+ };
2225
+ },
2226
+ createpLangStmt(_p) {
2227
+ const _j = {};
2228
+ _o.set(_j, "replace", _p?.replace);
2229
+ _o.set(_j, "plname", _p?.plname);
2230
+ _o.set(_j, "plhandler", _p?.plhandler);
2231
+ _o.set(_j, "plinline", _p?.plinline);
2232
+ _o.set(_j, "plvalidator", _p?.plvalidator);
2233
+ _o.set(_j, "pltrusted", _p?.pltrusted);
2234
+ return {
2235
+ CreatePLangStmt: _j
2236
+ };
2237
+ },
2238
+ createRoleStmt(_p) {
2239
+ const _j = {};
2240
+ _o.set(_j, "stmt_type", _p?.stmt_type);
2241
+ _o.set(_j, "role", _p?.role);
2242
+ _o.set(_j, "options", _p?.options);
2243
+ return {
2244
+ CreateRoleStmt: _j
2245
+ };
2246
+ },
2247
+ alterRoleStmt(_p) {
2248
+ const _j = {};
2249
+ _o.set(_j, "role", _p?.role);
2250
+ _o.set(_j, "options", _p?.options);
2251
+ _o.set(_j, "action", _p?.action);
2252
+ return {
2253
+ AlterRoleStmt: _j
2254
+ };
2255
+ },
2256
+ alterRoleSetStmt(_p) {
2257
+ const _j = {};
2258
+ _o.set(_j, "role", _p?.role);
2259
+ _o.set(_j, "database", _p?.database);
2260
+ _o.set(_j, "setstmt", _p?.setstmt);
2261
+ return {
2262
+ AlterRoleSetStmt: _j
2263
+ };
2264
+ },
2265
+ dropRoleStmt(_p) {
2266
+ const _j = {};
2267
+ _o.set(_j, "roles", _p?.roles);
2268
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2269
+ return {
2270
+ DropRoleStmt: _j
2271
+ };
2272
+ },
2273
+ createSeqStmt(_p) {
2274
+ const _j = {};
2275
+ _o.set(_j, "sequence", _p?.sequence);
2276
+ _o.set(_j, "options", _p?.options);
2277
+ _o.set(_j, "ownerId", _p?.ownerId);
2278
+ _o.set(_j, "for_identity", _p?.for_identity);
2279
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2280
+ return {
2281
+ CreateSeqStmt: _j
2282
+ };
2283
+ },
2284
+ alterSeqStmt(_p) {
2285
+ const _j = {};
2286
+ _o.set(_j, "sequence", _p?.sequence);
2287
+ _o.set(_j, "options", _p?.options);
2288
+ _o.set(_j, "for_identity", _p?.for_identity);
2289
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2290
+ return {
2291
+ AlterSeqStmt: _j
2292
+ };
2293
+ },
2294
+ defineStmt(_p) {
2295
+ const _j = {};
2296
+ _o.set(_j, "kind", _p?.kind);
2297
+ _o.set(_j, "oldstyle", _p?.oldstyle);
2298
+ _o.set(_j, "defnames", _p?.defnames);
2299
+ _o.set(_j, "args", _p?.args);
2300
+ _o.set(_j, "definition", _p?.definition);
2301
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2302
+ _o.set(_j, "replace", _p?.replace);
2303
+ return {
2304
+ DefineStmt: _j
2305
+ };
2306
+ },
2307
+ createDomainStmt(_p) {
2308
+ const _j = {};
2309
+ _o.set(_j, "domainname", _p?.domainname);
2310
+ _o.set(_j, "typeName", _p?.typeName);
2311
+ _o.set(_j, "collClause", _p?.collClause);
2312
+ _o.set(_j, "constraints", _p?.constraints);
2313
+ return {
2314
+ CreateDomainStmt: _j
2315
+ };
2316
+ },
2317
+ createOpClassStmt(_p) {
2318
+ const _j = {};
2319
+ _o.set(_j, "opclassname", _p?.opclassname);
2320
+ _o.set(_j, "opfamilyname", _p?.opfamilyname);
2321
+ _o.set(_j, "amname", _p?.amname);
2322
+ _o.set(_j, "datatype", _p?.datatype);
2323
+ _o.set(_j, "items", _p?.items);
2324
+ _o.set(_j, "isDefault", _p?.isDefault);
2325
+ return {
2326
+ CreateOpClassStmt: _j
2327
+ };
2328
+ },
2329
+ createOpClassItem(_p) {
2330
+ const _j = {};
2331
+ _o.set(_j, "itemtype", _p?.itemtype);
2332
+ _o.set(_j, "name", _p?.name);
2333
+ _o.set(_j, "number", _p?.number);
2334
+ _o.set(_j, "order_family", _p?.order_family);
2335
+ _o.set(_j, "class_args", _p?.class_args);
2336
+ _o.set(_j, "storedtype", _p?.storedtype);
2337
+ return {
2338
+ CreateOpClassItem: _j
2339
+ };
2340
+ },
2341
+ createOpFamilyStmt(_p) {
2342
+ const _j = {};
2343
+ _o.set(_j, "opfamilyname", _p?.opfamilyname);
2344
+ _o.set(_j, "amname", _p?.amname);
2345
+ return {
2346
+ CreateOpFamilyStmt: _j
2347
+ };
2348
+ },
2349
+ alterOpFamilyStmt(_p) {
2350
+ const _j = {};
2351
+ _o.set(_j, "opfamilyname", _p?.opfamilyname);
2352
+ _o.set(_j, "amname", _p?.amname);
2353
+ _o.set(_j, "isDrop", _p?.isDrop);
2354
+ _o.set(_j, "items", _p?.items);
2355
+ return {
2356
+ AlterOpFamilyStmt: _j
2357
+ };
2358
+ },
2359
+ dropStmt(_p) {
2360
+ const _j = {};
2361
+ _o.set(_j, "objects", _p?.objects);
2362
+ _o.set(_j, "removeType", _p?.removeType);
2363
+ _o.set(_j, "behavior", _p?.behavior);
2364
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2365
+ _o.set(_j, "concurrent", _p?.concurrent);
2366
+ return {
2367
+ DropStmt: _j
2368
+ };
2369
+ },
2370
+ truncateStmt(_p) {
2371
+ const _j = {};
2372
+ _o.set(_j, "relations", _p?.relations);
2373
+ _o.set(_j, "restart_seqs", _p?.restart_seqs);
2374
+ _o.set(_j, "behavior", _p?.behavior);
2375
+ return {
2376
+ TruncateStmt: _j
2377
+ };
2378
+ },
2379
+ commentStmt(_p) {
2380
+ const _j = {};
2381
+ _o.set(_j, "objtype", _p?.objtype);
2382
+ _o.set(_j, "object", _p?.object);
2383
+ _o.set(_j, "comment", _p?.comment);
2384
+ return {
2385
+ CommentStmt: _j
2386
+ };
2387
+ },
2388
+ secLabelStmt(_p) {
2389
+ const _j = {};
2390
+ _o.set(_j, "objtype", _p?.objtype);
2391
+ _o.set(_j, "object", _p?.object);
2392
+ _o.set(_j, "provider", _p?.provider);
2393
+ _o.set(_j, "label", _p?.label);
2394
+ return {
2395
+ SecLabelStmt: _j
2396
+ };
2397
+ },
2398
+ declareCursorStmt(_p) {
2399
+ const _j = {};
2400
+ _o.set(_j, "portalname", _p?.portalname);
2401
+ _o.set(_j, "options", _p?.options);
2402
+ _o.set(_j, "query", _p?.query);
2403
+ return {
2404
+ DeclareCursorStmt: _j
2405
+ };
2406
+ },
2407
+ closePortalStmt(_p) {
2408
+ const _j = {};
2409
+ _o.set(_j, "portalname", _p?.portalname);
2410
+ return {
2411
+ ClosePortalStmt: _j
2412
+ };
2413
+ },
2414
+ fetchStmt(_p) {
2415
+ const _j = {};
2416
+ _o.set(_j, "direction", _p?.direction);
2417
+ _o.set(_j, "howMany", _p?.howMany);
2418
+ _o.set(_j, "portalname", _p?.portalname);
2419
+ _o.set(_j, "ismove", _p?.ismove);
2420
+ return {
2421
+ FetchStmt: _j
2422
+ };
2423
+ },
2424
+ indexStmt(_p) {
2425
+ const _j = {};
2426
+ _o.set(_j, "idxname", _p?.idxname);
2427
+ _o.set(_j, "relation", _p?.relation);
2428
+ _o.set(_j, "accessMethod", _p?.accessMethod);
2429
+ _o.set(_j, "tableSpace", _p?.tableSpace);
2430
+ _o.set(_j, "indexParams", _p?.indexParams);
2431
+ _o.set(_j, "indexIncludingParams", _p?.indexIncludingParams);
2432
+ _o.set(_j, "options", _p?.options);
2433
+ _o.set(_j, "whereClause", _p?.whereClause);
2434
+ _o.set(_j, "excludeOpNames", _p?.excludeOpNames);
2435
+ _o.set(_j, "idxcomment", _p?.idxcomment);
2436
+ _o.set(_j, "indexOid", _p?.indexOid);
2437
+ _o.set(_j, "oldNumber", _p?.oldNumber);
2438
+ _o.set(_j, "oldCreateSubid", _p?.oldCreateSubid);
2439
+ _o.set(_j, "oldFirstRelfilelocatorSubid", _p?.oldFirstRelfilelocatorSubid);
2440
+ _o.set(_j, "unique", _p?.unique);
2441
+ _o.set(_j, "nulls_not_distinct", _p?.nulls_not_distinct);
2442
+ _o.set(_j, "primary", _p?.primary);
2443
+ _o.set(_j, "isconstraint", _p?.isconstraint);
2444
+ _o.set(_j, "deferrable", _p?.deferrable);
2445
+ _o.set(_j, "initdeferred", _p?.initdeferred);
2446
+ _o.set(_j, "transformed", _p?.transformed);
2447
+ _o.set(_j, "concurrent", _p?.concurrent);
2448
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2449
+ _o.set(_j, "reset_default_tblspc", _p?.reset_default_tblspc);
2450
+ return {
2451
+ IndexStmt: _j
2452
+ };
2453
+ },
2454
+ createStatsStmt(_p) {
2455
+ const _j = {};
2456
+ _o.set(_j, "defnames", _p?.defnames);
2457
+ _o.set(_j, "stat_types", _p?.stat_types);
2458
+ _o.set(_j, "exprs", _p?.exprs);
2459
+ _o.set(_j, "relations", _p?.relations);
2460
+ _o.set(_j, "stxcomment", _p?.stxcomment);
2461
+ _o.set(_j, "transformed", _p?.transformed);
2462
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2463
+ return {
2464
+ CreateStatsStmt: _j
2465
+ };
2466
+ },
2467
+ statsElem(_p) {
2468
+ const _j = {};
2469
+ _o.set(_j, "name", _p?.name);
2470
+ _o.set(_j, "expr", _p?.expr);
2471
+ return {
2472
+ StatsElem: _j
2473
+ };
2474
+ },
2475
+ alterStatsStmt(_p) {
2476
+ const _j = {};
2477
+ _o.set(_j, "defnames", _p?.defnames);
2478
+ _o.set(_j, "stxstattarget", _p?.stxstattarget);
2479
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2480
+ return {
2481
+ AlterStatsStmt: _j
2482
+ };
2483
+ },
2484
+ createFunctionStmt(_p) {
2485
+ const _j = {};
2486
+ _o.set(_j, "is_procedure", _p?.is_procedure);
2487
+ _o.set(_j, "replace", _p?.replace);
2488
+ _o.set(_j, "funcname", _p?.funcname);
2489
+ _o.set(_j, "parameters", _p?.parameters);
2490
+ _o.set(_j, "returnType", _p?.returnType);
2491
+ _o.set(_j, "options", _p?.options);
2492
+ _o.set(_j, "sql_body", _p?.sql_body);
2493
+ return {
2494
+ CreateFunctionStmt: _j
2495
+ };
2496
+ },
2497
+ functionParameter(_p) {
2498
+ const _j = {};
2499
+ _o.set(_j, "name", _p?.name);
2500
+ _o.set(_j, "argType", _p?.argType);
2501
+ _o.set(_j, "mode", _p?.mode);
2502
+ _o.set(_j, "defexpr", _p?.defexpr);
2503
+ return {
2504
+ FunctionParameter: _j
2505
+ };
2506
+ },
2507
+ alterFunctionStmt(_p) {
2508
+ const _j = {};
2509
+ _o.set(_j, "objtype", _p?.objtype);
2510
+ _o.set(_j, "func", _p?.func);
2511
+ _o.set(_j, "actions", _p?.actions);
2512
+ return {
2513
+ AlterFunctionStmt: _j
2514
+ };
2515
+ },
2516
+ doStmt(_p) {
2517
+ const _j = {};
2518
+ _o.set(_j, "args", _p?.args);
2519
+ return {
2520
+ DoStmt: _j
2521
+ };
2522
+ },
2523
+ inlineCodeBlock(_p) {
2524
+ const _j = {};
2525
+ _o.set(_j, "source_text", _p?.source_text);
2526
+ _o.set(_j, "langOid", _p?.langOid);
2527
+ _o.set(_j, "langIsTrusted", _p?.langIsTrusted);
2528
+ _o.set(_j, "atomic", _p?.atomic);
2529
+ return {
2530
+ InlineCodeBlock: _j
2531
+ };
2532
+ },
2533
+ callStmt(_p) {
2534
+ const _j = {};
2535
+ _o.set(_j, "funccall", _p?.funccall);
2536
+ _o.set(_j, "funcexpr", _p?.funcexpr);
2537
+ _o.set(_j, "outargs", _p?.outargs);
2538
+ return {
2539
+ CallStmt: _j
2540
+ };
2541
+ },
2542
+ callContext(_p) {
2543
+ const _j = {};
2544
+ _o.set(_j, "atomic", _p?.atomic);
2545
+ return {
2546
+ CallContext: _j
2547
+ };
2548
+ },
2549
+ renameStmt(_p) {
2550
+ const _j = {};
2551
+ _o.set(_j, "renameType", _p?.renameType);
2552
+ _o.set(_j, "relationType", _p?.relationType);
2553
+ _o.set(_j, "relation", _p?.relation);
2554
+ _o.set(_j, "object", _p?.object);
2555
+ _o.set(_j, "subname", _p?.subname);
2556
+ _o.set(_j, "newname", _p?.newname);
2557
+ _o.set(_j, "behavior", _p?.behavior);
2558
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2559
+ return {
2560
+ RenameStmt: _j
2561
+ };
2562
+ },
2563
+ alterObjectDependsStmt(_p) {
2564
+ const _j = {};
2565
+ _o.set(_j, "objectType", _p?.objectType);
2566
+ _o.set(_j, "relation", _p?.relation);
2567
+ _o.set(_j, "object", _p?.object);
2568
+ _o.set(_j, "extname", _p?.extname);
2569
+ _o.set(_j, "remove", _p?.remove);
2570
+ return {
2571
+ AlterObjectDependsStmt: _j
2572
+ };
2573
+ },
2574
+ alterObjectSchemaStmt(_p) {
2575
+ const _j = {};
2576
+ _o.set(_j, "objectType", _p?.objectType);
2577
+ _o.set(_j, "relation", _p?.relation);
2578
+ _o.set(_j, "object", _p?.object);
2579
+ _o.set(_j, "newschema", _p?.newschema);
2580
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2581
+ return {
2582
+ AlterObjectSchemaStmt: _j
2583
+ };
2584
+ },
2585
+ alterOwnerStmt(_p) {
2586
+ const _j = {};
2587
+ _o.set(_j, "objectType", _p?.objectType);
2588
+ _o.set(_j, "relation", _p?.relation);
2589
+ _o.set(_j, "object", _p?.object);
2590
+ _o.set(_j, "newowner", _p?.newowner);
2591
+ return {
2592
+ AlterOwnerStmt: _j
2593
+ };
2594
+ },
2595
+ alterOperatorStmt(_p) {
2596
+ const _j = {};
2597
+ _o.set(_j, "opername", _p?.opername);
2598
+ _o.set(_j, "options", _p?.options);
2599
+ return {
2600
+ AlterOperatorStmt: _j
2601
+ };
2602
+ },
2603
+ alterTypeStmt(_p) {
2604
+ const _j = {};
2605
+ _o.set(_j, "typeName", _p?.typeName);
2606
+ _o.set(_j, "options", _p?.options);
2607
+ return {
2608
+ AlterTypeStmt: _j
2609
+ };
2610
+ },
2611
+ ruleStmt(_p) {
2612
+ const _j = {};
2613
+ _o.set(_j, "relation", _p?.relation);
2614
+ _o.set(_j, "rulename", _p?.rulename);
2615
+ _o.set(_j, "whereClause", _p?.whereClause);
2616
+ _o.set(_j, "event", _p?.event);
2617
+ _o.set(_j, "instead", _p?.instead);
2618
+ _o.set(_j, "actions", _p?.actions);
2619
+ _o.set(_j, "replace", _p?.replace);
2620
+ return {
2621
+ RuleStmt: _j
2622
+ };
2623
+ },
2624
+ notifyStmt(_p) {
2625
+ const _j = {};
2626
+ _o.set(_j, "conditionname", _p?.conditionname);
2627
+ _o.set(_j, "payload", _p?.payload);
2628
+ return {
2629
+ NotifyStmt: _j
2630
+ };
2631
+ },
2632
+ listenStmt(_p) {
2633
+ const _j = {};
2634
+ _o.set(_j, "conditionname", _p?.conditionname);
2635
+ return {
2636
+ ListenStmt: _j
2637
+ };
2638
+ },
2639
+ unlistenStmt(_p) {
2640
+ const _j = {};
2641
+ _o.set(_j, "conditionname", _p?.conditionname);
2642
+ return {
2643
+ UnlistenStmt: _j
2644
+ };
2645
+ },
2646
+ transactionStmt(_p) {
2647
+ const _j = {};
2648
+ _o.set(_j, "kind", _p?.kind);
2649
+ _o.set(_j, "options", _p?.options);
2650
+ _o.set(_j, "savepoint_name", _p?.savepoint_name);
2651
+ _o.set(_j, "gid", _p?.gid);
2652
+ _o.set(_j, "chain", _p?.chain);
2653
+ _o.set(_j, "location", _p?.location);
2654
+ return {
2655
+ TransactionStmt: _j
2656
+ };
2657
+ },
2658
+ compositeTypeStmt(_p) {
2659
+ const _j = {};
2660
+ _o.set(_j, "typevar", _p?.typevar);
2661
+ _o.set(_j, "coldeflist", _p?.coldeflist);
2662
+ return {
2663
+ CompositeTypeStmt: _j
2664
+ };
2665
+ },
2666
+ createEnumStmt(_p) {
2667
+ const _j = {};
2668
+ _o.set(_j, "typeName", _p?.typeName);
2669
+ _o.set(_j, "vals", _p?.vals);
2670
+ return {
2671
+ CreateEnumStmt: _j
2672
+ };
2673
+ },
2674
+ createRangeStmt(_p) {
2675
+ const _j = {};
2676
+ _o.set(_j, "typeName", _p?.typeName);
2677
+ _o.set(_j, "params", _p?.params);
2678
+ return {
2679
+ CreateRangeStmt: _j
2680
+ };
2681
+ },
2682
+ alterEnumStmt(_p) {
2683
+ const _j = {};
2684
+ _o.set(_j, "typeName", _p?.typeName);
2685
+ _o.set(_j, "oldVal", _p?.oldVal);
2686
+ _o.set(_j, "newVal", _p?.newVal);
2687
+ _o.set(_j, "newValNeighbor", _p?.newValNeighbor);
2688
+ _o.set(_j, "newValIsAfter", _p?.newValIsAfter);
2689
+ _o.set(_j, "skipIfNewValExists", _p?.skipIfNewValExists);
2690
+ return {
2691
+ AlterEnumStmt: _j
2692
+ };
2693
+ },
2694
+ viewStmt(_p) {
2695
+ const _j = {};
2696
+ _o.set(_j, "view", _p?.view);
2697
+ _o.set(_j, "aliases", _p?.aliases);
2698
+ _o.set(_j, "query", _p?.query);
2699
+ _o.set(_j, "replace", _p?.replace);
2700
+ _o.set(_j, "options", _p?.options);
2701
+ _o.set(_j, "withCheckOption", _p?.withCheckOption);
2702
+ return {
2703
+ ViewStmt: _j
2704
+ };
2705
+ },
2706
+ loadStmt(_p) {
2707
+ const _j = {};
2708
+ _o.set(_j, "filename", _p?.filename);
2709
+ return {
2710
+ LoadStmt: _j
2711
+ };
2712
+ },
2713
+ createdbStmt(_p) {
2714
+ const _j = {};
2715
+ _o.set(_j, "dbname", _p?.dbname);
2716
+ _o.set(_j, "options", _p?.options);
2717
+ return {
2718
+ CreatedbStmt: _j
2719
+ };
2720
+ },
2721
+ alterDatabaseStmt(_p) {
2722
+ const _j = {};
2723
+ _o.set(_j, "dbname", _p?.dbname);
2724
+ _o.set(_j, "options", _p?.options);
2725
+ return {
2726
+ AlterDatabaseStmt: _j
2727
+ };
2728
+ },
2729
+ alterDatabaseRefreshCollStmt(_p) {
2730
+ const _j = {};
2731
+ _o.set(_j, "dbname", _p?.dbname);
2732
+ return {
2733
+ AlterDatabaseRefreshCollStmt: _j
2734
+ };
2735
+ },
2736
+ alterDatabaseSetStmt(_p) {
2737
+ const _j = {};
2738
+ _o.set(_j, "dbname", _p?.dbname);
2739
+ _o.set(_j, "setstmt", _p?.setstmt);
2740
+ return {
2741
+ AlterDatabaseSetStmt: _j
2742
+ };
2743
+ },
2744
+ dropdbStmt(_p) {
2745
+ const _j = {};
2746
+ _o.set(_j, "dbname", _p?.dbname);
2747
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2748
+ _o.set(_j, "options", _p?.options);
2749
+ return {
2750
+ DropdbStmt: _j
2751
+ };
2752
+ },
2753
+ alterSystemStmt(_p) {
2754
+ const _j = {};
2755
+ _o.set(_j, "setstmt", _p?.setstmt);
2756
+ return {
2757
+ AlterSystemStmt: _j
2758
+ };
2759
+ },
2760
+ clusterStmt(_p) {
2761
+ const _j = {};
2762
+ _o.set(_j, "relation", _p?.relation);
2763
+ _o.set(_j, "indexname", _p?.indexname);
2764
+ _o.set(_j, "params", _p?.params);
2765
+ return {
2766
+ ClusterStmt: _j
2767
+ };
2768
+ },
2769
+ vacuumStmt(_p) {
2770
+ const _j = {};
2771
+ _o.set(_j, "options", _p?.options);
2772
+ _o.set(_j, "rels", _p?.rels);
2773
+ _o.set(_j, "is_vacuumcmd", _p?.is_vacuumcmd);
2774
+ return {
2775
+ VacuumStmt: _j
2776
+ };
2777
+ },
2778
+ vacuumRelation(_p) {
2779
+ const _j = {};
2780
+ _o.set(_j, "relation", _p?.relation);
2781
+ _o.set(_j, "oid", _p?.oid);
2782
+ _o.set(_j, "va_cols", _p?.va_cols);
2783
+ return {
2784
+ VacuumRelation: _j
2785
+ };
2786
+ },
2787
+ explainStmt(_p) {
2788
+ const _j = {};
2789
+ _o.set(_j, "query", _p?.query);
2790
+ _o.set(_j, "options", _p?.options);
2791
+ return {
2792
+ ExplainStmt: _j
2793
+ };
2794
+ },
2795
+ createTableAsStmt(_p) {
2796
+ const _j = {};
2797
+ _o.set(_j, "query", _p?.query);
2798
+ _o.set(_j, "into", _p?.into);
2799
+ _o.set(_j, "objtype", _p?.objtype);
2800
+ _o.set(_j, "is_select_into", _p?.is_select_into);
2801
+ _o.set(_j, "if_not_exists", _p?.if_not_exists);
2802
+ return {
2803
+ CreateTableAsStmt: _j
2804
+ };
2805
+ },
2806
+ refreshMatViewStmt(_p) {
2807
+ const _j = {};
2808
+ _o.set(_j, "concurrent", _p?.concurrent);
2809
+ _o.set(_j, "skipData", _p?.skipData);
2810
+ _o.set(_j, "relation", _p?.relation);
2811
+ return {
2812
+ RefreshMatViewStmt: _j
2813
+ };
2814
+ },
2815
+ checkPointStmt(_p) {
2816
+ const _j = {};
2817
+ return {
2818
+ CheckPointStmt: _j
2819
+ };
2820
+ },
2821
+ discardStmt(_p) {
2822
+ const _j = {};
2823
+ _o.set(_j, "target", _p?.target);
2824
+ return {
2825
+ DiscardStmt: _j
2826
+ };
2827
+ },
2828
+ lockStmt(_p) {
2829
+ const _j = {};
2830
+ _o.set(_j, "relations", _p?.relations);
2831
+ _o.set(_j, "mode", _p?.mode);
2832
+ _o.set(_j, "nowait", _p?.nowait);
2833
+ return {
2834
+ LockStmt: _j
2835
+ };
2836
+ },
2837
+ constraintsSetStmt(_p) {
2838
+ const _j = {};
2839
+ _o.set(_j, "constraints", _p?.constraints);
2840
+ _o.set(_j, "deferred", _p?.deferred);
2841
+ return {
2842
+ ConstraintsSetStmt: _j
2843
+ };
2844
+ },
2845
+ reindexStmt(_p) {
2846
+ const _j = {};
2847
+ _o.set(_j, "kind", _p?.kind);
2848
+ _o.set(_j, "relation", _p?.relation);
2849
+ _o.set(_j, "name", _p?.name);
2850
+ _o.set(_j, "params", _p?.params);
2851
+ return {
2852
+ ReindexStmt: _j
2853
+ };
2854
+ },
2855
+ createConversionStmt(_p) {
2856
+ const _j = {};
2857
+ _o.set(_j, "conversion_name", _p?.conversion_name);
2858
+ _o.set(_j, "for_encoding_name", _p?.for_encoding_name);
2859
+ _o.set(_j, "to_encoding_name", _p?.to_encoding_name);
2860
+ _o.set(_j, "func_name", _p?.func_name);
2861
+ _o.set(_j, "def", _p?.def);
2862
+ return {
2863
+ CreateConversionStmt: _j
2864
+ };
2865
+ },
2866
+ createCastStmt(_p) {
2867
+ const _j = {};
2868
+ _o.set(_j, "sourcetype", _p?.sourcetype);
2869
+ _o.set(_j, "targettype", _p?.targettype);
2870
+ _o.set(_j, "func", _p?.func);
2871
+ _o.set(_j, "context", _p?.context);
2872
+ _o.set(_j, "inout", _p?.inout);
2873
+ return {
2874
+ CreateCastStmt: _j
2875
+ };
2876
+ },
2877
+ createTransformStmt(_p) {
2878
+ const _j = {};
2879
+ _o.set(_j, "replace", _p?.replace);
2880
+ _o.set(_j, "type_name", _p?.type_name);
2881
+ _o.set(_j, "lang", _p?.lang);
2882
+ _o.set(_j, "fromsql", _p?.fromsql);
2883
+ _o.set(_j, "tosql", _p?.tosql);
2884
+ return {
2885
+ CreateTransformStmt: _j
2886
+ };
2887
+ },
2888
+ prepareStmt(_p) {
2889
+ const _j = {};
2890
+ _o.set(_j, "name", _p?.name);
2891
+ _o.set(_j, "argtypes", _p?.argtypes);
2892
+ _o.set(_j, "query", _p?.query);
2893
+ return {
2894
+ PrepareStmt: _j
2895
+ };
2896
+ },
2897
+ executeStmt(_p) {
2898
+ const _j = {};
2899
+ _o.set(_j, "name", _p?.name);
2900
+ _o.set(_j, "params", _p?.params);
2901
+ return {
2902
+ ExecuteStmt: _j
2903
+ };
2904
+ },
2905
+ deallocateStmt(_p) {
2906
+ const _j = {};
2907
+ _o.set(_j, "name", _p?.name);
2908
+ _o.set(_j, "isall", _p?.isall);
2909
+ _o.set(_j, "location", _p?.location);
2910
+ return {
2911
+ DeallocateStmt: _j
2912
+ };
2913
+ },
2914
+ dropOwnedStmt(_p) {
2915
+ const _j = {};
2916
+ _o.set(_j, "roles", _p?.roles);
2917
+ _o.set(_j, "behavior", _p?.behavior);
2918
+ return {
2919
+ DropOwnedStmt: _j
2920
+ };
2921
+ },
2922
+ reassignOwnedStmt(_p) {
2923
+ const _j = {};
2924
+ _o.set(_j, "roles", _p?.roles);
2925
+ _o.set(_j, "newrole", _p?.newrole);
2926
+ return {
2927
+ ReassignOwnedStmt: _j
2928
+ };
2929
+ },
2930
+ altertsDictionaryStmt(_p) {
2931
+ const _j = {};
2932
+ _o.set(_j, "dictname", _p?.dictname);
2933
+ _o.set(_j, "options", _p?.options);
2934
+ return {
2935
+ AlterTSDictionaryStmt: _j
2936
+ };
2937
+ },
2938
+ altertsConfigurationStmt(_p) {
2939
+ const _j = {};
2940
+ _o.set(_j, "kind", _p?.kind);
2941
+ _o.set(_j, "cfgname", _p?.cfgname);
2942
+ _o.set(_j, "tokentype", _p?.tokentype);
2943
+ _o.set(_j, "dicts", _p?.dicts);
2944
+ _o.set(_j, "override", _p?.override);
2945
+ _o.set(_j, "replace", _p?.replace);
2946
+ _o.set(_j, "missing_ok", _p?.missing_ok);
2947
+ return {
2948
+ AlterTSConfigurationStmt: _j
2949
+ };
2950
+ },
2951
+ publicationTable(_p) {
2952
+ const _j = {};
2953
+ _o.set(_j, "relation", _p?.relation);
2954
+ _o.set(_j, "whereClause", _p?.whereClause);
2955
+ _o.set(_j, "columns", _p?.columns);
2956
+ return {
2957
+ PublicationTable: _j
2958
+ };
2959
+ },
2960
+ publicationObjSpec(_p) {
2961
+ const _j = {};
2962
+ _o.set(_j, "pubobjtype", _p?.pubobjtype);
2963
+ _o.set(_j, "name", _p?.name);
2964
+ _o.set(_j, "pubtable", _p?.pubtable);
2965
+ _o.set(_j, "location", _p?.location);
2966
+ return {
2967
+ PublicationObjSpec: _j
2968
+ };
2969
+ },
2970
+ createPublicationStmt(_p) {
2971
+ const _j = {};
2972
+ _o.set(_j, "pubname", _p?.pubname);
2973
+ _o.set(_j, "options", _p?.options);
2974
+ _o.set(_j, "pubobjects", _p?.pubobjects);
2975
+ _o.set(_j, "for_all_tables", _p?.for_all_tables);
2976
+ return {
2977
+ CreatePublicationStmt: _j
2978
+ };
2979
+ },
2980
+ alterPublicationStmt(_p) {
2981
+ const _j = {};
2982
+ _o.set(_j, "pubname", _p?.pubname);
2983
+ _o.set(_j, "options", _p?.options);
2984
+ _o.set(_j, "pubobjects", _p?.pubobjects);
2985
+ _o.set(_j, "for_all_tables", _p?.for_all_tables);
2986
+ _o.set(_j, "action", _p?.action);
2987
+ return {
2988
+ AlterPublicationStmt: _j
2989
+ };
2990
+ },
2991
+ createSubscriptionStmt(_p) {
2992
+ const _j = {};
2993
+ _o.set(_j, "subname", _p?.subname);
2994
+ _o.set(_j, "conninfo", _p?.conninfo);
2995
+ _o.set(_j, "publication", _p?.publication);
2996
+ _o.set(_j, "options", _p?.options);
2997
+ return {
2998
+ CreateSubscriptionStmt: _j
2999
+ };
3000
+ },
3001
+ alterSubscriptionStmt(_p) {
3002
+ const _j = {};
3003
+ _o.set(_j, "kind", _p?.kind);
3004
+ _o.set(_j, "subname", _p?.subname);
3005
+ _o.set(_j, "conninfo", _p?.conninfo);
3006
+ _o.set(_j, "publication", _p?.publication);
3007
+ _o.set(_j, "options", _p?.options);
3008
+ return {
3009
+ AlterSubscriptionStmt: _j
3010
+ };
3011
+ },
3012
+ dropSubscriptionStmt(_p) {
3013
+ const _j = {};
3014
+ _o.set(_j, "subname", _p?.subname);
3015
+ _o.set(_j, "missing_ok", _p?.missing_ok);
3016
+ _o.set(_j, "behavior", _p?.behavior);
3017
+ return {
3018
+ DropSubscriptionStmt: _j
3019
+ };
3020
+ },
3021
+ scanToken(_p) {
3022
+ const _j = {};
3023
+ _o.set(_j, "start", _p?.start);
3024
+ _o.set(_j, "end", _p?.end);
3025
+ _o.set(_j, "token", _p?.token);
3026
+ _o.set(_j, "keywordKind", _p?.keywordKind);
3027
+ return {
3028
+ ScanToken: _j
3029
+ };
3030
+ }
3031
+ };