@pgsql/utils 13.5.1 → 13.6.0

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