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