@pgsql/utils 13.4.0 → 13.5.0

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