@pgsql/utils 13.4.0 → 13.5.1

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 ADDED
@@ -0,0 +1,2100 @@
1
+ /**
2
+ * This file was automatically generated by pg-proto-parser@1.11.0.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
4
+ * and run the pg-proto-parser generate command to regenerate this file.
5
+ */
6
+ import { 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 default {
8
+ parseResult(_p?: ParseResult): ParseResult {
9
+ return {
10
+ version: _p?.version,
11
+ stmts: _p?.stmts
12
+ };
13
+ },
14
+ scanResult(_p?: ScanResult): ScanResult {
15
+ return {
16
+ version: _p?.version,
17
+ tokens: _p?.tokens
18
+ };
19
+ },
20
+ integer(_p?: Integer): Integer {
21
+ return {
22
+ ival: _p?.ival
23
+ };
24
+ },
25
+ float(_p?: Float): Float {
26
+ return {
27
+ str: _p?.str
28
+ };
29
+ },
30
+ string(_p?: String): String {
31
+ return {
32
+ str: _p?.str
33
+ };
34
+ },
35
+ bitString(_p?: BitString): BitString {
36
+ return {
37
+ str: _p?.str
38
+ };
39
+ },
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 {
540
+ 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
549
+ };
550
+ },
551
+ rangeTblRef(_p?: RangeTblRef): RangeTblRef {
552
+ return {
553
+ rtindex: _p?.rtindex
554
+ };
555
+ },
556
+ joinExpr(_p?: JoinExpr): JoinExpr {
557
+ 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
566
+ };
567
+ },
568
+ fromExpr(_p?: FromExpr): FromExpr {
569
+ return {
570
+ fromlist: _p?.fromlist,
571
+ quals: _p?.quals
572
+ };
573
+ },
574
+ onConflictExpr(_p?: OnConflictExpr): OnConflictExpr {
575
+ 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
584
+ };
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 {
763
+ 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 {
793
+ 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
806
+ };
807
+ },
808
+ defineStmt(_p?: DefineStmt): DefineStmt {
809
+ 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
817
+ };
818
+ },
819
+ dropStmt(_p?: DropStmt): DropStmt {
820
+ return {
821
+ objects: _p?.objects,
822
+ removeType: _p?.removeType,
823
+ behavior: _p?.behavior,
824
+ missing_ok: _p?.missing_ok,
825
+ concurrent: _p?.concurrent
826
+ };
827
+ },
828
+ truncateStmt(_p?: TruncateStmt): TruncateStmt {
829
+ return {
830
+ relations: _p?.relations,
831
+ restart_seqs: _p?.restart_seqs,
832
+ behavior: _p?.behavior
833
+ };
834
+ },
835
+ commentStmt(_p?: CommentStmt): CommentStmt {
836
+ return {
837
+ objtype: _p?.objtype,
838
+ object: _p?.object,
839
+ comment: _p?.comment
840
+ };
841
+ },
842
+ fetchStmt(_p?: FetchStmt): FetchStmt {
843
+ return {
844
+ direction: _p?.direction,
845
+ howMany: _p?.howMany,
846
+ portalname: _p?.portalname,
847
+ ismove: _p?.ismove
848
+ };
849
+ },
850
+ indexStmt(_p?: IndexStmt): IndexStmt {
851
+ 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
875
+ };
876
+ },
877
+ createFunctionStmt(_p?: CreateFunctionStmt): CreateFunctionStmt {
878
+ 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
885
+ };
886
+ },
887
+ alterFunctionStmt(_p?: AlterFunctionStmt): AlterFunctionStmt {
888
+ return {
889
+ objtype: _p?.objtype,
890
+ func: _p?.func,
891
+ actions: _p?.actions
892
+ };
893
+ },
894
+ doStmt(_p?: DoStmt): DoStmt {
895
+ return {
896
+ args: _p?.args
897
+ };
898
+ },
899
+ renameStmt(_p?: RenameStmt): RenameStmt {
900
+ 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 {
912
+ 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
920
+ };
921
+ },
922
+ notifyStmt(_p?: NotifyStmt): NotifyStmt {
923
+ return {
924
+ conditionname: _p?.conditionname,
925
+ payload: _p?.payload
926
+ };
927
+ },
928
+ listenStmt(_p?: ListenStmt): ListenStmt {
929
+ return {
930
+ conditionname: _p?.conditionname
931
+ };
932
+ },
933
+ unlistenStmt(_p?: UnlistenStmt): UnlistenStmt {
934
+ return {
935
+ conditionname: _p?.conditionname
936
+ };
937
+ },
938
+ transactionStmt(_p?: TransactionStmt): TransactionStmt {
939
+ return {
940
+ kind: _p?.kind,
941
+ options: _p?.options,
942
+ savepoint_name: _p?.savepoint_name,
943
+ gid: _p?.gid,
944
+ chain: _p?.chain
945
+ };
946
+ },
947
+ viewStmt(_p?: ViewStmt): ViewStmt {
948
+ 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
955
+ };
956
+ },
957
+ loadStmt(_p?: LoadStmt): LoadStmt {
958
+ return {
959
+ filename: _p?.filename
960
+ };
961
+ },
962
+ createDomainStmt(_p?: CreateDomainStmt): CreateDomainStmt {
963
+ return {
964
+ domainname: _p?.domainname,
965
+ typeName: _p?.typeName,
966
+ collClause: _p?.collClause,
967
+ constraints: _p?.constraints
968
+ };
969
+ },
970
+ createdbStmt(_p?: CreatedbStmt): CreatedbStmt {
971
+ return {
972
+ dbname: _p?.dbname,
973
+ options: _p?.options
974
+ };
975
+ },
976
+ dropdbStmt(_p?: DropdbStmt): DropdbStmt {
977
+ return {
978
+ dbname: _p?.dbname,
979
+ missing_ok: _p?.missing_ok,
980
+ options: _p?.options
981
+ };
982
+ },
983
+ vacuumStmt(_p?: VacuumStmt): VacuumStmt {
984
+ return {
985
+ options: _p?.options,
986
+ rels: _p?.rels,
987
+ is_vacuumcmd: _p?.is_vacuumcmd
988
+ };
989
+ },
990
+ explainStmt(_p?: ExplainStmt): ExplainStmt {
991
+ return {
992
+ query: _p?.query,
993
+ options: _p?.options
994
+ };
995
+ },
996
+ createTableAsStmt(_p?: CreateTableAsStmt): CreateTableAsStmt {
997
+ 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
1003
+ };
1004
+ },
1005
+ createSeqStmt(_p?: CreateSeqStmt): CreateSeqStmt {
1006
+ 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
1012
+ };
1013
+ },
1014
+ alterSeqStmt(_p?: AlterSeqStmt): AlterSeqStmt {
1015
+ return {
1016
+ sequence: _p?.sequence,
1017
+ options: _p?.options,
1018
+ for_identity: _p?.for_identity,
1019
+ missing_ok: _p?.missing_ok
1020
+ };
1021
+ },
1022
+ variableSetStmt(_p?: VariableSetStmt): VariableSetStmt {
1023
+ return {
1024
+ kind: _p?.kind,
1025
+ name: _p?.name,
1026
+ args: _p?.args,
1027
+ is_local: _p?.is_local
1028
+ };
1029
+ },
1030
+ variableShowStmt(_p?: VariableShowStmt): VariableShowStmt {
1031
+ return {
1032
+ name: _p?.name
1033
+ };
1034
+ },
1035
+ discardStmt(_p?: DiscardStmt): DiscardStmt {
1036
+ return {
1037
+ target: _p?.target
1038
+ };
1039
+ },
1040
+ createTrigStmt(_p?: CreateTrigStmt): CreateTrigStmt {
1041
+ 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
1056
+ };
1057
+ },
1058
+ createpLangStmt(_p?: CreatePLangStmt): CreatePLangStmt {
1059
+ 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
1066
+ };
1067
+ },
1068
+ createRoleStmt(_p?: CreateRoleStmt): CreateRoleStmt {
1069
+ return {
1070
+ stmt_type: _p?.stmt_type,
1071
+ role: _p?.role,
1072
+ options: _p?.options
1073
+ };
1074
+ },
1075
+ alterRoleStmt(_p?: AlterRoleStmt): AlterRoleStmt {
1076
+ return {
1077
+ role: _p?.role,
1078
+ options: _p?.options,
1079
+ action: _p?.action
1080
+ };
1081
+ },
1082
+ dropRoleStmt(_p?: DropRoleStmt): DropRoleStmt {
1083
+ return {
1084
+ roles: _p?.roles,
1085
+ missing_ok: _p?.missing_ok
1086
+ };
1087
+ },
1088
+ lockStmt(_p?: LockStmt): LockStmt {
1089
+ return {
1090
+ relations: _p?.relations,
1091
+ mode: _p?.mode,
1092
+ nowait: _p?.nowait
1093
+ };
1094
+ },
1095
+ constraintsSetStmt(_p?: ConstraintsSetStmt): ConstraintsSetStmt {
1096
+ return {
1097
+ constraints: _p?.constraints,
1098
+ deferred: _p?.deferred
1099
+ };
1100
+ },
1101
+ reindexStmt(_p?: ReindexStmt): ReindexStmt {
1102
+ return {
1103
+ kind: _p?.kind,
1104
+ relation: _p?.relation,
1105
+ name: _p?.name,
1106
+ options: _p?.options,
1107
+ concurrent: _p?.concurrent
1108
+ };
1109
+ },
1110
+ checkPointStmt(_p?: CheckPointStmt): CheckPointStmt {
1111
+ return {};
1112
+ },
1113
+ createSchemaStmt(_p?: CreateSchemaStmt): CreateSchemaStmt {
1114
+ return {
1115
+ schemaname: _p?.schemaname,
1116
+ authrole: _p?.authrole,
1117
+ schemaElts: _p?.schemaElts,
1118
+ if_not_exists: _p?.if_not_exists
1119
+ };
1120
+ },
1121
+ alterDatabaseStmt(_p?: AlterDatabaseStmt): AlterDatabaseStmt {
1122
+ return {
1123
+ dbname: _p?.dbname,
1124
+ options: _p?.options
1125
+ };
1126
+ },
1127
+ alterDatabaseSetStmt(_p?: AlterDatabaseSetStmt): AlterDatabaseSetStmt {
1128
+ return {
1129
+ dbname: _p?.dbname,
1130
+ setstmt: _p?.setstmt
1131
+ };
1132
+ },
1133
+ alterRoleSetStmt(_p?: AlterRoleSetStmt): AlterRoleSetStmt {
1134
+ return {
1135
+ role: _p?.role,
1136
+ database: _p?.database,
1137
+ setstmt: _p?.setstmt
1138
+ };
1139
+ },
1140
+ createConversionStmt(_p?: CreateConversionStmt): CreateConversionStmt {
1141
+ 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
1147
+ };
1148
+ },
1149
+ createCastStmt(_p?: CreateCastStmt): CreateCastStmt {
1150
+ return {
1151
+ sourcetype: _p?.sourcetype,
1152
+ targettype: _p?.targettype,
1153
+ func: _p?.func,
1154
+ context: _p?.context,
1155
+ inout: _p?.inout
1156
+ };
1157
+ },
1158
+ createOpClassStmt(_p?: CreateOpClassStmt): CreateOpClassStmt {
1159
+ 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
1166
+ };
1167
+ },
1168
+ createOpFamilyStmt(_p?: CreateOpFamilyStmt): CreateOpFamilyStmt {
1169
+ return {
1170
+ opfamilyname: _p?.opfamilyname,
1171
+ amname: _p?.amname
1172
+ };
1173
+ },
1174
+ alterOpFamilyStmt(_p?: AlterOpFamilyStmt): AlterOpFamilyStmt {
1175
+ return {
1176
+ opfamilyname: _p?.opfamilyname,
1177
+ amname: _p?.amname,
1178
+ isDrop: _p?.isDrop,
1179
+ items: _p?.items
1180
+ };
1181
+ },
1182
+ prepareStmt(_p?: PrepareStmt): PrepareStmt {
1183
+ return {
1184
+ name: _p?.name,
1185
+ argtypes: _p?.argtypes,
1186
+ query: _p?.query
1187
+ };
1188
+ },
1189
+ executeStmt(_p?: ExecuteStmt): ExecuteStmt {
1190
+ return {
1191
+ name: _p?.name,
1192
+ params: _p?.params
1193
+ };
1194
+ },
1195
+ deallocateStmt(_p?: DeallocateStmt): DeallocateStmt {
1196
+ return {
1197
+ name: _p?.name
1198
+ };
1199
+ },
1200
+ declareCursorStmt(_p?: DeclareCursorStmt): DeclareCursorStmt {
1201
+ return {
1202
+ portalname: _p?.portalname,
1203
+ options: _p?.options,
1204
+ query: _p?.query
1205
+ };
1206
+ },
1207
+ createTableSpaceStmt(_p?: CreateTableSpaceStmt): CreateTableSpaceStmt {
1208
+ return {
1209
+ tablespacename: _p?.tablespacename,
1210
+ owner: _p?.owner,
1211
+ location: _p?.location,
1212
+ options: _p?.options
1213
+ };
1214
+ },
1215
+ dropTableSpaceStmt(_p?: DropTableSpaceStmt): DropTableSpaceStmt {
1216
+ return {
1217
+ tablespacename: _p?.tablespacename,
1218
+ missing_ok: _p?.missing_ok
1219
+ };
1220
+ },
1221
+ alterObjectDependsStmt(_p?: AlterObjectDependsStmt): AlterObjectDependsStmt {
1222
+ return {
1223
+ objectType: _p?.objectType,
1224
+ relation: _p?.relation,
1225
+ object: _p?.object,
1226
+ extname: _p?.extname,
1227
+ remove: _p?.remove
1228
+ };
1229
+ },
1230
+ alterObjectSchemaStmt(_p?: AlterObjectSchemaStmt): AlterObjectSchemaStmt {
1231
+ return {
1232
+ objectType: _p?.objectType,
1233
+ relation: _p?.relation,
1234
+ object: _p?.object,
1235
+ newschema: _p?.newschema,
1236
+ missing_ok: _p?.missing_ok
1237
+ };
1238
+ },
1239
+ alterOwnerStmt(_p?: AlterOwnerStmt): AlterOwnerStmt {
1240
+ return {
1241
+ objectType: _p?.objectType,
1242
+ relation: _p?.relation,
1243
+ object: _p?.object,
1244
+ newowner: _p?.newowner
1245
+ };
1246
+ },
1247
+ alterOperatorStmt(_p?: AlterOperatorStmt): AlterOperatorStmt {
1248
+ return {
1249
+ opername: _p?.opername,
1250
+ options: _p?.options
1251
+ };
1252
+ },
1253
+ alterTypeStmt(_p?: AlterTypeStmt): AlterTypeStmt {
1254
+ return {
1255
+ typeName: _p?.typeName,
1256
+ options: _p?.options
1257
+ };
1258
+ },
1259
+ dropOwnedStmt(_p?: DropOwnedStmt): DropOwnedStmt {
1260
+ return {
1261
+ roles: _p?.roles,
1262
+ behavior: _p?.behavior
1263
+ };
1264
+ },
1265
+ reassignOwnedStmt(_p?: ReassignOwnedStmt): ReassignOwnedStmt {
1266
+ return {
1267
+ roles: _p?.roles,
1268
+ newrole: _p?.newrole
1269
+ };
1270
+ },
1271
+ compositeTypeStmt(_p?: CompositeTypeStmt): CompositeTypeStmt {
1272
+ return {
1273
+ typevar: _p?.typevar,
1274
+ coldeflist: _p?.coldeflist
1275
+ };
1276
+ },
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
1297
+ };
1298
+ },
1299
+ altertsDictionaryStmt(_p?: AlterTSDictionaryStmt): AlterTSDictionaryStmt {
1300
+ return {
1301
+ dictname: _p?.dictname,
1302
+ options: _p?.options
1303
+ };
1304
+ },
1305
+ altertsConfigurationStmt(_p?: AlterTSConfigurationStmt): AlterTSConfigurationStmt {
1306
+ 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
1314
+ };
1315
+ },
1316
+ createFdwStmt(_p?: CreateFdwStmt): CreateFdwStmt {
1317
+ return {
1318
+ fdwname: _p?.fdwname,
1319
+ func_options: _p?.func_options,
1320
+ options: _p?.options
1321
+ };
1322
+ },
1323
+ alterFdwStmt(_p?: AlterFdwStmt): AlterFdwStmt {
1324
+ return {
1325
+ fdwname: _p?.fdwname,
1326
+ func_options: _p?.func_options,
1327
+ options: _p?.options
1328
+ };
1329
+ },
1330
+ createForeignServerStmt(_p?: CreateForeignServerStmt): CreateForeignServerStmt {
1331
+ 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
1338
+ };
1339
+ },
1340
+ alterForeignServerStmt(_p?: AlterForeignServerStmt): AlterForeignServerStmt {
1341
+ return {
1342
+ servername: _p?.servername,
1343
+ version: _p?.version,
1344
+ options: _p?.options,
1345
+ has_version: _p?.has_version
1346
+ };
1347
+ },
1348
+ createUserMappingStmt(_p?: CreateUserMappingStmt): CreateUserMappingStmt {
1349
+ return {
1350
+ user: _p?.user,
1351
+ servername: _p?.servername,
1352
+ if_not_exists: _p?.if_not_exists,
1353
+ options: _p?.options
1354
+ };
1355
+ },
1356
+ alterUserMappingStmt(_p?: AlterUserMappingStmt): AlterUserMappingStmt {
1357
+ return {
1358
+ user: _p?.user,
1359
+ servername: _p?.servername,
1360
+ options: _p?.options
1361
+ };
1362
+ },
1363
+ dropUserMappingStmt(_p?: DropUserMappingStmt): DropUserMappingStmt {
1364
+ return {
1365
+ user: _p?.user,
1366
+ servername: _p?.servername,
1367
+ missing_ok: _p?.missing_ok
1368
+ };
1369
+ },
1370
+ alterTableSpaceOptionsStmt(_p?: AlterTableSpaceOptionsStmt): AlterTableSpaceOptionsStmt {
1371
+ return {
1372
+ tablespacename: _p?.tablespacename,
1373
+ options: _p?.options,
1374
+ isReset: _p?.isReset
1375
+ };
1376
+ },
1377
+ alterTableMoveAllStmt(_p?: AlterTableMoveAllStmt): AlterTableMoveAllStmt {
1378
+ 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
1384
+ };
1385
+ },
1386
+ secLabelStmt(_p?: SecLabelStmt): SecLabelStmt {
1387
+ return {
1388
+ objtype: _p?.objtype,
1389
+ object: _p?.object,
1390
+ provider: _p?.provider,
1391
+ label: _p?.label
1392
+ };
1393
+ },
1394
+ createForeignTableStmt(_p?: CreateForeignTableStmt): CreateForeignTableStmt {
1395
+ return {
1396
+ base: _p?.base,
1397
+ servername: _p?.servername,
1398
+ options: _p?.options
1399
+ };
1400
+ },
1401
+ importForeignSchemaStmt(_p?: ImportForeignSchemaStmt): ImportForeignSchemaStmt {
1402
+ 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
1409
+ };
1410
+ },
1411
+ createExtensionStmt(_p?: CreateExtensionStmt): CreateExtensionStmt {
1412
+ return {
1413
+ extname: _p?.extname,
1414
+ if_not_exists: _p?.if_not_exists,
1415
+ options: _p?.options
1416
+ };
1417
+ },
1418
+ alterExtensionStmt(_p?: AlterExtensionStmt): AlterExtensionStmt {
1419
+ return {
1420
+ extname: _p?.extname,
1421
+ options: _p?.options
1422
+ };
1423
+ },
1424
+ alterExtensionContentsStmt(_p?: AlterExtensionContentsStmt): AlterExtensionContentsStmt {
1425
+ return {
1426
+ extname: _p?.extname,
1427
+ action: _p?.action,
1428
+ objtype: _p?.objtype,
1429
+ object: _p?.object
1430
+ };
1431
+ },
1432
+ createEventTrigStmt(_p?: CreateEventTrigStmt): CreateEventTrigStmt {
1433
+ return {
1434
+ trigname: _p?.trigname,
1435
+ eventname: _p?.eventname,
1436
+ whenclause: _p?.whenclause,
1437
+ funcname: _p?.funcname
1438
+ };
1439
+ },
1440
+ alterEventTrigStmt(_p?: AlterEventTrigStmt): AlterEventTrigStmt {
1441
+ return {
1442
+ trigname: _p?.trigname,
1443
+ tgenabled: _p?.tgenabled
1444
+ };
1445
+ },
1446
+ refreshMatViewStmt(_p?: RefreshMatViewStmt): RefreshMatViewStmt {
1447
+ return {
1448
+ concurrent: _p?.concurrent,
1449
+ skipData: _p?.skipData,
1450
+ relation: _p?.relation
1451
+ };
1452
+ },
1453
+ replicaIdentityStmt(_p?: ReplicaIdentityStmt): ReplicaIdentityStmt {
1454
+ return {
1455
+ identity_type: _p?.identity_type,
1456
+ name: _p?.name
1457
+ };
1458
+ },
1459
+ alterSystemStmt(_p?: AlterSystemStmt): AlterSystemStmt {
1460
+ return {
1461
+ setstmt: _p?.setstmt
1462
+ };
1463
+ },
1464
+ createPolicyStmt(_p?: CreatePolicyStmt): CreatePolicyStmt {
1465
+ 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
1473
+ };
1474
+ },
1475
+ alterPolicyStmt(_p?: AlterPolicyStmt): AlterPolicyStmt {
1476
+ 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
1482
+ };
1483
+ },
1484
+ createTransformStmt(_p?: CreateTransformStmt): CreateTransformStmt {
1485
+ return {
1486
+ replace: _p?.replace,
1487
+ type_name: _p?.type_name,
1488
+ lang: _p?.lang,
1489
+ fromsql: _p?.fromsql,
1490
+ tosql: _p?.tosql
1491
+ };
1492
+ },
1493
+ createAmStmt(_p?: CreateAmStmt): CreateAmStmt {
1494
+ return {
1495
+ amname: _p?.amname,
1496
+ handler_name: _p?.handler_name,
1497
+ amtype: _p?.amtype
1498
+ };
1499
+ },
1500
+ createPublicationStmt(_p?: CreatePublicationStmt): CreatePublicationStmt {
1501
+ return {
1502
+ pubname: _p?.pubname,
1503
+ options: _p?.options,
1504
+ tables: _p?.tables,
1505
+ for_all_tables: _p?.for_all_tables
1506
+ };
1507
+ },
1508
+ alterPublicationStmt(_p?: AlterPublicationStmt): AlterPublicationStmt {
1509
+ 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
1515
+ };
1516
+ },
1517
+ createSubscriptionStmt(_p?: CreateSubscriptionStmt): CreateSubscriptionStmt {
1518
+ return {
1519
+ subname: _p?.subname,
1520
+ conninfo: _p?.conninfo,
1521
+ publication: _p?.publication,
1522
+ options: _p?.options
1523
+ };
1524
+ },
1525
+ alterSubscriptionStmt(_p?: AlterSubscriptionStmt): AlterSubscriptionStmt {
1526
+ return {
1527
+ kind: _p?.kind,
1528
+ subname: _p?.subname,
1529
+ conninfo: _p?.conninfo,
1530
+ publication: _p?.publication,
1531
+ options: _p?.options
1532
+ };
1533
+ },
1534
+ dropSubscriptionStmt(_p?: DropSubscriptionStmt): DropSubscriptionStmt {
1535
+ 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
1630
+ };
1631
+ },
1632
+ resTarget(_p?: ResTarget): ResTarget {
1633
+ return {
1634
+ name: _p?.name,
1635
+ indirection: _p?.indirection,
1636
+ val: _p?.val,
1637
+ location: _p?.location
1638
+ };
1639
+ },
1640
+ multiAssignRef(_p?: MultiAssignRef): MultiAssignRef {
1641
+ return {
1642
+ source: _p?.source,
1643
+ colno: _p?.colno,
1644
+ ncolumns: _p?.ncolumns
1645
+ };
1646
+ },
1647
+ typeCast(_p?: TypeCast): TypeCast {
1648
+ return {
1649
+ arg: _p?.arg,
1650
+ typeName: _p?.typeName,
1651
+ location: _p?.location
1652
+ };
1653
+ },
1654
+ collateClause(_p?: CollateClause): CollateClause {
1655
+ return {
1656
+ arg: _p?.arg,
1657
+ collname: _p?.collname,
1658
+ location: _p?.location
1659
+ };
1660
+ },
1661
+ sortBy(_p?: SortBy): SortBy {
1662
+ 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
1668
+ };
1669
+ },
1670
+ windowDef(_p?: WindowDef): WindowDef {
1671
+ 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
1680
+ };
1681
+ },
1682
+ rangeSubselect(_p?: RangeSubselect): RangeSubselect {
1683
+ return {
1684
+ lateral: _p?.lateral,
1685
+ subquery: _p?.subquery,
1686
+ alias: _p?.alias
1687
+ };
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
1697
+ };
1698
+ },
1699
+ rangeTableSample(_p?: RangeTableSample): RangeTableSample {
1700
+ return {
1701
+ relation: _p?.relation,
1702
+ method: _p?.method,
1703
+ args: _p?.args,
1704
+ repeatable: _p?.repeatable,
1705
+ location: _p?.location
1706
+ };
1707
+ },
1708
+ rangeTableFunc(_p?: RangeTableFunc): RangeTableFunc {
1709
+ 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
1717
+ };
1718
+ },
1719
+ rangeTableFuncCol(_p?: RangeTableFuncCol): RangeTableFuncCol {
1720
+ 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
1728
+ };
1729
+ },
1730
+ typeName(_p?: TypeName): TypeName {
1731
+ return {
1732
+ names: _p?.names,
1733
+ typeOid: _p?.typeOid,
1734
+ setof: _p?.setof,
1735
+ pct_type: _p?.pct_type,
1736
+ typmods: _p?.typmods,
1737
+ typemod: _p?.typemod,
1738
+ arrayBounds: _p?.arrayBounds,
1739
+ location: _p?.location
1740
+ };
1741
+ },
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 {
1900
+ 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 {
1941
+ return {
1942
+ relation: _p?.relation,
1943
+ options: _p?.options,
1944
+ relationOid: _p?.relationOid
1945
+ };
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 {
1956
+ 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
1976
+ };
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
2077
+ };
2078
+ },
2079
+ inlineCodeBlock(_p?: InlineCodeBlock): InlineCodeBlock {
2080
+ return {
2081
+ source_text: _p?.source_text,
2082
+ langOid: _p?.langOid,
2083
+ langIsTrusted: _p?.langIsTrusted,
2084
+ atomic: _p?.atomic
2085
+ };
2086
+ },
2087
+ callContext(_p?: CallContext): CallContext {
2088
+ return {
2089
+ atomic: _p?.atomic
2090
+ };
2091
+ },
2092
+ scanToken(_p?: ScanToken): ScanToken {
2093
+ return {
2094
+ start: _p?.start,
2095
+ end: _p?.end,
2096
+ token: _p?.token,
2097
+ keywordKind: _p?.keywordKind
2098
+ };
2099
+ }
2100
+ };