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