@pgsql/utils 13.4.0 → 13.5.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/main/asts.js ADDED
@@ -0,0 +1,2096 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ parseResult(_p) {
5
+ return {
6
+ version: _p?.version,
7
+ stmts: _p?.stmts
8
+ };
9
+ },
10
+ scanResult(_p) {
11
+ return {
12
+ version: _p?.version,
13
+ tokens: _p?.tokens
14
+ };
15
+ },
16
+ integer(_p) {
17
+ return {
18
+ ival: _p?.ival
19
+ };
20
+ },
21
+ float(_p) {
22
+ return {
23
+ str: _p?.str
24
+ };
25
+ },
26
+ string(_p) {
27
+ return {
28
+ str: _p?.str
29
+ };
30
+ },
31
+ bitString(_p) {
32
+ return {
33
+ str: _p?.str
34
+ };
35
+ },
36
+ null(_p) {
37
+ return {};
38
+ },
39
+ list(_p) {
40
+ return {
41
+ items: _p?.items
42
+ };
43
+ },
44
+ oidList(_p) {
45
+ return {
46
+ items: _p?.items
47
+ };
48
+ },
49
+ intList(_p) {
50
+ return {
51
+ items: _p?.items
52
+ };
53
+ },
54
+ alias(_p) {
55
+ return {
56
+ aliasname: _p?.aliasname,
57
+ colnames: _p?.colnames
58
+ };
59
+ },
60
+ rangeVar(_p) {
61
+ return {
62
+ catalogname: _p?.catalogname,
63
+ schemaname: _p?.schemaname,
64
+ relname: _p?.relname,
65
+ inh: _p?.inh,
66
+ relpersistence: _p?.relpersistence,
67
+ alias: _p?.alias,
68
+ location: _p?.location
69
+ };
70
+ },
71
+ tableFunc(_p) {
72
+ return {
73
+ ns_uris: _p?.ns_uris,
74
+ ns_names: _p?.ns_names,
75
+ docexpr: _p?.docexpr,
76
+ rowexpr: _p?.rowexpr,
77
+ colnames: _p?.colnames,
78
+ coltypes: _p?.coltypes,
79
+ coltypmods: _p?.coltypmods,
80
+ colcollations: _p?.colcollations,
81
+ colexprs: _p?.colexprs,
82
+ coldefexprs: _p?.coldefexprs,
83
+ notnulls: _p?.notnulls,
84
+ ordinalitycol: _p?.ordinalitycol,
85
+ location: _p?.location
86
+ };
87
+ },
88
+ expr(_p) {
89
+ return {};
90
+ },
91
+ var(_p) {
92
+ return {
93
+ xpr: _p?.xpr,
94
+ varno: _p?.varno,
95
+ varattno: _p?.varattno,
96
+ vartype: _p?.vartype,
97
+ vartypmod: _p?.vartypmod,
98
+ varcollid: _p?.varcollid,
99
+ varlevelsup: _p?.varlevelsup,
100
+ varnosyn: _p?.varnosyn,
101
+ varattnosyn: _p?.varattnosyn,
102
+ location: _p?.location
103
+ };
104
+ },
105
+ param(_p) {
106
+ return {
107
+ xpr: _p?.xpr,
108
+ paramkind: _p?.paramkind,
109
+ paramid: _p?.paramid,
110
+ paramtype: _p?.paramtype,
111
+ paramtypmod: _p?.paramtypmod,
112
+ paramcollid: _p?.paramcollid,
113
+ location: _p?.location
114
+ };
115
+ },
116
+ aggref(_p) {
117
+ return {
118
+ xpr: _p?.xpr,
119
+ aggfnoid: _p?.aggfnoid,
120
+ aggtype: _p?.aggtype,
121
+ aggcollid: _p?.aggcollid,
122
+ inputcollid: _p?.inputcollid,
123
+ aggtranstype: _p?.aggtranstype,
124
+ aggargtypes: _p?.aggargtypes,
125
+ aggdirectargs: _p?.aggdirectargs,
126
+ args: _p?.args,
127
+ aggorder: _p?.aggorder,
128
+ aggdistinct: _p?.aggdistinct,
129
+ aggfilter: _p?.aggfilter,
130
+ aggstar: _p?.aggstar,
131
+ aggvariadic: _p?.aggvariadic,
132
+ aggkind: _p?.aggkind,
133
+ agglevelsup: _p?.agglevelsup,
134
+ aggsplit: _p?.aggsplit,
135
+ location: _p?.location
136
+ };
137
+ },
138
+ groupingFunc(_p) {
139
+ return {
140
+ xpr: _p?.xpr,
141
+ args: _p?.args,
142
+ refs: _p?.refs,
143
+ cols: _p?.cols,
144
+ agglevelsup: _p?.agglevelsup,
145
+ location: _p?.location
146
+ };
147
+ },
148
+ windowFunc(_p) {
149
+ return {
150
+ xpr: _p?.xpr,
151
+ winfnoid: _p?.winfnoid,
152
+ wintype: _p?.wintype,
153
+ wincollid: _p?.wincollid,
154
+ inputcollid: _p?.inputcollid,
155
+ args: _p?.args,
156
+ aggfilter: _p?.aggfilter,
157
+ winref: _p?.winref,
158
+ winstar: _p?.winstar,
159
+ winagg: _p?.winagg,
160
+ location: _p?.location
161
+ };
162
+ },
163
+ subscriptingRef(_p) {
164
+ return {
165
+ xpr: _p?.xpr,
166
+ refcontainertype: _p?.refcontainertype,
167
+ refelemtype: _p?.refelemtype,
168
+ reftypmod: _p?.reftypmod,
169
+ refcollid: _p?.refcollid,
170
+ refupperindexpr: _p?.refupperindexpr,
171
+ reflowerindexpr: _p?.reflowerindexpr,
172
+ refexpr: _p?.refexpr,
173
+ refassgnexpr: _p?.refassgnexpr
174
+ };
175
+ },
176
+ funcExpr(_p) {
177
+ return {
178
+ xpr: _p?.xpr,
179
+ funcid: _p?.funcid,
180
+ funcresulttype: _p?.funcresulttype,
181
+ funcretset: _p?.funcretset,
182
+ funcvariadic: _p?.funcvariadic,
183
+ funcformat: _p?.funcformat,
184
+ funccollid: _p?.funccollid,
185
+ inputcollid: _p?.inputcollid,
186
+ args: _p?.args,
187
+ location: _p?.location
188
+ };
189
+ },
190
+ namedArgExpr(_p) {
191
+ return {
192
+ xpr: _p?.xpr,
193
+ arg: _p?.arg,
194
+ name: _p?.name,
195
+ argnumber: _p?.argnumber,
196
+ location: _p?.location
197
+ };
198
+ },
199
+ opExpr(_p) {
200
+ return {
201
+ xpr: _p?.xpr,
202
+ opno: _p?.opno,
203
+ opfuncid: _p?.opfuncid,
204
+ opresulttype: _p?.opresulttype,
205
+ opretset: _p?.opretset,
206
+ opcollid: _p?.opcollid,
207
+ inputcollid: _p?.inputcollid,
208
+ args: _p?.args,
209
+ location: _p?.location
210
+ };
211
+ },
212
+ distinctExpr(_p) {
213
+ return {
214
+ xpr: _p?.xpr,
215
+ opno: _p?.opno,
216
+ opfuncid: _p?.opfuncid,
217
+ opresulttype: _p?.opresulttype,
218
+ opretset: _p?.opretset,
219
+ opcollid: _p?.opcollid,
220
+ inputcollid: _p?.inputcollid,
221
+ args: _p?.args,
222
+ location: _p?.location
223
+ };
224
+ },
225
+ nullIfExpr(_p) {
226
+ return {
227
+ xpr: _p?.xpr,
228
+ opno: _p?.opno,
229
+ opfuncid: _p?.opfuncid,
230
+ opresulttype: _p?.opresulttype,
231
+ opretset: _p?.opretset,
232
+ opcollid: _p?.opcollid,
233
+ inputcollid: _p?.inputcollid,
234
+ args: _p?.args,
235
+ location: _p?.location
236
+ };
237
+ },
238
+ scalarArrayOpExpr(_p) {
239
+ return {
240
+ xpr: _p?.xpr,
241
+ opno: _p?.opno,
242
+ opfuncid: _p?.opfuncid,
243
+ useOr: _p?.useOr,
244
+ inputcollid: _p?.inputcollid,
245
+ args: _p?.args,
246
+ location: _p?.location
247
+ };
248
+ },
249
+ boolExpr(_p) {
250
+ return {
251
+ xpr: _p?.xpr,
252
+ boolop: _p?.boolop,
253
+ args: _p?.args,
254
+ location: _p?.location
255
+ };
256
+ },
257
+ subLink(_p) {
258
+ return {
259
+ xpr: _p?.xpr,
260
+ subLinkType: _p?.subLinkType,
261
+ subLinkId: _p?.subLinkId,
262
+ testexpr: _p?.testexpr,
263
+ operName: _p?.operName,
264
+ subselect: _p?.subselect,
265
+ location: _p?.location
266
+ };
267
+ },
268
+ subPlan(_p) {
269
+ return {
270
+ xpr: _p?.xpr,
271
+ subLinkType: _p?.subLinkType,
272
+ testexpr: _p?.testexpr,
273
+ paramIds: _p?.paramIds,
274
+ plan_id: _p?.plan_id,
275
+ plan_name: _p?.plan_name,
276
+ firstColType: _p?.firstColType,
277
+ firstColTypmod: _p?.firstColTypmod,
278
+ firstColCollation: _p?.firstColCollation,
279
+ useHashTable: _p?.useHashTable,
280
+ unknownEqFalse: _p?.unknownEqFalse,
281
+ parallel_safe: _p?.parallel_safe,
282
+ setParam: _p?.setParam,
283
+ parParam: _p?.parParam,
284
+ args: _p?.args,
285
+ startup_cost: _p?.startup_cost,
286
+ per_call_cost: _p?.per_call_cost
287
+ };
288
+ },
289
+ alternativeSubPlan(_p) {
290
+ return {
291
+ xpr: _p?.xpr,
292
+ subplans: _p?.subplans
293
+ };
294
+ },
295
+ fieldSelect(_p) {
296
+ return {
297
+ xpr: _p?.xpr,
298
+ arg: _p?.arg,
299
+ fieldnum: _p?.fieldnum,
300
+ resulttype: _p?.resulttype,
301
+ resulttypmod: _p?.resulttypmod,
302
+ resultcollid: _p?.resultcollid
303
+ };
304
+ },
305
+ fieldStore(_p) {
306
+ return {
307
+ xpr: _p?.xpr,
308
+ arg: _p?.arg,
309
+ newvals: _p?.newvals,
310
+ fieldnums: _p?.fieldnums,
311
+ resulttype: _p?.resulttype
312
+ };
313
+ },
314
+ relabelType(_p) {
315
+ return {
316
+ xpr: _p?.xpr,
317
+ arg: _p?.arg,
318
+ resulttype: _p?.resulttype,
319
+ resulttypmod: _p?.resulttypmod,
320
+ resultcollid: _p?.resultcollid,
321
+ relabelformat: _p?.relabelformat,
322
+ location: _p?.location
323
+ };
324
+ },
325
+ coerceViaio(_p) {
326
+ return {
327
+ xpr: _p?.xpr,
328
+ arg: _p?.arg,
329
+ resulttype: _p?.resulttype,
330
+ resultcollid: _p?.resultcollid,
331
+ coerceformat: _p?.coerceformat,
332
+ location: _p?.location
333
+ };
334
+ },
335
+ arrayCoerceExpr(_p) {
336
+ return {
337
+ xpr: _p?.xpr,
338
+ arg: _p?.arg,
339
+ elemexpr: _p?.elemexpr,
340
+ resulttype: _p?.resulttype,
341
+ resulttypmod: _p?.resulttypmod,
342
+ resultcollid: _p?.resultcollid,
343
+ coerceformat: _p?.coerceformat,
344
+ location: _p?.location
345
+ };
346
+ },
347
+ convertRowtypeExpr(_p) {
348
+ return {
349
+ xpr: _p?.xpr,
350
+ arg: _p?.arg,
351
+ resulttype: _p?.resulttype,
352
+ convertformat: _p?.convertformat,
353
+ location: _p?.location
354
+ };
355
+ },
356
+ collateExpr(_p) {
357
+ return {
358
+ xpr: _p?.xpr,
359
+ arg: _p?.arg,
360
+ collOid: _p?.collOid,
361
+ location: _p?.location
362
+ };
363
+ },
364
+ caseExpr(_p) {
365
+ return {
366
+ xpr: _p?.xpr,
367
+ casetype: _p?.casetype,
368
+ casecollid: _p?.casecollid,
369
+ arg: _p?.arg,
370
+ args: _p?.args,
371
+ defresult: _p?.defresult,
372
+ location: _p?.location
373
+ };
374
+ },
375
+ caseWhen(_p) {
376
+ return {
377
+ xpr: _p?.xpr,
378
+ expr: _p?.expr,
379
+ result: _p?.result,
380
+ location: _p?.location
381
+ };
382
+ },
383
+ caseTestExpr(_p) {
384
+ return {
385
+ xpr: _p?.xpr,
386
+ typeId: _p?.typeId,
387
+ typeMod: _p?.typeMod,
388
+ collation: _p?.collation
389
+ };
390
+ },
391
+ arrayExpr(_p) {
392
+ return {
393
+ xpr: _p?.xpr,
394
+ array_typeid: _p?.array_typeid,
395
+ array_collid: _p?.array_collid,
396
+ element_typeid: _p?.element_typeid,
397
+ elements: _p?.elements,
398
+ multidims: _p?.multidims,
399
+ location: _p?.location
400
+ };
401
+ },
402
+ rowExpr(_p) {
403
+ return {
404
+ xpr: _p?.xpr,
405
+ args: _p?.args,
406
+ row_typeid: _p?.row_typeid,
407
+ row_format: _p?.row_format,
408
+ colnames: _p?.colnames,
409
+ location: _p?.location
410
+ };
411
+ },
412
+ rowCompareExpr(_p) {
413
+ return {
414
+ xpr: _p?.xpr,
415
+ rctype: _p?.rctype,
416
+ opnos: _p?.opnos,
417
+ opfamilies: _p?.opfamilies,
418
+ inputcollids: _p?.inputcollids,
419
+ largs: _p?.largs,
420
+ rargs: _p?.rargs
421
+ };
422
+ },
423
+ coalesceExpr(_p) {
424
+ return {
425
+ xpr: _p?.xpr,
426
+ coalescetype: _p?.coalescetype,
427
+ coalescecollid: _p?.coalescecollid,
428
+ args: _p?.args,
429
+ location: _p?.location
430
+ };
431
+ },
432
+ minMaxExpr(_p) {
433
+ return {
434
+ xpr: _p?.xpr,
435
+ minmaxtype: _p?.minmaxtype,
436
+ minmaxcollid: _p?.minmaxcollid,
437
+ inputcollid: _p?.inputcollid,
438
+ op: _p?.op,
439
+ args: _p?.args,
440
+ location: _p?.location
441
+ };
442
+ },
443
+ sqlValueFunction(_p) {
444
+ return {
445
+ xpr: _p?.xpr,
446
+ op: _p?.op,
447
+ type: _p?.type,
448
+ typmod: _p?.typmod,
449
+ location: _p?.location
450
+ };
451
+ },
452
+ xmlExpr(_p) {
453
+ return {
454
+ xpr: _p?.xpr,
455
+ op: _p?.op,
456
+ name: _p?.name,
457
+ named_args: _p?.named_args,
458
+ arg_names: _p?.arg_names,
459
+ args: _p?.args,
460
+ xmloption: _p?.xmloption,
461
+ type: _p?.type,
462
+ typmod: _p?.typmod,
463
+ location: _p?.location
464
+ };
465
+ },
466
+ nullTest(_p) {
467
+ return {
468
+ xpr: _p?.xpr,
469
+ arg: _p?.arg,
470
+ nulltesttype: _p?.nulltesttype,
471
+ argisrow: _p?.argisrow,
472
+ location: _p?.location
473
+ };
474
+ },
475
+ booleanTest(_p) {
476
+ return {
477
+ xpr: _p?.xpr,
478
+ arg: _p?.arg,
479
+ booltesttype: _p?.booltesttype,
480
+ location: _p?.location
481
+ };
482
+ },
483
+ coerceToDomain(_p) {
484
+ return {
485
+ xpr: _p?.xpr,
486
+ arg: _p?.arg,
487
+ resulttype: _p?.resulttype,
488
+ resulttypmod: _p?.resulttypmod,
489
+ resultcollid: _p?.resultcollid,
490
+ coercionformat: _p?.coercionformat,
491
+ location: _p?.location
492
+ };
493
+ },
494
+ coerceToDomainValue(_p) {
495
+ return {
496
+ xpr: _p?.xpr,
497
+ typeId: _p?.typeId,
498
+ typeMod: _p?.typeMod,
499
+ collation: _p?.collation,
500
+ location: _p?.location
501
+ };
502
+ },
503
+ setToDefault(_p) {
504
+ return {
505
+ xpr: _p?.xpr,
506
+ typeId: _p?.typeId,
507
+ typeMod: _p?.typeMod,
508
+ collation: _p?.collation,
509
+ location: _p?.location
510
+ };
511
+ },
512
+ currentOfExpr(_p) {
513
+ return {
514
+ xpr: _p?.xpr,
515
+ cvarno: _p?.cvarno,
516
+ cursor_name: _p?.cursor_name,
517
+ cursor_param: _p?.cursor_param
518
+ };
519
+ },
520
+ nextValueExpr(_p) {
521
+ return {
522
+ xpr: _p?.xpr,
523
+ seqid: _p?.seqid,
524
+ typeId: _p?.typeId
525
+ };
526
+ },
527
+ inferenceElem(_p) {
528
+ return {
529
+ xpr: _p?.xpr,
530
+ expr: _p?.expr,
531
+ infercollid: _p?.infercollid,
532
+ inferopclass: _p?.inferopclass
533
+ };
534
+ },
535
+ targetEntry(_p) {
536
+ return {
537
+ xpr: _p?.xpr,
538
+ expr: _p?.expr,
539
+ resno: _p?.resno,
540
+ resname: _p?.resname,
541
+ ressortgroupref: _p?.ressortgroupref,
542
+ resorigtbl: _p?.resorigtbl,
543
+ resorigcol: _p?.resorigcol,
544
+ resjunk: _p?.resjunk
545
+ };
546
+ },
547
+ rangeTblRef(_p) {
548
+ return {
549
+ rtindex: _p?.rtindex
550
+ };
551
+ },
552
+ joinExpr(_p) {
553
+ return {
554
+ jointype: _p?.jointype,
555
+ isNatural: _p?.isNatural,
556
+ larg: _p?.larg,
557
+ rarg: _p?.rarg,
558
+ usingClause: _p?.usingClause,
559
+ quals: _p?.quals,
560
+ alias: _p?.alias,
561
+ rtindex: _p?.rtindex
562
+ };
563
+ },
564
+ fromExpr(_p) {
565
+ return {
566
+ fromlist: _p?.fromlist,
567
+ quals: _p?.quals
568
+ };
569
+ },
570
+ onConflictExpr(_p) {
571
+ return {
572
+ action: _p?.action,
573
+ arbiterElems: _p?.arbiterElems,
574
+ arbiterWhere: _p?.arbiterWhere,
575
+ constraint: _p?.constraint,
576
+ onConflictSet: _p?.onConflictSet,
577
+ onConflictWhere: _p?.onConflictWhere,
578
+ exclRelIndex: _p?.exclRelIndex,
579
+ exclRelTlist: _p?.exclRelTlist
580
+ };
581
+ },
582
+ intoClause(_p) {
583
+ return {
584
+ rel: _p?.rel,
585
+ colNames: _p?.colNames,
586
+ accessMethod: _p?.accessMethod,
587
+ options: _p?.options,
588
+ onCommit: _p?.onCommit,
589
+ tableSpaceName: _p?.tableSpaceName,
590
+ viewQuery: _p?.viewQuery,
591
+ skipData: _p?.skipData
592
+ };
593
+ },
594
+ rawStmt(_p) {
595
+ return {
596
+ stmt: _p?.stmt,
597
+ stmt_location: _p?.stmt_location,
598
+ stmt_len: _p?.stmt_len
599
+ };
600
+ },
601
+ query(_p) {
602
+ return {
603
+ commandType: _p?.commandType,
604
+ querySource: _p?.querySource,
605
+ canSetTag: _p?.canSetTag,
606
+ utilityStmt: _p?.utilityStmt,
607
+ resultRelation: _p?.resultRelation,
608
+ hasAggs: _p?.hasAggs,
609
+ hasWindowFuncs: _p?.hasWindowFuncs,
610
+ hasTargetSRFs: _p?.hasTargetSRFs,
611
+ hasSubLinks: _p?.hasSubLinks,
612
+ hasDistinctOn: _p?.hasDistinctOn,
613
+ hasRecursive: _p?.hasRecursive,
614
+ hasModifyingCTE: _p?.hasModifyingCTE,
615
+ hasForUpdate: _p?.hasForUpdate,
616
+ hasRowSecurity: _p?.hasRowSecurity,
617
+ cteList: _p?.cteList,
618
+ rtable: _p?.rtable,
619
+ jointree: _p?.jointree,
620
+ targetList: _p?.targetList,
621
+ override: _p?.override,
622
+ onConflict: _p?.onConflict,
623
+ returningList: _p?.returningList,
624
+ groupClause: _p?.groupClause,
625
+ groupingSets: _p?.groupingSets,
626
+ havingQual: _p?.havingQual,
627
+ windowClause: _p?.windowClause,
628
+ distinctClause: _p?.distinctClause,
629
+ sortClause: _p?.sortClause,
630
+ limitOffset: _p?.limitOffset,
631
+ limitCount: _p?.limitCount,
632
+ limitOption: _p?.limitOption,
633
+ rowMarks: _p?.rowMarks,
634
+ setOperations: _p?.setOperations,
635
+ constraintDeps: _p?.constraintDeps,
636
+ withCheckOptions: _p?.withCheckOptions,
637
+ stmt_location: _p?.stmt_location,
638
+ stmt_len: _p?.stmt_len
639
+ };
640
+ },
641
+ insertStmt(_p) {
642
+ return {
643
+ relation: _p?.relation,
644
+ cols: _p?.cols,
645
+ selectStmt: _p?.selectStmt,
646
+ onConflictClause: _p?.onConflictClause,
647
+ returningList: _p?.returningList,
648
+ withClause: _p?.withClause,
649
+ override: _p?.override
650
+ };
651
+ },
652
+ deleteStmt(_p) {
653
+ return {
654
+ relation: _p?.relation,
655
+ usingClause: _p?.usingClause,
656
+ whereClause: _p?.whereClause,
657
+ returningList: _p?.returningList,
658
+ withClause: _p?.withClause
659
+ };
660
+ },
661
+ updateStmt(_p) {
662
+ return {
663
+ relation: _p?.relation,
664
+ targetList: _p?.targetList,
665
+ whereClause: _p?.whereClause,
666
+ fromClause: _p?.fromClause,
667
+ returningList: _p?.returningList,
668
+ withClause: _p?.withClause
669
+ };
670
+ },
671
+ selectStmt(_p) {
672
+ return {
673
+ distinctClause: _p?.distinctClause,
674
+ intoClause: _p?.intoClause,
675
+ targetList: _p?.targetList,
676
+ fromClause: _p?.fromClause,
677
+ whereClause: _p?.whereClause,
678
+ groupClause: _p?.groupClause,
679
+ havingClause: _p?.havingClause,
680
+ windowClause: _p?.windowClause,
681
+ valuesLists: _p?.valuesLists,
682
+ sortClause: _p?.sortClause,
683
+ limitOffset: _p?.limitOffset,
684
+ limitCount: _p?.limitCount,
685
+ limitOption: _p?.limitOption,
686
+ lockingClause: _p?.lockingClause,
687
+ withClause: _p?.withClause,
688
+ op: _p?.op,
689
+ all: _p?.all,
690
+ larg: _p?.larg,
691
+ rarg: _p?.rarg
692
+ };
693
+ },
694
+ alterTableStmt(_p) {
695
+ return {
696
+ relation: _p?.relation,
697
+ cmds: _p?.cmds,
698
+ relkind: _p?.relkind,
699
+ missing_ok: _p?.missing_ok
700
+ };
701
+ },
702
+ alterTableCmd(_p) {
703
+ return {
704
+ subtype: _p?.subtype,
705
+ name: _p?.name,
706
+ num: _p?.num,
707
+ newowner: _p?.newowner,
708
+ def: _p?.def,
709
+ behavior: _p?.behavior,
710
+ missing_ok: _p?.missing_ok,
711
+ recurse: _p?.recurse
712
+ };
713
+ },
714
+ alterDomainStmt(_p) {
715
+ return {
716
+ subtype: _p?.subtype,
717
+ typeName: _p?.typeName,
718
+ name: _p?.name,
719
+ def: _p?.def,
720
+ behavior: _p?.behavior,
721
+ missing_ok: _p?.missing_ok
722
+ };
723
+ },
724
+ setOperationStmt(_p) {
725
+ return {
726
+ op: _p?.op,
727
+ all: _p?.all,
728
+ larg: _p?.larg,
729
+ rarg: _p?.rarg,
730
+ colTypes: _p?.colTypes,
731
+ colTypmods: _p?.colTypmods,
732
+ colCollations: _p?.colCollations,
733
+ groupClauses: _p?.groupClauses
734
+ };
735
+ },
736
+ grantStmt(_p) {
737
+ return {
738
+ is_grant: _p?.is_grant,
739
+ targtype: _p?.targtype,
740
+ objtype: _p?.objtype,
741
+ objects: _p?.objects,
742
+ privileges: _p?.privileges,
743
+ grantees: _p?.grantees,
744
+ grant_option: _p?.grant_option,
745
+ behavior: _p?.behavior
746
+ };
747
+ },
748
+ grantRoleStmt(_p) {
749
+ return {
750
+ granted_roles: _p?.granted_roles,
751
+ grantee_roles: _p?.grantee_roles,
752
+ is_grant: _p?.is_grant,
753
+ admin_opt: _p?.admin_opt,
754
+ grantor: _p?.grantor,
755
+ behavior: _p?.behavior
756
+ };
757
+ },
758
+ alterDefaultPrivilegesStmt(_p) {
759
+ return {
760
+ options: _p?.options,
761
+ action: _p?.action
762
+ };
763
+ },
764
+ closePortalStmt(_p) {
765
+ return {
766
+ portalname: _p?.portalname
767
+ };
768
+ },
769
+ clusterStmt(_p) {
770
+ return {
771
+ relation: _p?.relation,
772
+ indexname: _p?.indexname,
773
+ options: _p?.options
774
+ };
775
+ },
776
+ copyStmt(_p) {
777
+ return {
778
+ relation: _p?.relation,
779
+ query: _p?.query,
780
+ attlist: _p?.attlist,
781
+ is_from: _p?.is_from,
782
+ is_program: _p?.is_program,
783
+ filename: _p?.filename,
784
+ options: _p?.options,
785
+ whereClause: _p?.whereClause
786
+ };
787
+ },
788
+ createStmt(_p) {
789
+ return {
790
+ relation: _p?.relation,
791
+ tableElts: _p?.tableElts,
792
+ inhRelations: _p?.inhRelations,
793
+ partbound: _p?.partbound,
794
+ partspec: _p?.partspec,
795
+ ofTypename: _p?.ofTypename,
796
+ constraints: _p?.constraints,
797
+ options: _p?.options,
798
+ oncommit: _p?.oncommit,
799
+ tablespacename: _p?.tablespacename,
800
+ accessMethod: _p?.accessMethod,
801
+ if_not_exists: _p?.if_not_exists
802
+ };
803
+ },
804
+ defineStmt(_p) {
805
+ return {
806
+ kind: _p?.kind,
807
+ oldstyle: _p?.oldstyle,
808
+ defnames: _p?.defnames,
809
+ args: _p?.args,
810
+ definition: _p?.definition,
811
+ if_not_exists: _p?.if_not_exists,
812
+ replace: _p?.replace
813
+ };
814
+ },
815
+ dropStmt(_p) {
816
+ return {
817
+ objects: _p?.objects,
818
+ removeType: _p?.removeType,
819
+ behavior: _p?.behavior,
820
+ missing_ok: _p?.missing_ok,
821
+ concurrent: _p?.concurrent
822
+ };
823
+ },
824
+ truncateStmt(_p) {
825
+ return {
826
+ relations: _p?.relations,
827
+ restart_seqs: _p?.restart_seqs,
828
+ behavior: _p?.behavior
829
+ };
830
+ },
831
+ commentStmt(_p) {
832
+ return {
833
+ objtype: _p?.objtype,
834
+ object: _p?.object,
835
+ comment: _p?.comment
836
+ };
837
+ },
838
+ fetchStmt(_p) {
839
+ return {
840
+ direction: _p?.direction,
841
+ howMany: _p?.howMany,
842
+ portalname: _p?.portalname,
843
+ ismove: _p?.ismove
844
+ };
845
+ },
846
+ indexStmt(_p) {
847
+ return {
848
+ idxname: _p?.idxname,
849
+ relation: _p?.relation,
850
+ accessMethod: _p?.accessMethod,
851
+ tableSpace: _p?.tableSpace,
852
+ indexParams: _p?.indexParams,
853
+ indexIncludingParams: _p?.indexIncludingParams,
854
+ options: _p?.options,
855
+ whereClause: _p?.whereClause,
856
+ excludeOpNames: _p?.excludeOpNames,
857
+ idxcomment: _p?.idxcomment,
858
+ indexOid: _p?.indexOid,
859
+ oldNode: _p?.oldNode,
860
+ oldCreateSubid: _p?.oldCreateSubid,
861
+ oldFirstRelfilenodeSubid: _p?.oldFirstRelfilenodeSubid,
862
+ unique: _p?.unique,
863
+ primary: _p?.primary,
864
+ isconstraint: _p?.isconstraint,
865
+ deferrable: _p?.deferrable,
866
+ initdeferred: _p?.initdeferred,
867
+ transformed: _p?.transformed,
868
+ concurrent: _p?.concurrent,
869
+ if_not_exists: _p?.if_not_exists,
870
+ reset_default_tblspc: _p?.reset_default_tblspc
871
+ };
872
+ },
873
+ createFunctionStmt(_p) {
874
+ return {
875
+ is_procedure: _p?.is_procedure,
876
+ replace: _p?.replace,
877
+ funcname: _p?.funcname,
878
+ parameters: _p?.parameters,
879
+ returnType: _p?.returnType,
880
+ options: _p?.options
881
+ };
882
+ },
883
+ alterFunctionStmt(_p) {
884
+ return {
885
+ objtype: _p?.objtype,
886
+ func: _p?.func,
887
+ actions: _p?.actions
888
+ };
889
+ },
890
+ doStmt(_p) {
891
+ return {
892
+ args: _p?.args
893
+ };
894
+ },
895
+ renameStmt(_p) {
896
+ return {
897
+ renameType: _p?.renameType,
898
+ relationType: _p?.relationType,
899
+ relation: _p?.relation,
900
+ object: _p?.object,
901
+ subname: _p?.subname,
902
+ newname: _p?.newname,
903
+ behavior: _p?.behavior,
904
+ missing_ok: _p?.missing_ok
905
+ };
906
+ },
907
+ ruleStmt(_p) {
908
+ return {
909
+ relation: _p?.relation,
910
+ rulename: _p?.rulename,
911
+ whereClause: _p?.whereClause,
912
+ event: _p?.event,
913
+ instead: _p?.instead,
914
+ actions: _p?.actions,
915
+ replace: _p?.replace
916
+ };
917
+ },
918
+ notifyStmt(_p) {
919
+ return {
920
+ conditionname: _p?.conditionname,
921
+ payload: _p?.payload
922
+ };
923
+ },
924
+ listenStmt(_p) {
925
+ return {
926
+ conditionname: _p?.conditionname
927
+ };
928
+ },
929
+ unlistenStmt(_p) {
930
+ return {
931
+ conditionname: _p?.conditionname
932
+ };
933
+ },
934
+ transactionStmt(_p) {
935
+ return {
936
+ kind: _p?.kind,
937
+ options: _p?.options,
938
+ savepoint_name: _p?.savepoint_name,
939
+ gid: _p?.gid,
940
+ chain: _p?.chain
941
+ };
942
+ },
943
+ viewStmt(_p) {
944
+ return {
945
+ view: _p?.view,
946
+ aliases: _p?.aliases,
947
+ query: _p?.query,
948
+ replace: _p?.replace,
949
+ options: _p?.options,
950
+ withCheckOption: _p?.withCheckOption
951
+ };
952
+ },
953
+ loadStmt(_p) {
954
+ return {
955
+ filename: _p?.filename
956
+ };
957
+ },
958
+ createDomainStmt(_p) {
959
+ return {
960
+ domainname: _p?.domainname,
961
+ typeName: _p?.typeName,
962
+ collClause: _p?.collClause,
963
+ constraints: _p?.constraints
964
+ };
965
+ },
966
+ createdbStmt(_p) {
967
+ return {
968
+ dbname: _p?.dbname,
969
+ options: _p?.options
970
+ };
971
+ },
972
+ dropdbStmt(_p) {
973
+ return {
974
+ dbname: _p?.dbname,
975
+ missing_ok: _p?.missing_ok,
976
+ options: _p?.options
977
+ };
978
+ },
979
+ vacuumStmt(_p) {
980
+ return {
981
+ options: _p?.options,
982
+ rels: _p?.rels,
983
+ is_vacuumcmd: _p?.is_vacuumcmd
984
+ };
985
+ },
986
+ explainStmt(_p) {
987
+ return {
988
+ query: _p?.query,
989
+ options: _p?.options
990
+ };
991
+ },
992
+ createTableAsStmt(_p) {
993
+ return {
994
+ query: _p?.query,
995
+ into: _p?.into,
996
+ relkind: _p?.relkind,
997
+ is_select_into: _p?.is_select_into,
998
+ if_not_exists: _p?.if_not_exists
999
+ };
1000
+ },
1001
+ createSeqStmt(_p) {
1002
+ return {
1003
+ sequence: _p?.sequence,
1004
+ options: _p?.options,
1005
+ ownerId: _p?.ownerId,
1006
+ for_identity: _p?.for_identity,
1007
+ if_not_exists: _p?.if_not_exists
1008
+ };
1009
+ },
1010
+ alterSeqStmt(_p) {
1011
+ return {
1012
+ sequence: _p?.sequence,
1013
+ options: _p?.options,
1014
+ for_identity: _p?.for_identity,
1015
+ missing_ok: _p?.missing_ok
1016
+ };
1017
+ },
1018
+ variableSetStmt(_p) {
1019
+ return {
1020
+ kind: _p?.kind,
1021
+ name: _p?.name,
1022
+ args: _p?.args,
1023
+ is_local: _p?.is_local
1024
+ };
1025
+ },
1026
+ variableShowStmt(_p) {
1027
+ return {
1028
+ name: _p?.name
1029
+ };
1030
+ },
1031
+ discardStmt(_p) {
1032
+ return {
1033
+ target: _p?.target
1034
+ };
1035
+ },
1036
+ createTrigStmt(_p) {
1037
+ return {
1038
+ trigname: _p?.trigname,
1039
+ relation: _p?.relation,
1040
+ funcname: _p?.funcname,
1041
+ args: _p?.args,
1042
+ row: _p?.row,
1043
+ timing: _p?.timing,
1044
+ events: _p?.events,
1045
+ columns: _p?.columns,
1046
+ whenClause: _p?.whenClause,
1047
+ isconstraint: _p?.isconstraint,
1048
+ transitionRels: _p?.transitionRels,
1049
+ deferrable: _p?.deferrable,
1050
+ initdeferred: _p?.initdeferred,
1051
+ constrrel: _p?.constrrel
1052
+ };
1053
+ },
1054
+ createpLangStmt(_p) {
1055
+ return {
1056
+ replace: _p?.replace,
1057
+ plname: _p?.plname,
1058
+ plhandler: _p?.plhandler,
1059
+ plinline: _p?.plinline,
1060
+ plvalidator: _p?.plvalidator,
1061
+ pltrusted: _p?.pltrusted
1062
+ };
1063
+ },
1064
+ createRoleStmt(_p) {
1065
+ return {
1066
+ stmt_type: _p?.stmt_type,
1067
+ role: _p?.role,
1068
+ options: _p?.options
1069
+ };
1070
+ },
1071
+ alterRoleStmt(_p) {
1072
+ return {
1073
+ role: _p?.role,
1074
+ options: _p?.options,
1075
+ action: _p?.action
1076
+ };
1077
+ },
1078
+ dropRoleStmt(_p) {
1079
+ return {
1080
+ roles: _p?.roles,
1081
+ missing_ok: _p?.missing_ok
1082
+ };
1083
+ },
1084
+ lockStmt(_p) {
1085
+ return {
1086
+ relations: _p?.relations,
1087
+ mode: _p?.mode,
1088
+ nowait: _p?.nowait
1089
+ };
1090
+ },
1091
+ constraintsSetStmt(_p) {
1092
+ return {
1093
+ constraints: _p?.constraints,
1094
+ deferred: _p?.deferred
1095
+ };
1096
+ },
1097
+ reindexStmt(_p) {
1098
+ return {
1099
+ kind: _p?.kind,
1100
+ relation: _p?.relation,
1101
+ name: _p?.name,
1102
+ options: _p?.options,
1103
+ concurrent: _p?.concurrent
1104
+ };
1105
+ },
1106
+ checkPointStmt(_p) {
1107
+ return {};
1108
+ },
1109
+ createSchemaStmt(_p) {
1110
+ return {
1111
+ schemaname: _p?.schemaname,
1112
+ authrole: _p?.authrole,
1113
+ schemaElts: _p?.schemaElts,
1114
+ if_not_exists: _p?.if_not_exists
1115
+ };
1116
+ },
1117
+ alterDatabaseStmt(_p) {
1118
+ return {
1119
+ dbname: _p?.dbname,
1120
+ options: _p?.options
1121
+ };
1122
+ },
1123
+ alterDatabaseSetStmt(_p) {
1124
+ return {
1125
+ dbname: _p?.dbname,
1126
+ setstmt: _p?.setstmt
1127
+ };
1128
+ },
1129
+ alterRoleSetStmt(_p) {
1130
+ return {
1131
+ role: _p?.role,
1132
+ database: _p?.database,
1133
+ setstmt: _p?.setstmt
1134
+ };
1135
+ },
1136
+ createConversionStmt(_p) {
1137
+ return {
1138
+ conversion_name: _p?.conversion_name,
1139
+ for_encoding_name: _p?.for_encoding_name,
1140
+ to_encoding_name: _p?.to_encoding_name,
1141
+ func_name: _p?.func_name,
1142
+ def: _p?.def
1143
+ };
1144
+ },
1145
+ createCastStmt(_p) {
1146
+ return {
1147
+ sourcetype: _p?.sourcetype,
1148
+ targettype: _p?.targettype,
1149
+ func: _p?.func,
1150
+ context: _p?.context,
1151
+ inout: _p?.inout
1152
+ };
1153
+ },
1154
+ createOpClassStmt(_p) {
1155
+ return {
1156
+ opclassname: _p?.opclassname,
1157
+ opfamilyname: _p?.opfamilyname,
1158
+ amname: _p?.amname,
1159
+ datatype: _p?.datatype,
1160
+ items: _p?.items,
1161
+ isDefault: _p?.isDefault
1162
+ };
1163
+ },
1164
+ createOpFamilyStmt(_p) {
1165
+ return {
1166
+ opfamilyname: _p?.opfamilyname,
1167
+ amname: _p?.amname
1168
+ };
1169
+ },
1170
+ alterOpFamilyStmt(_p) {
1171
+ return {
1172
+ opfamilyname: _p?.opfamilyname,
1173
+ amname: _p?.amname,
1174
+ isDrop: _p?.isDrop,
1175
+ items: _p?.items
1176
+ };
1177
+ },
1178
+ prepareStmt(_p) {
1179
+ return {
1180
+ name: _p?.name,
1181
+ argtypes: _p?.argtypes,
1182
+ query: _p?.query
1183
+ };
1184
+ },
1185
+ executeStmt(_p) {
1186
+ return {
1187
+ name: _p?.name,
1188
+ params: _p?.params
1189
+ };
1190
+ },
1191
+ deallocateStmt(_p) {
1192
+ return {
1193
+ name: _p?.name
1194
+ };
1195
+ },
1196
+ declareCursorStmt(_p) {
1197
+ return {
1198
+ portalname: _p?.portalname,
1199
+ options: _p?.options,
1200
+ query: _p?.query
1201
+ };
1202
+ },
1203
+ createTableSpaceStmt(_p) {
1204
+ return {
1205
+ tablespacename: _p?.tablespacename,
1206
+ owner: _p?.owner,
1207
+ location: _p?.location,
1208
+ options: _p?.options
1209
+ };
1210
+ },
1211
+ dropTableSpaceStmt(_p) {
1212
+ return {
1213
+ tablespacename: _p?.tablespacename,
1214
+ missing_ok: _p?.missing_ok
1215
+ };
1216
+ },
1217
+ alterObjectDependsStmt(_p) {
1218
+ return {
1219
+ objectType: _p?.objectType,
1220
+ relation: _p?.relation,
1221
+ object: _p?.object,
1222
+ extname: _p?.extname,
1223
+ remove: _p?.remove
1224
+ };
1225
+ },
1226
+ alterObjectSchemaStmt(_p) {
1227
+ return {
1228
+ objectType: _p?.objectType,
1229
+ relation: _p?.relation,
1230
+ object: _p?.object,
1231
+ newschema: _p?.newschema,
1232
+ missing_ok: _p?.missing_ok
1233
+ };
1234
+ },
1235
+ alterOwnerStmt(_p) {
1236
+ return {
1237
+ objectType: _p?.objectType,
1238
+ relation: _p?.relation,
1239
+ object: _p?.object,
1240
+ newowner: _p?.newowner
1241
+ };
1242
+ },
1243
+ alterOperatorStmt(_p) {
1244
+ return {
1245
+ opername: _p?.opername,
1246
+ options: _p?.options
1247
+ };
1248
+ },
1249
+ alterTypeStmt(_p) {
1250
+ return {
1251
+ typeName: _p?.typeName,
1252
+ options: _p?.options
1253
+ };
1254
+ },
1255
+ dropOwnedStmt(_p) {
1256
+ return {
1257
+ roles: _p?.roles,
1258
+ behavior: _p?.behavior
1259
+ };
1260
+ },
1261
+ reassignOwnedStmt(_p) {
1262
+ return {
1263
+ roles: _p?.roles,
1264
+ newrole: _p?.newrole
1265
+ };
1266
+ },
1267
+ compositeTypeStmt(_p) {
1268
+ return {
1269
+ typevar: _p?.typevar,
1270
+ coldeflist: _p?.coldeflist
1271
+ };
1272
+ },
1273
+ createEnumStmt(_p) {
1274
+ return {
1275
+ typeName: _p?.typeName,
1276
+ vals: _p?.vals
1277
+ };
1278
+ },
1279
+ createRangeStmt(_p) {
1280
+ return {
1281
+ typeName: _p?.typeName,
1282
+ params: _p?.params
1283
+ };
1284
+ },
1285
+ alterEnumStmt(_p) {
1286
+ return {
1287
+ typeName: _p?.typeName,
1288
+ oldVal: _p?.oldVal,
1289
+ newVal: _p?.newVal,
1290
+ newValNeighbor: _p?.newValNeighbor,
1291
+ newValIsAfter: _p?.newValIsAfter,
1292
+ skipIfNewValExists: _p?.skipIfNewValExists
1293
+ };
1294
+ },
1295
+ altertsDictionaryStmt(_p) {
1296
+ return {
1297
+ dictname: _p?.dictname,
1298
+ options: _p?.options
1299
+ };
1300
+ },
1301
+ altertsConfigurationStmt(_p) {
1302
+ return {
1303
+ kind: _p?.kind,
1304
+ cfgname: _p?.cfgname,
1305
+ tokentype: _p?.tokentype,
1306
+ dicts: _p?.dicts,
1307
+ override: _p?.override,
1308
+ replace: _p?.replace,
1309
+ missing_ok: _p?.missing_ok
1310
+ };
1311
+ },
1312
+ createFdwStmt(_p) {
1313
+ return {
1314
+ fdwname: _p?.fdwname,
1315
+ func_options: _p?.func_options,
1316
+ options: _p?.options
1317
+ };
1318
+ },
1319
+ alterFdwStmt(_p) {
1320
+ return {
1321
+ fdwname: _p?.fdwname,
1322
+ func_options: _p?.func_options,
1323
+ options: _p?.options
1324
+ };
1325
+ },
1326
+ createForeignServerStmt(_p) {
1327
+ return {
1328
+ servername: _p?.servername,
1329
+ servertype: _p?.servertype,
1330
+ version: _p?.version,
1331
+ fdwname: _p?.fdwname,
1332
+ if_not_exists: _p?.if_not_exists,
1333
+ options: _p?.options
1334
+ };
1335
+ },
1336
+ alterForeignServerStmt(_p) {
1337
+ return {
1338
+ servername: _p?.servername,
1339
+ version: _p?.version,
1340
+ options: _p?.options,
1341
+ has_version: _p?.has_version
1342
+ };
1343
+ },
1344
+ createUserMappingStmt(_p) {
1345
+ return {
1346
+ user: _p?.user,
1347
+ servername: _p?.servername,
1348
+ if_not_exists: _p?.if_not_exists,
1349
+ options: _p?.options
1350
+ };
1351
+ },
1352
+ alterUserMappingStmt(_p) {
1353
+ return {
1354
+ user: _p?.user,
1355
+ servername: _p?.servername,
1356
+ options: _p?.options
1357
+ };
1358
+ },
1359
+ dropUserMappingStmt(_p) {
1360
+ return {
1361
+ user: _p?.user,
1362
+ servername: _p?.servername,
1363
+ missing_ok: _p?.missing_ok
1364
+ };
1365
+ },
1366
+ alterTableSpaceOptionsStmt(_p) {
1367
+ return {
1368
+ tablespacename: _p?.tablespacename,
1369
+ options: _p?.options,
1370
+ isReset: _p?.isReset
1371
+ };
1372
+ },
1373
+ alterTableMoveAllStmt(_p) {
1374
+ return {
1375
+ orig_tablespacename: _p?.orig_tablespacename,
1376
+ objtype: _p?.objtype,
1377
+ roles: _p?.roles,
1378
+ new_tablespacename: _p?.new_tablespacename,
1379
+ nowait: _p?.nowait
1380
+ };
1381
+ },
1382
+ secLabelStmt(_p) {
1383
+ return {
1384
+ objtype: _p?.objtype,
1385
+ object: _p?.object,
1386
+ provider: _p?.provider,
1387
+ label: _p?.label
1388
+ };
1389
+ },
1390
+ createForeignTableStmt(_p) {
1391
+ return {
1392
+ base: _p?.base,
1393
+ servername: _p?.servername,
1394
+ options: _p?.options
1395
+ };
1396
+ },
1397
+ importForeignSchemaStmt(_p) {
1398
+ return {
1399
+ server_name: _p?.server_name,
1400
+ remote_schema: _p?.remote_schema,
1401
+ local_schema: _p?.local_schema,
1402
+ list_type: _p?.list_type,
1403
+ table_list: _p?.table_list,
1404
+ options: _p?.options
1405
+ };
1406
+ },
1407
+ createExtensionStmt(_p) {
1408
+ return {
1409
+ extname: _p?.extname,
1410
+ if_not_exists: _p?.if_not_exists,
1411
+ options: _p?.options
1412
+ };
1413
+ },
1414
+ alterExtensionStmt(_p) {
1415
+ return {
1416
+ extname: _p?.extname,
1417
+ options: _p?.options
1418
+ };
1419
+ },
1420
+ alterExtensionContentsStmt(_p) {
1421
+ return {
1422
+ extname: _p?.extname,
1423
+ action: _p?.action,
1424
+ objtype: _p?.objtype,
1425
+ object: _p?.object
1426
+ };
1427
+ },
1428
+ createEventTrigStmt(_p) {
1429
+ return {
1430
+ trigname: _p?.trigname,
1431
+ eventname: _p?.eventname,
1432
+ whenclause: _p?.whenclause,
1433
+ funcname: _p?.funcname
1434
+ };
1435
+ },
1436
+ alterEventTrigStmt(_p) {
1437
+ return {
1438
+ trigname: _p?.trigname,
1439
+ tgenabled: _p?.tgenabled
1440
+ };
1441
+ },
1442
+ refreshMatViewStmt(_p) {
1443
+ return {
1444
+ concurrent: _p?.concurrent,
1445
+ skipData: _p?.skipData,
1446
+ relation: _p?.relation
1447
+ };
1448
+ },
1449
+ replicaIdentityStmt(_p) {
1450
+ return {
1451
+ identity_type: _p?.identity_type,
1452
+ name: _p?.name
1453
+ };
1454
+ },
1455
+ alterSystemStmt(_p) {
1456
+ return {
1457
+ setstmt: _p?.setstmt
1458
+ };
1459
+ },
1460
+ createPolicyStmt(_p) {
1461
+ return {
1462
+ policy_name: _p?.policy_name,
1463
+ table: _p?.table,
1464
+ cmd_name: _p?.cmd_name,
1465
+ permissive: _p?.permissive,
1466
+ roles: _p?.roles,
1467
+ qual: _p?.qual,
1468
+ with_check: _p?.with_check
1469
+ };
1470
+ },
1471
+ alterPolicyStmt(_p) {
1472
+ return {
1473
+ policy_name: _p?.policy_name,
1474
+ table: _p?.table,
1475
+ roles: _p?.roles,
1476
+ qual: _p?.qual,
1477
+ with_check: _p?.with_check
1478
+ };
1479
+ },
1480
+ createTransformStmt(_p) {
1481
+ return {
1482
+ replace: _p?.replace,
1483
+ type_name: _p?.type_name,
1484
+ lang: _p?.lang,
1485
+ fromsql: _p?.fromsql,
1486
+ tosql: _p?.tosql
1487
+ };
1488
+ },
1489
+ createAmStmt(_p) {
1490
+ return {
1491
+ amname: _p?.amname,
1492
+ handler_name: _p?.handler_name,
1493
+ amtype: _p?.amtype
1494
+ };
1495
+ },
1496
+ createPublicationStmt(_p) {
1497
+ return {
1498
+ pubname: _p?.pubname,
1499
+ options: _p?.options,
1500
+ tables: _p?.tables,
1501
+ for_all_tables: _p?.for_all_tables
1502
+ };
1503
+ },
1504
+ alterPublicationStmt(_p) {
1505
+ return {
1506
+ pubname: _p?.pubname,
1507
+ options: _p?.options,
1508
+ tables: _p?.tables,
1509
+ for_all_tables: _p?.for_all_tables,
1510
+ tableAction: _p?.tableAction
1511
+ };
1512
+ },
1513
+ createSubscriptionStmt(_p) {
1514
+ return {
1515
+ subname: _p?.subname,
1516
+ conninfo: _p?.conninfo,
1517
+ publication: _p?.publication,
1518
+ options: _p?.options
1519
+ };
1520
+ },
1521
+ alterSubscriptionStmt(_p) {
1522
+ return {
1523
+ kind: _p?.kind,
1524
+ subname: _p?.subname,
1525
+ conninfo: _p?.conninfo,
1526
+ publication: _p?.publication,
1527
+ options: _p?.options
1528
+ };
1529
+ },
1530
+ dropSubscriptionStmt(_p) {
1531
+ return {
1532
+ subname: _p?.subname,
1533
+ missing_ok: _p?.missing_ok,
1534
+ behavior: _p?.behavior
1535
+ };
1536
+ },
1537
+ createStatsStmt(_p) {
1538
+ return {
1539
+ defnames: _p?.defnames,
1540
+ stat_types: _p?.stat_types,
1541
+ exprs: _p?.exprs,
1542
+ relations: _p?.relations,
1543
+ stxcomment: _p?.stxcomment,
1544
+ if_not_exists: _p?.if_not_exists
1545
+ };
1546
+ },
1547
+ alterCollationStmt(_p) {
1548
+ return {
1549
+ collname: _p?.collname
1550
+ };
1551
+ },
1552
+ callStmt(_p) {
1553
+ return {
1554
+ funccall: _p?.funccall,
1555
+ funcexpr: _p?.funcexpr
1556
+ };
1557
+ },
1558
+ alterStatsStmt(_p) {
1559
+ return {
1560
+ defnames: _p?.defnames,
1561
+ stxstattarget: _p?.stxstattarget,
1562
+ missing_ok: _p?.missing_ok
1563
+ };
1564
+ },
1565
+ aExpr(_p) {
1566
+ return {
1567
+ kind: _p?.kind,
1568
+ name: _p?.name,
1569
+ lexpr: _p?.lexpr,
1570
+ rexpr: _p?.rexpr,
1571
+ location: _p?.location
1572
+ };
1573
+ },
1574
+ columnRef(_p) {
1575
+ return {
1576
+ fields: _p?.fields,
1577
+ location: _p?.location
1578
+ };
1579
+ },
1580
+ paramRef(_p) {
1581
+ return {
1582
+ number: _p?.number,
1583
+ location: _p?.location
1584
+ };
1585
+ },
1586
+ aConst(_p) {
1587
+ return {
1588
+ val: _p?.val,
1589
+ location: _p?.location
1590
+ };
1591
+ },
1592
+ funcCall(_p) {
1593
+ return {
1594
+ funcname: _p?.funcname,
1595
+ args: _p?.args,
1596
+ agg_order: _p?.agg_order,
1597
+ agg_filter: _p?.agg_filter,
1598
+ agg_within_group: _p?.agg_within_group,
1599
+ agg_star: _p?.agg_star,
1600
+ agg_distinct: _p?.agg_distinct,
1601
+ func_variadic: _p?.func_variadic,
1602
+ over: _p?.over,
1603
+ location: _p?.location
1604
+ };
1605
+ },
1606
+ aStar(_p) {
1607
+ return {};
1608
+ },
1609
+ aIndices(_p) {
1610
+ return {
1611
+ is_slice: _p?.is_slice,
1612
+ lidx: _p?.lidx,
1613
+ uidx: _p?.uidx
1614
+ };
1615
+ },
1616
+ aIndirection(_p) {
1617
+ return {
1618
+ arg: _p?.arg,
1619
+ indirection: _p?.indirection
1620
+ };
1621
+ },
1622
+ aArrayExpr(_p) {
1623
+ return {
1624
+ elements: _p?.elements,
1625
+ location: _p?.location
1626
+ };
1627
+ },
1628
+ resTarget(_p) {
1629
+ return {
1630
+ name: _p?.name,
1631
+ indirection: _p?.indirection,
1632
+ val: _p?.val,
1633
+ location: _p?.location
1634
+ };
1635
+ },
1636
+ multiAssignRef(_p) {
1637
+ return {
1638
+ source: _p?.source,
1639
+ colno: _p?.colno,
1640
+ ncolumns: _p?.ncolumns
1641
+ };
1642
+ },
1643
+ typeCast(_p) {
1644
+ return {
1645
+ arg: _p?.arg,
1646
+ typeName: _p?.typeName,
1647
+ location: _p?.location
1648
+ };
1649
+ },
1650
+ collateClause(_p) {
1651
+ return {
1652
+ arg: _p?.arg,
1653
+ collname: _p?.collname,
1654
+ location: _p?.location
1655
+ };
1656
+ },
1657
+ sortBy(_p) {
1658
+ return {
1659
+ node: _p?.node,
1660
+ sortby_dir: _p?.sortby_dir,
1661
+ sortby_nulls: _p?.sortby_nulls,
1662
+ useOp: _p?.useOp,
1663
+ location: _p?.location
1664
+ };
1665
+ },
1666
+ windowDef(_p) {
1667
+ return {
1668
+ name: _p?.name,
1669
+ refname: _p?.refname,
1670
+ partitionClause: _p?.partitionClause,
1671
+ orderClause: _p?.orderClause,
1672
+ frameOptions: _p?.frameOptions,
1673
+ startOffset: _p?.startOffset,
1674
+ endOffset: _p?.endOffset,
1675
+ location: _p?.location
1676
+ };
1677
+ },
1678
+ rangeSubselect(_p) {
1679
+ return {
1680
+ lateral: _p?.lateral,
1681
+ subquery: _p?.subquery,
1682
+ alias: _p?.alias
1683
+ };
1684
+ },
1685
+ rangeFunction(_p) {
1686
+ return {
1687
+ lateral: _p?.lateral,
1688
+ ordinality: _p?.ordinality,
1689
+ is_rowsfrom: _p?.is_rowsfrom,
1690
+ functions: _p?.functions,
1691
+ alias: _p?.alias,
1692
+ coldeflist: _p?.coldeflist
1693
+ };
1694
+ },
1695
+ rangeTableSample(_p) {
1696
+ return {
1697
+ relation: _p?.relation,
1698
+ method: _p?.method,
1699
+ args: _p?.args,
1700
+ repeatable: _p?.repeatable,
1701
+ location: _p?.location
1702
+ };
1703
+ },
1704
+ rangeTableFunc(_p) {
1705
+ return {
1706
+ lateral: _p?.lateral,
1707
+ docexpr: _p?.docexpr,
1708
+ rowexpr: _p?.rowexpr,
1709
+ namespaces: _p?.namespaces,
1710
+ columns: _p?.columns,
1711
+ alias: _p?.alias,
1712
+ location: _p?.location
1713
+ };
1714
+ },
1715
+ rangeTableFuncCol(_p) {
1716
+ return {
1717
+ colname: _p?.colname,
1718
+ typeName: _p?.typeName,
1719
+ for_ordinality: _p?.for_ordinality,
1720
+ is_not_null: _p?.is_not_null,
1721
+ colexpr: _p?.colexpr,
1722
+ coldefexpr: _p?.coldefexpr,
1723
+ location: _p?.location
1724
+ };
1725
+ },
1726
+ typeName(_p) {
1727
+ return {
1728
+ names: _p?.names,
1729
+ typeOid: _p?.typeOid,
1730
+ setof: _p?.setof,
1731
+ pct_type: _p?.pct_type,
1732
+ typmods: _p?.typmods,
1733
+ typemod: _p?.typemod,
1734
+ arrayBounds: _p?.arrayBounds,
1735
+ location: _p?.location
1736
+ };
1737
+ },
1738
+ columnDef(_p) {
1739
+ return {
1740
+ colname: _p?.colname,
1741
+ typeName: _p?.typeName,
1742
+ inhcount: _p?.inhcount,
1743
+ is_local: _p?.is_local,
1744
+ is_not_null: _p?.is_not_null,
1745
+ is_from_type: _p?.is_from_type,
1746
+ storage: _p?.storage,
1747
+ raw_default: _p?.raw_default,
1748
+ cooked_default: _p?.cooked_default,
1749
+ identity: _p?.identity,
1750
+ identitySequence: _p?.identitySequence,
1751
+ generated: _p?.generated,
1752
+ collClause: _p?.collClause,
1753
+ collOid: _p?.collOid,
1754
+ constraints: _p?.constraints,
1755
+ fdwoptions: _p?.fdwoptions,
1756
+ location: _p?.location
1757
+ };
1758
+ },
1759
+ indexElem(_p) {
1760
+ return {
1761
+ name: _p?.name,
1762
+ expr: _p?.expr,
1763
+ indexcolname: _p?.indexcolname,
1764
+ collation: _p?.collation,
1765
+ opclass: _p?.opclass,
1766
+ opclassopts: _p?.opclassopts,
1767
+ ordering: _p?.ordering,
1768
+ nulls_ordering: _p?.nulls_ordering
1769
+ };
1770
+ },
1771
+ constraint(_p) {
1772
+ return {
1773
+ contype: _p?.contype,
1774
+ conname: _p?.conname,
1775
+ deferrable: _p?.deferrable,
1776
+ initdeferred: _p?.initdeferred,
1777
+ location: _p?.location,
1778
+ is_no_inherit: _p?.is_no_inherit,
1779
+ raw_expr: _p?.raw_expr,
1780
+ cooked_expr: _p?.cooked_expr,
1781
+ generated_when: _p?.generated_when,
1782
+ keys: _p?.keys,
1783
+ including: _p?.including,
1784
+ exclusions: _p?.exclusions,
1785
+ options: _p?.options,
1786
+ indexname: _p?.indexname,
1787
+ indexspace: _p?.indexspace,
1788
+ reset_default_tblspc: _p?.reset_default_tblspc,
1789
+ access_method: _p?.access_method,
1790
+ where_clause: _p?.where_clause,
1791
+ pktable: _p?.pktable,
1792
+ fk_attrs: _p?.fk_attrs,
1793
+ pk_attrs: _p?.pk_attrs,
1794
+ fk_matchtype: _p?.fk_matchtype,
1795
+ fk_upd_action: _p?.fk_upd_action,
1796
+ fk_del_action: _p?.fk_del_action,
1797
+ old_conpfeqop: _p?.old_conpfeqop,
1798
+ old_pktable_oid: _p?.old_pktable_oid,
1799
+ skip_validation: _p?.skip_validation,
1800
+ initially_valid: _p?.initially_valid
1801
+ };
1802
+ },
1803
+ defElem(_p) {
1804
+ return {
1805
+ defnamespace: _p?.defnamespace,
1806
+ defname: _p?.defname,
1807
+ arg: _p?.arg,
1808
+ defaction: _p?.defaction,
1809
+ location: _p?.location
1810
+ };
1811
+ },
1812
+ rangeTblEntry(_p) {
1813
+ return {
1814
+ rtekind: _p?.rtekind,
1815
+ relid: _p?.relid,
1816
+ relkind: _p?.relkind,
1817
+ rellockmode: _p?.rellockmode,
1818
+ tablesample: _p?.tablesample,
1819
+ subquery: _p?.subquery,
1820
+ security_barrier: _p?.security_barrier,
1821
+ jointype: _p?.jointype,
1822
+ joinmergedcols: _p?.joinmergedcols,
1823
+ joinaliasvars: _p?.joinaliasvars,
1824
+ joinleftcols: _p?.joinleftcols,
1825
+ joinrightcols: _p?.joinrightcols,
1826
+ functions: _p?.functions,
1827
+ funcordinality: _p?.funcordinality,
1828
+ tablefunc: _p?.tablefunc,
1829
+ values_lists: _p?.values_lists,
1830
+ ctename: _p?.ctename,
1831
+ ctelevelsup: _p?.ctelevelsup,
1832
+ self_reference: _p?.self_reference,
1833
+ coltypes: _p?.coltypes,
1834
+ coltypmods: _p?.coltypmods,
1835
+ colcollations: _p?.colcollations,
1836
+ enrname: _p?.enrname,
1837
+ enrtuples: _p?.enrtuples,
1838
+ alias: _p?.alias,
1839
+ eref: _p?.eref,
1840
+ lateral: _p?.lateral,
1841
+ inh: _p?.inh,
1842
+ inFromCl: _p?.inFromCl,
1843
+ requiredPerms: _p?.requiredPerms,
1844
+ checkAsUser: _p?.checkAsUser,
1845
+ selectedCols: _p?.selectedCols,
1846
+ insertedCols: _p?.insertedCols,
1847
+ updatedCols: _p?.updatedCols,
1848
+ extraUpdatedCols: _p?.extraUpdatedCols,
1849
+ securityQuals: _p?.securityQuals
1850
+ };
1851
+ },
1852
+ rangeTblFunction(_p) {
1853
+ return {
1854
+ funcexpr: _p?.funcexpr,
1855
+ funccolcount: _p?.funccolcount,
1856
+ funccolnames: _p?.funccolnames,
1857
+ funccoltypes: _p?.funccoltypes,
1858
+ funccoltypmods: _p?.funccoltypmods,
1859
+ funccolcollations: _p?.funccolcollations,
1860
+ funcparams: _p?.funcparams
1861
+ };
1862
+ },
1863
+ tableSampleClause(_p) {
1864
+ return {
1865
+ tsmhandler: _p?.tsmhandler,
1866
+ args: _p?.args,
1867
+ repeatable: _p?.repeatable
1868
+ };
1869
+ },
1870
+ withCheckOption(_p) {
1871
+ return {
1872
+ kind: _p?.kind,
1873
+ relname: _p?.relname,
1874
+ polname: _p?.polname,
1875
+ qual: _p?.qual,
1876
+ cascaded: _p?.cascaded
1877
+ };
1878
+ },
1879
+ sortGroupClause(_p) {
1880
+ return {
1881
+ tleSortGroupRef: _p?.tleSortGroupRef,
1882
+ eqop: _p?.eqop,
1883
+ sortop: _p?.sortop,
1884
+ nulls_first: _p?.nulls_first,
1885
+ hashable: _p?.hashable
1886
+ };
1887
+ },
1888
+ groupingSet(_p) {
1889
+ return {
1890
+ kind: _p?.kind,
1891
+ content: _p?.content,
1892
+ location: _p?.location
1893
+ };
1894
+ },
1895
+ windowClause(_p) {
1896
+ return {
1897
+ name: _p?.name,
1898
+ refname: _p?.refname,
1899
+ partitionClause: _p?.partitionClause,
1900
+ orderClause: _p?.orderClause,
1901
+ frameOptions: _p?.frameOptions,
1902
+ startOffset: _p?.startOffset,
1903
+ endOffset: _p?.endOffset,
1904
+ startInRangeFunc: _p?.startInRangeFunc,
1905
+ endInRangeFunc: _p?.endInRangeFunc,
1906
+ inRangeColl: _p?.inRangeColl,
1907
+ inRangeAsc: _p?.inRangeAsc,
1908
+ inRangeNullsFirst: _p?.inRangeNullsFirst,
1909
+ winref: _p?.winref,
1910
+ copiedOrder: _p?.copiedOrder
1911
+ };
1912
+ },
1913
+ objectWithArgs(_p) {
1914
+ return {
1915
+ objname: _p?.objname,
1916
+ objargs: _p?.objargs,
1917
+ args_unspecified: _p?.args_unspecified
1918
+ };
1919
+ },
1920
+ accessPriv(_p) {
1921
+ return {
1922
+ priv_name: _p?.priv_name,
1923
+ cols: _p?.cols
1924
+ };
1925
+ },
1926
+ createOpClassItem(_p) {
1927
+ return {
1928
+ itemtype: _p?.itemtype,
1929
+ name: _p?.name,
1930
+ number: _p?.number,
1931
+ order_family: _p?.order_family,
1932
+ class_args: _p?.class_args,
1933
+ storedtype: _p?.storedtype
1934
+ };
1935
+ },
1936
+ tableLikeClause(_p) {
1937
+ return {
1938
+ relation: _p?.relation,
1939
+ options: _p?.options,
1940
+ relationOid: _p?.relationOid
1941
+ };
1942
+ },
1943
+ functionParameter(_p) {
1944
+ return {
1945
+ name: _p?.name,
1946
+ argType: _p?.argType,
1947
+ mode: _p?.mode,
1948
+ defexpr: _p?.defexpr
1949
+ };
1950
+ },
1951
+ lockingClause(_p) {
1952
+ return {
1953
+ lockedRels: _p?.lockedRels,
1954
+ strength: _p?.strength,
1955
+ waitPolicy: _p?.waitPolicy
1956
+ };
1957
+ },
1958
+ rowMarkClause(_p) {
1959
+ return {
1960
+ rti: _p?.rti,
1961
+ strength: _p?.strength,
1962
+ waitPolicy: _p?.waitPolicy,
1963
+ pushedDown: _p?.pushedDown
1964
+ };
1965
+ },
1966
+ xmlSerialize(_p) {
1967
+ return {
1968
+ xmloption: _p?.xmloption,
1969
+ expr: _p?.expr,
1970
+ typeName: _p?.typeName,
1971
+ location: _p?.location
1972
+ };
1973
+ },
1974
+ withClause(_p) {
1975
+ return {
1976
+ ctes: _p?.ctes,
1977
+ recursive: _p?.recursive,
1978
+ location: _p?.location
1979
+ };
1980
+ },
1981
+ inferClause(_p) {
1982
+ return {
1983
+ indexElems: _p?.indexElems,
1984
+ whereClause: _p?.whereClause,
1985
+ conname: _p?.conname,
1986
+ location: _p?.location
1987
+ };
1988
+ },
1989
+ onConflictClause(_p) {
1990
+ return {
1991
+ action: _p?.action,
1992
+ infer: _p?.infer,
1993
+ targetList: _p?.targetList,
1994
+ whereClause: _p?.whereClause,
1995
+ location: _p?.location
1996
+ };
1997
+ },
1998
+ commonTableExpr(_p) {
1999
+ return {
2000
+ ctename: _p?.ctename,
2001
+ aliascolnames: _p?.aliascolnames,
2002
+ ctematerialized: _p?.ctematerialized,
2003
+ ctequery: _p?.ctequery,
2004
+ location: _p?.location,
2005
+ cterecursive: _p?.cterecursive,
2006
+ cterefcount: _p?.cterefcount,
2007
+ ctecolnames: _p?.ctecolnames,
2008
+ ctecoltypes: _p?.ctecoltypes,
2009
+ ctecoltypmods: _p?.ctecoltypmods,
2010
+ ctecolcollations: _p?.ctecolcollations
2011
+ };
2012
+ },
2013
+ roleSpec(_p) {
2014
+ return {
2015
+ roletype: _p?.roletype,
2016
+ rolename: _p?.rolename,
2017
+ location: _p?.location
2018
+ };
2019
+ },
2020
+ triggerTransition(_p) {
2021
+ return {
2022
+ name: _p?.name,
2023
+ isNew: _p?.isNew,
2024
+ isTable: _p?.isTable
2025
+ };
2026
+ },
2027
+ partitionElem(_p) {
2028
+ return {
2029
+ name: _p?.name,
2030
+ expr: _p?.expr,
2031
+ collation: _p?.collation,
2032
+ opclass: _p?.opclass,
2033
+ location: _p?.location
2034
+ };
2035
+ },
2036
+ partitionSpec(_p) {
2037
+ return {
2038
+ strategy: _p?.strategy,
2039
+ partParams: _p?.partParams,
2040
+ location: _p?.location
2041
+ };
2042
+ },
2043
+ partitionBoundSpec(_p) {
2044
+ return {
2045
+ strategy: _p?.strategy,
2046
+ is_default: _p?.is_default,
2047
+ modulus: _p?.modulus,
2048
+ remainder: _p?.remainder,
2049
+ listdatums: _p?.listdatums,
2050
+ lowerdatums: _p?.lowerdatums,
2051
+ upperdatums: _p?.upperdatums,
2052
+ location: _p?.location
2053
+ };
2054
+ },
2055
+ partitionRangeDatum(_p) {
2056
+ return {
2057
+ kind: _p?.kind,
2058
+ value: _p?.value,
2059
+ location: _p?.location
2060
+ };
2061
+ },
2062
+ partitionCmd(_p) {
2063
+ return {
2064
+ name: _p?.name,
2065
+ bound: _p?.bound
2066
+ };
2067
+ },
2068
+ vacuumRelation(_p) {
2069
+ return {
2070
+ relation: _p?.relation,
2071
+ oid: _p?.oid,
2072
+ va_cols: _p?.va_cols
2073
+ };
2074
+ },
2075
+ inlineCodeBlock(_p) {
2076
+ return {
2077
+ source_text: _p?.source_text,
2078
+ langOid: _p?.langOid,
2079
+ langIsTrusted: _p?.langIsTrusted,
2080
+ atomic: _p?.atomic
2081
+ };
2082
+ },
2083
+ callContext(_p) {
2084
+ return {
2085
+ atomic: _p?.atomic
2086
+ };
2087
+ },
2088
+ scanToken(_p) {
2089
+ return {
2090
+ start: _p?.start,
2091
+ end: _p?.end,
2092
+ token: _p?.token,
2093
+ keywordKind: _p?.keywordKind
2094
+ };
2095
+ }
2096
+ };