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