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