@pgsql/transform 17.6.3 → 17.7.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.
Files changed (102) hide show
  1. package/13/enum-to-int.d.ts +7 -0
  2. package/13/enum-to-int.js +2165 -0
  3. package/13/enum-to-str.d.ts +7 -0
  4. package/13/enum-to-str.js +2165 -0
  5. package/13/enums.d.ts +14 -21
  6. package/13/runtime-schema.d.ts +17 -0
  7. package/13/runtime-schema.js +8419 -0
  8. package/13/types.d.ts +1078 -1303
  9. package/14/enum-to-int.d.ts +7 -0
  10. package/14/enum-to-int.js +2205 -0
  11. package/14/enum-to-str.d.ts +7 -0
  12. package/14/enum-to-str.js +2205 -0
  13. package/14/enums.d.ts +62 -0
  14. package/14/enums.js +2 -0
  15. package/14/runtime-schema.d.ts +17 -0
  16. package/14/runtime-schema.js +8695 -0
  17. package/14/types.d.ts +2164 -0
  18. package/14/types.js +2 -0
  19. package/15/enum-to-int.d.ts +7 -0
  20. package/15/enum-to-int.js +2255 -0
  21. package/15/enum-to-str.d.ts +7 -0
  22. package/15/enum-to-str.js +2255 -0
  23. package/15/enums.d.ts +64 -0
  24. package/15/enums.js +2 -0
  25. package/15/runtime-schema.d.ts +17 -0
  26. package/15/runtime-schema.js +8955 -0
  27. package/15/types.d.ts +2222 -0
  28. package/15/types.js +2 -0
  29. package/16/enum-to-int.d.ts +7 -0
  30. package/16/enum-to-int.js +2344 -0
  31. package/16/enum-to-str.d.ts +7 -0
  32. package/16/enum-to-str.js +2344 -0
  33. package/16/enums.d.ts +69 -0
  34. package/16/enums.js +2 -0
  35. package/16/runtime-schema.d.ts +17 -0
  36. package/16/runtime-schema.js +9339 -0
  37. package/16/types.d.ts +2328 -0
  38. package/16/types.js +2 -0
  39. package/17/enum-to-int.d.ts +7 -0
  40. package/17/enum-to-int.js +2501 -0
  41. package/17/enum-to-str.d.ts +7 -0
  42. package/17/enum-to-str.js +2501 -0
  43. package/17/runtime-schema.d.ts +17 -0
  44. package/17/runtime-schema.js +10010 -0
  45. package/esm/13/enum-to-int.js +2161 -0
  46. package/esm/13/enum-to-str.js +2161 -0
  47. package/esm/13/runtime-schema.js +8416 -0
  48. package/esm/14/enum-to-int.js +2201 -0
  49. package/esm/14/enum-to-str.js +2201 -0
  50. package/esm/14/enums.js +1 -0
  51. package/esm/14/runtime-schema.js +8692 -0
  52. package/esm/14/types.js +1 -0
  53. package/esm/15/enum-to-int.js +2251 -0
  54. package/esm/15/enum-to-str.js +2251 -0
  55. package/esm/15/enums.js +1 -0
  56. package/esm/15/runtime-schema.js +8952 -0
  57. package/esm/15/types.js +1 -0
  58. package/esm/16/enum-to-int.js +2340 -0
  59. package/esm/16/enum-to-str.js +2340 -0
  60. package/esm/16/enums.js +1 -0
  61. package/esm/16/runtime-schema.js +9336 -0
  62. package/esm/16/types.js +1 -0
  63. package/esm/17/enum-to-int.js +2497 -0
  64. package/esm/17/enum-to-str.js +2497 -0
  65. package/esm/17/runtime-schema.js +10007 -0
  66. package/esm/index.js +15 -1309
  67. package/esm/multi-version-transformer.js +60 -0
  68. package/esm/transformers/context.js +1 -0
  69. package/esm/transformers/v13-to-v14.js +2745 -0
  70. package/esm/transformers/v14-to-v15.js +1215 -0
  71. package/esm/transformers/v15-to-v16.js +2876 -0
  72. package/esm/transformers/v16-to-v17.js +1483 -0
  73. package/esm/transformers-direct/index.js +8 -0
  74. package/esm/transformers-direct/v13-to-v17/index.js +74 -0
  75. package/esm/transformers-direct/v14-to-v17/index.js +63 -0
  76. package/esm/transformers-direct/v15-to-v17/index.js +53 -0
  77. package/esm/transformers-direct/v16-to-v17/index.js +40 -0
  78. package/index.d.ts +18 -5
  79. package/index.js +29 -1311
  80. package/multi-version-transformer.d.ts +9 -0
  81. package/multi-version-transformer.js +64 -0
  82. package/package.json +8 -4
  83. package/transformers/context.d.ts +4 -0
  84. package/transformers/context.js +2 -0
  85. package/transformers/v13-to-v14.d.ts +252 -0
  86. package/transformers/v13-to-v14.js +2749 -0
  87. package/transformers/v14-to-v15.d.ts +615 -0
  88. package/transformers/v14-to-v15.js +1219 -0
  89. package/transformers/v15-to-v16.d.ts +626 -0
  90. package/transformers/v15-to-v16.js +2880 -0
  91. package/transformers/v16-to-v17.d.ts +637 -0
  92. package/transformers/v16-to-v17.js +1487 -0
  93. package/transformers-direct/index.d.ts +8 -0
  94. package/transformers-direct/index.js +15 -0
  95. package/transformers-direct/v13-to-v17/index.d.ts +27 -0
  96. package/transformers-direct/v13-to-v17/index.js +78 -0
  97. package/transformers-direct/v14-to-v17/index.d.ts +26 -0
  98. package/transformers-direct/v14-to-v17/index.js +67 -0
  99. package/transformers-direct/v15-to-v17/index.d.ts +25 -0
  100. package/transformers-direct/v15-to-v17/index.js +57 -0
  101. package/transformers-direct/v16-to-v17/index.d.ts +24 -0
  102. package/transformers-direct/v16-to-v17/index.js +44 -0
package/13/types.d.ts CHANGED
@@ -3,7 +3,7 @@
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 { OverridingKind, QuerySource, SortByDir, SortByNulls, A_Expr_Kind, RoleSpecType, DefElemAction, PartitionStrategy, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, PublicationObjSpecType, AlterPublicationAction, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, JsonEncoding, JsonFormatType, JsonConstructorType, JsonValueType, NullTestType, BoolTestType, CmdType, JoinType, AggSplit, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, KeywordKind, Token } from "./enums";
6
+ import { OverridingKind, QuerySource, SortByDir, SortByNulls, A_Expr_Kind, RoleSpecType, DefElemAction, PartitionRangeDatumKind, RTEKind, WCOKind, GroupingSetKind, CTEMaterialize, SetOperation, ObjectType, DropBehavior, AlterTableType, GrantTargetType, VariableSetKind, ConstrType, ImportForeignSchemaType, RoleStmtType, FetchDirection, FunctionParameterMode, TransactionStmtKind, ViewCheckOption, DiscardMode, ReindexObjectType, AlterTSConfigType, AlterSubscriptionType, OnCommitAction, ParamKind, CoercionContext, CoercionForm, BoolExprType, SubLinkType, RowCompareType, MinMaxOp, SQLValueFunctionOp, XmlExprOp, XmlOptionType, NullTestType, BoolTestType, CmdType, JoinType, AggSplit, OnConflictAction, LimitOption, LockClauseStrength, LockWaitPolicy, KeywordKind, Token } from "./enums";
7
7
  export type Node = {
8
8
  ParseResult: ParseResult;
9
9
  } | {
@@ -12,20 +12,18 @@ export type Node = {
12
12
  Integer: Integer;
13
13
  } | {
14
14
  Float: Float;
15
- } | {
16
- Boolean: Boolean;
17
15
  } | {
18
16
  String: String;
19
17
  } | {
20
18
  BitString: BitString;
19
+ } | {
20
+ Null: Null;
21
21
  } | {
22
22
  List: List;
23
23
  } | {
24
24
  OidList: OidList;
25
25
  } | {
26
26
  IntList: IntList;
27
- } | {
28
- A_Const: A_Const;
29
27
  } | {
30
28
  Alias: Alias;
31
29
  } | {
@@ -33,7 +31,7 @@ export type Node = {
33
31
  } | {
34
32
  TableFunc: TableFunc;
35
33
  } | {
36
- IntoClause: IntoClause;
34
+ Expr: Expr;
37
35
  } | {
38
36
  Var: Var;
39
37
  } | {
@@ -100,16 +98,6 @@ export type Node = {
100
98
  SQLValueFunction: SQLValueFunction;
101
99
  } | {
102
100
  XmlExpr: XmlExpr;
103
- } | {
104
- JsonFormat: JsonFormat;
105
- } | {
106
- JsonReturning: JsonReturning;
107
- } | {
108
- JsonValueExpr: JsonValueExpr;
109
- } | {
110
- JsonConstructorExpr: JsonConstructorExpr;
111
- } | {
112
- JsonIsPredicate: JsonIsPredicate;
113
101
  } | {
114
102
  NullTest: NullTest;
115
103
  } | {
@@ -137,187 +125,171 @@ export type Node = {
137
125
  } | {
138
126
  OnConflictExpr: OnConflictExpr;
139
127
  } | {
140
- Query: Query;
141
- } | {
142
- TypeName: TypeName;
143
- } | {
144
- ColumnRef: ColumnRef;
145
- } | {
146
- ParamRef: ParamRef;
147
- } | {
148
- A_Expr: A_Expr;
149
- } | {
150
- TypeCast: TypeCast;
151
- } | {
152
- CollateClause: CollateClause;
153
- } | {
154
- RoleSpec: RoleSpec;
155
- } | {
156
- FuncCall: FuncCall;
128
+ IntoClause: IntoClause;
157
129
  } | {
158
- A_Star: A_Star;
130
+ RawStmt: RawStmt;
159
131
  } | {
160
- A_Indices: A_Indices;
132
+ Query: Query;
161
133
  } | {
162
- A_Indirection: A_Indirection;
134
+ InsertStmt: InsertStmt;
163
135
  } | {
164
- A_ArrayExpr: A_ArrayExpr;
136
+ DeleteStmt: DeleteStmt;
165
137
  } | {
166
- ResTarget: ResTarget;
138
+ UpdateStmt: UpdateStmt;
167
139
  } | {
168
- MultiAssignRef: MultiAssignRef;
140
+ SelectStmt: SelectStmt;
169
141
  } | {
170
- SortBy: SortBy;
142
+ AlterTableStmt: AlterTableStmt;
171
143
  } | {
172
- WindowDef: WindowDef;
144
+ AlterTableCmd: AlterTableCmd;
173
145
  } | {
174
- RangeSubselect: RangeSubselect;
146
+ AlterDomainStmt: AlterDomainStmt;
175
147
  } | {
176
- RangeFunction: RangeFunction;
148
+ SetOperationStmt: SetOperationStmt;
177
149
  } | {
178
- RangeTableFunc: RangeTableFunc;
150
+ GrantStmt: GrantStmt;
179
151
  } | {
180
- RangeTableFuncCol: RangeTableFuncCol;
152
+ GrantRoleStmt: GrantRoleStmt;
181
153
  } | {
182
- RangeTableSample: RangeTableSample;
154
+ AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt;
183
155
  } | {
184
- ColumnDef: ColumnDef;
156
+ ClosePortalStmt: ClosePortalStmt;
185
157
  } | {
186
- TableLikeClause: TableLikeClause;
158
+ ClusterStmt: ClusterStmt;
187
159
  } | {
188
- IndexElem: IndexElem;
160
+ CopyStmt: CopyStmt;
189
161
  } | {
190
- DefElem: DefElem;
162
+ CreateStmt: CreateStmt;
191
163
  } | {
192
- LockingClause: LockingClause;
164
+ DefineStmt: DefineStmt;
193
165
  } | {
194
- XmlSerialize: XmlSerialize;
166
+ DropStmt: DropStmt;
195
167
  } | {
196
- PartitionElem: PartitionElem;
168
+ TruncateStmt: TruncateStmt;
197
169
  } | {
198
- PartitionSpec: PartitionSpec;
170
+ CommentStmt: CommentStmt;
199
171
  } | {
200
- PartitionBoundSpec: PartitionBoundSpec;
172
+ FetchStmt: FetchStmt;
201
173
  } | {
202
- PartitionRangeDatum: PartitionRangeDatum;
174
+ IndexStmt: IndexStmt;
203
175
  } | {
204
- PartitionCmd: PartitionCmd;
176
+ CreateFunctionStmt: CreateFunctionStmt;
205
177
  } | {
206
- RangeTblEntry: RangeTblEntry;
178
+ AlterFunctionStmt: AlterFunctionStmt;
207
179
  } | {
208
- RTEPermissionInfo: RTEPermissionInfo;
180
+ DoStmt: DoStmt;
209
181
  } | {
210
- RangeTblFunction: RangeTblFunction;
182
+ RenameStmt: RenameStmt;
211
183
  } | {
212
- TableSampleClause: TableSampleClause;
184
+ RuleStmt: RuleStmt;
213
185
  } | {
214
- WithCheckOption: WithCheckOption;
186
+ NotifyStmt: NotifyStmt;
215
187
  } | {
216
- SortGroupClause: SortGroupClause;
188
+ ListenStmt: ListenStmt;
217
189
  } | {
218
- GroupingSet: GroupingSet;
190
+ UnlistenStmt: UnlistenStmt;
219
191
  } | {
220
- WindowClause: WindowClause;
192
+ TransactionStmt: TransactionStmt;
221
193
  } | {
222
- RowMarkClause: RowMarkClause;
194
+ ViewStmt: ViewStmt;
223
195
  } | {
224
- WithClause: WithClause;
196
+ LoadStmt: LoadStmt;
225
197
  } | {
226
- InferClause: InferClause;
198
+ CreateDomainStmt: CreateDomainStmt;
227
199
  } | {
228
- OnConflictClause: OnConflictClause;
200
+ CreatedbStmt: CreatedbStmt;
229
201
  } | {
230
- CTESearchClause: CTESearchClause;
202
+ DropdbStmt: DropdbStmt;
231
203
  } | {
232
- CTECycleClause: CTECycleClause;
204
+ VacuumStmt: VacuumStmt;
233
205
  } | {
234
- CommonTableExpr: CommonTableExpr;
206
+ ExplainStmt: ExplainStmt;
235
207
  } | {
236
- MergeWhenClause: MergeWhenClause;
208
+ CreateTableAsStmt: CreateTableAsStmt;
237
209
  } | {
238
- MergeAction: MergeAction;
210
+ CreateSeqStmt: CreateSeqStmt;
239
211
  } | {
240
- TriggerTransition: TriggerTransition;
212
+ AlterSeqStmt: AlterSeqStmt;
241
213
  } | {
242
- JsonOutput: JsonOutput;
214
+ VariableSetStmt: VariableSetStmt;
243
215
  } | {
244
- JsonKeyValue: JsonKeyValue;
216
+ VariableShowStmt: VariableShowStmt;
245
217
  } | {
246
- JsonObjectConstructor: JsonObjectConstructor;
218
+ DiscardStmt: DiscardStmt;
247
219
  } | {
248
- JsonArrayConstructor: JsonArrayConstructor;
220
+ CreateTrigStmt: CreateTrigStmt;
249
221
  } | {
250
- JsonArrayQueryConstructor: JsonArrayQueryConstructor;
222
+ CreatePLangStmt: CreatePLangStmt;
251
223
  } | {
252
- JsonAggConstructor: JsonAggConstructor;
224
+ CreateRoleStmt: CreateRoleStmt;
253
225
  } | {
254
- JsonObjectAgg: JsonObjectAgg;
226
+ AlterRoleStmt: AlterRoleStmt;
255
227
  } | {
256
- JsonArrayAgg: JsonArrayAgg;
228
+ DropRoleStmt: DropRoleStmt;
257
229
  } | {
258
- RawStmt: RawStmt;
230
+ LockStmt: LockStmt;
259
231
  } | {
260
- InsertStmt: InsertStmt;
232
+ ConstraintsSetStmt: ConstraintsSetStmt;
261
233
  } | {
262
- DeleteStmt: DeleteStmt;
234
+ ReindexStmt: ReindexStmt;
263
235
  } | {
264
- UpdateStmt: UpdateStmt;
236
+ CheckPointStmt: CheckPointStmt;
265
237
  } | {
266
- MergeStmt: MergeStmt;
238
+ CreateSchemaStmt: CreateSchemaStmt;
267
239
  } | {
268
- SelectStmt: SelectStmt;
240
+ AlterDatabaseStmt: AlterDatabaseStmt;
269
241
  } | {
270
- SetOperationStmt: SetOperationStmt;
242
+ AlterDatabaseSetStmt: AlterDatabaseSetStmt;
271
243
  } | {
272
- ReturnStmt: ReturnStmt;
244
+ AlterRoleSetStmt: AlterRoleSetStmt;
273
245
  } | {
274
- PLAssignStmt: PLAssignStmt;
246
+ CreateConversionStmt: CreateConversionStmt;
275
247
  } | {
276
- CreateSchemaStmt: CreateSchemaStmt;
248
+ CreateCastStmt: CreateCastStmt;
277
249
  } | {
278
- AlterTableStmt: AlterTableStmt;
250
+ CreateOpClassStmt: CreateOpClassStmt;
279
251
  } | {
280
- ReplicaIdentityStmt: ReplicaIdentityStmt;
252
+ CreateOpFamilyStmt: CreateOpFamilyStmt;
281
253
  } | {
282
- AlterTableCmd: AlterTableCmd;
254
+ AlterOpFamilyStmt: AlterOpFamilyStmt;
283
255
  } | {
284
- AlterCollationStmt: AlterCollationStmt;
256
+ PrepareStmt: PrepareStmt;
285
257
  } | {
286
- AlterDomainStmt: AlterDomainStmt;
258
+ ExecuteStmt: ExecuteStmt;
287
259
  } | {
288
- GrantStmt: GrantStmt;
260
+ DeallocateStmt: DeallocateStmt;
289
261
  } | {
290
- ObjectWithArgs: ObjectWithArgs;
262
+ DeclareCursorStmt: DeclareCursorStmt;
291
263
  } | {
292
- AccessPriv: AccessPriv;
264
+ CreateTableSpaceStmt: CreateTableSpaceStmt;
293
265
  } | {
294
- GrantRoleStmt: GrantRoleStmt;
266
+ DropTableSpaceStmt: DropTableSpaceStmt;
295
267
  } | {
296
- AlterDefaultPrivilegesStmt: AlterDefaultPrivilegesStmt;
268
+ AlterObjectDependsStmt: AlterObjectDependsStmt;
297
269
  } | {
298
- CopyStmt: CopyStmt;
270
+ AlterObjectSchemaStmt: AlterObjectSchemaStmt;
299
271
  } | {
300
- VariableSetStmt: VariableSetStmt;
272
+ AlterOwnerStmt: AlterOwnerStmt;
301
273
  } | {
302
- VariableShowStmt: VariableShowStmt;
274
+ AlterOperatorStmt: AlterOperatorStmt;
303
275
  } | {
304
- CreateStmt: CreateStmt;
276
+ AlterTypeStmt: AlterTypeStmt;
305
277
  } | {
306
- Constraint: Constraint;
278
+ DropOwnedStmt: DropOwnedStmt;
307
279
  } | {
308
- CreateTableSpaceStmt: CreateTableSpaceStmt;
280
+ ReassignOwnedStmt: ReassignOwnedStmt;
309
281
  } | {
310
- DropTableSpaceStmt: DropTableSpaceStmt;
282
+ CompositeTypeStmt: CompositeTypeStmt;
311
283
  } | {
312
- AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt;
284
+ CreateEnumStmt: CreateEnumStmt;
313
285
  } | {
314
- AlterTableMoveAllStmt: AlterTableMoveAllStmt;
286
+ CreateRangeStmt: CreateRangeStmt;
315
287
  } | {
316
- CreateExtensionStmt: CreateExtensionStmt;
288
+ AlterEnumStmt: AlterEnumStmt;
317
289
  } | {
318
- AlterExtensionStmt: AlterExtensionStmt;
290
+ AlterTSDictionaryStmt: AlterTSDictionaryStmt;
319
291
  } | {
320
- AlterExtensionContentsStmt: AlterExtensionContentsStmt;
292
+ AlterTSConfigurationStmt: AlterTSConfigurationStmt;
321
293
  } | {
322
294
  CreateFdwStmt: CreateFdwStmt;
323
295
  } | {
@@ -326,8 +298,6 @@ export type Node = {
326
298
  CreateForeignServerStmt: CreateForeignServerStmt;
327
299
  } | {
328
300
  AlterForeignServerStmt: AlterForeignServerStmt;
329
- } | {
330
- CreateForeignTableStmt: CreateForeignTableStmt;
331
301
  } | {
332
302
  CreateUserMappingStmt: CreateUserMappingStmt;
333
303
  } | {
@@ -335,183 +305,165 @@ export type Node = {
335
305
  } | {
336
306
  DropUserMappingStmt: DropUserMappingStmt;
337
307
  } | {
338
- ImportForeignSchemaStmt: ImportForeignSchemaStmt;
308
+ AlterTableSpaceOptionsStmt: AlterTableSpaceOptionsStmt;
339
309
  } | {
340
- CreatePolicyStmt: CreatePolicyStmt;
310
+ AlterTableMoveAllStmt: AlterTableMoveAllStmt;
341
311
  } | {
342
- AlterPolicyStmt: AlterPolicyStmt;
312
+ SecLabelStmt: SecLabelStmt;
343
313
  } | {
344
- CreateAmStmt: CreateAmStmt;
314
+ CreateForeignTableStmt: CreateForeignTableStmt;
345
315
  } | {
346
- CreateTrigStmt: CreateTrigStmt;
316
+ ImportForeignSchemaStmt: ImportForeignSchemaStmt;
317
+ } | {
318
+ CreateExtensionStmt: CreateExtensionStmt;
319
+ } | {
320
+ AlterExtensionStmt: AlterExtensionStmt;
321
+ } | {
322
+ AlterExtensionContentsStmt: AlterExtensionContentsStmt;
347
323
  } | {
348
324
  CreateEventTrigStmt: CreateEventTrigStmt;
349
325
  } | {
350
326
  AlterEventTrigStmt: AlterEventTrigStmt;
351
327
  } | {
352
- CreatePLangStmt: CreatePLangStmt;
328
+ RefreshMatViewStmt: RefreshMatViewStmt;
353
329
  } | {
354
- CreateRoleStmt: CreateRoleStmt;
330
+ ReplicaIdentityStmt: ReplicaIdentityStmt;
355
331
  } | {
356
- AlterRoleStmt: AlterRoleStmt;
332
+ AlterSystemStmt: AlterSystemStmt;
357
333
  } | {
358
- AlterRoleSetStmt: AlterRoleSetStmt;
334
+ CreatePolicyStmt: CreatePolicyStmt;
359
335
  } | {
360
- DropRoleStmt: DropRoleStmt;
336
+ AlterPolicyStmt: AlterPolicyStmt;
361
337
  } | {
362
- CreateSeqStmt: CreateSeqStmt;
338
+ CreateTransformStmt: CreateTransformStmt;
363
339
  } | {
364
- AlterSeqStmt: AlterSeqStmt;
340
+ CreateAmStmt: CreateAmStmt;
365
341
  } | {
366
- DefineStmt: DefineStmt;
342
+ CreatePublicationStmt: CreatePublicationStmt;
367
343
  } | {
368
- CreateDomainStmt: CreateDomainStmt;
344
+ AlterPublicationStmt: AlterPublicationStmt;
369
345
  } | {
370
- CreateOpClassStmt: CreateOpClassStmt;
346
+ CreateSubscriptionStmt: CreateSubscriptionStmt;
371
347
  } | {
372
- CreateOpClassItem: CreateOpClassItem;
348
+ AlterSubscriptionStmt: AlterSubscriptionStmt;
373
349
  } | {
374
- CreateOpFamilyStmt: CreateOpFamilyStmt;
350
+ DropSubscriptionStmt: DropSubscriptionStmt;
375
351
  } | {
376
- AlterOpFamilyStmt: AlterOpFamilyStmt;
352
+ CreateStatsStmt: CreateStatsStmt;
377
353
  } | {
378
- DropStmt: DropStmt;
354
+ AlterCollationStmt: AlterCollationStmt;
379
355
  } | {
380
- TruncateStmt: TruncateStmt;
356
+ CallStmt: CallStmt;
381
357
  } | {
382
- CommentStmt: CommentStmt;
358
+ AlterStatsStmt: AlterStatsStmt;
383
359
  } | {
384
- SecLabelStmt: SecLabelStmt;
360
+ A_Expr: A_Expr;
385
361
  } | {
386
- DeclareCursorStmt: DeclareCursorStmt;
362
+ ColumnRef: ColumnRef;
387
363
  } | {
388
- ClosePortalStmt: ClosePortalStmt;
364
+ ParamRef: ParamRef;
389
365
  } | {
390
- FetchStmt: FetchStmt;
366
+ A_Const: A_Const;
391
367
  } | {
392
- IndexStmt: IndexStmt;
368
+ FuncCall: FuncCall;
393
369
  } | {
394
- CreateStatsStmt: CreateStatsStmt;
370
+ A_Star: A_Star;
395
371
  } | {
396
- StatsElem: StatsElem;
372
+ A_Indices: A_Indices;
397
373
  } | {
398
- AlterStatsStmt: AlterStatsStmt;
374
+ A_Indirection: A_Indirection;
399
375
  } | {
400
- CreateFunctionStmt: CreateFunctionStmt;
376
+ A_ArrayExpr: A_ArrayExpr;
401
377
  } | {
402
- FunctionParameter: FunctionParameter;
378
+ ResTarget: ResTarget;
403
379
  } | {
404
- AlterFunctionStmt: AlterFunctionStmt;
380
+ MultiAssignRef: MultiAssignRef;
405
381
  } | {
406
- DoStmt: DoStmt;
382
+ TypeCast: TypeCast;
407
383
  } | {
408
- InlineCodeBlock: InlineCodeBlock;
384
+ CollateClause: CollateClause;
409
385
  } | {
410
- CallStmt: CallStmt;
386
+ SortBy: SortBy;
411
387
  } | {
412
- CallContext: CallContext;
388
+ WindowDef: WindowDef;
413
389
  } | {
414
- RenameStmt: RenameStmt;
415
- } | {
416
- AlterObjectDependsStmt: AlterObjectDependsStmt;
417
- } | {
418
- AlterObjectSchemaStmt: AlterObjectSchemaStmt;
419
- } | {
420
- AlterOwnerStmt: AlterOwnerStmt;
421
- } | {
422
- AlterOperatorStmt: AlterOperatorStmt;
423
- } | {
424
- AlterTypeStmt: AlterTypeStmt;
425
- } | {
426
- RuleStmt: RuleStmt;
427
- } | {
428
- NotifyStmt: NotifyStmt;
429
- } | {
430
- ListenStmt: ListenStmt;
431
- } | {
432
- UnlistenStmt: UnlistenStmt;
433
- } | {
434
- TransactionStmt: TransactionStmt;
435
- } | {
436
- CompositeTypeStmt: CompositeTypeStmt;
437
- } | {
438
- CreateEnumStmt: CreateEnumStmt;
390
+ RangeSubselect: RangeSubselect;
439
391
  } | {
440
- CreateRangeStmt: CreateRangeStmt;
392
+ RangeFunction: RangeFunction;
441
393
  } | {
442
- AlterEnumStmt: AlterEnumStmt;
394
+ RangeTableSample: RangeTableSample;
443
395
  } | {
444
- ViewStmt: ViewStmt;
396
+ RangeTableFunc: RangeTableFunc;
445
397
  } | {
446
- LoadStmt: LoadStmt;
398
+ RangeTableFuncCol: RangeTableFuncCol;
447
399
  } | {
448
- CreatedbStmt: CreatedbStmt;
400
+ TypeName: TypeName;
449
401
  } | {
450
- AlterDatabaseStmt: AlterDatabaseStmt;
402
+ ColumnDef: ColumnDef;
451
403
  } | {
452
- AlterDatabaseRefreshCollStmt: AlterDatabaseRefreshCollStmt;
404
+ IndexElem: IndexElem;
453
405
  } | {
454
- AlterDatabaseSetStmt: AlterDatabaseSetStmt;
406
+ Constraint: Constraint;
455
407
  } | {
456
- DropdbStmt: DropdbStmt;
408
+ DefElem: DefElem;
457
409
  } | {
458
- AlterSystemStmt: AlterSystemStmt;
410
+ RangeTblEntry: RangeTblEntry;
459
411
  } | {
460
- ClusterStmt: ClusterStmt;
412
+ RangeTblFunction: RangeTblFunction;
461
413
  } | {
462
- VacuumStmt: VacuumStmt;
414
+ TableSampleClause: TableSampleClause;
463
415
  } | {
464
- VacuumRelation: VacuumRelation;
416
+ WithCheckOption: WithCheckOption;
465
417
  } | {
466
- ExplainStmt: ExplainStmt;
418
+ SortGroupClause: SortGroupClause;
467
419
  } | {
468
- CreateTableAsStmt: CreateTableAsStmt;
420
+ GroupingSet: GroupingSet;
469
421
  } | {
470
- RefreshMatViewStmt: RefreshMatViewStmt;
422
+ WindowClause: WindowClause;
471
423
  } | {
472
- CheckPointStmt: CheckPointStmt;
424
+ ObjectWithArgs: ObjectWithArgs;
473
425
  } | {
474
- DiscardStmt: DiscardStmt;
426
+ AccessPriv: AccessPriv;
475
427
  } | {
476
- LockStmt: LockStmt;
428
+ CreateOpClassItem: CreateOpClassItem;
477
429
  } | {
478
- ConstraintsSetStmt: ConstraintsSetStmt;
430
+ TableLikeClause: TableLikeClause;
479
431
  } | {
480
- ReindexStmt: ReindexStmt;
432
+ FunctionParameter: FunctionParameter;
481
433
  } | {
482
- CreateConversionStmt: CreateConversionStmt;
434
+ LockingClause: LockingClause;
483
435
  } | {
484
- CreateCastStmt: CreateCastStmt;
436
+ RowMarkClause: RowMarkClause;
485
437
  } | {
486
- CreateTransformStmt: CreateTransformStmt;
438
+ XmlSerialize: XmlSerialize;
487
439
  } | {
488
- PrepareStmt: PrepareStmt;
440
+ WithClause: WithClause;
489
441
  } | {
490
- ExecuteStmt: ExecuteStmt;
442
+ InferClause: InferClause;
491
443
  } | {
492
- DeallocateStmt: DeallocateStmt;
444
+ OnConflictClause: OnConflictClause;
493
445
  } | {
494
- DropOwnedStmt: DropOwnedStmt;
446
+ CommonTableExpr: CommonTableExpr;
495
447
  } | {
496
- ReassignOwnedStmt: ReassignOwnedStmt;
448
+ RoleSpec: RoleSpec;
497
449
  } | {
498
- AlterTSDictionaryStmt: AlterTSDictionaryStmt;
450
+ TriggerTransition: TriggerTransition;
499
451
  } | {
500
- AlterTSConfigurationStmt: AlterTSConfigurationStmt;
452
+ PartitionElem: PartitionElem;
501
453
  } | {
502
- PublicationTable: PublicationTable;
454
+ PartitionSpec: PartitionSpec;
503
455
  } | {
504
- PublicationObjSpec: PublicationObjSpec;
456
+ PartitionBoundSpec: PartitionBoundSpec;
505
457
  } | {
506
- CreatePublicationStmt: CreatePublicationStmt;
458
+ PartitionRangeDatum: PartitionRangeDatum;
507
459
  } | {
508
- AlterPublicationStmt: AlterPublicationStmt;
460
+ PartitionCmd: PartitionCmd;
509
461
  } | {
510
- CreateSubscriptionStmt: CreateSubscriptionStmt;
462
+ VacuumRelation: VacuumRelation;
511
463
  } | {
512
- AlterSubscriptionStmt: AlterSubscriptionStmt;
464
+ InlineCodeBlock: InlineCodeBlock;
513
465
  } | {
514
- DropSubscriptionStmt: DropSubscriptionStmt;
466
+ CallContext: CallContext;
515
467
  } | {
516
468
  ScanToken: ScanToken;
517
469
  };
@@ -527,16 +479,15 @@ export interface Integer {
527
479
  ival?: number;
528
480
  }
529
481
  export interface Float {
530
- fval?: string;
531
- }
532
- export interface Boolean {
533
- boolval?: boolean;
482
+ str?: string;
534
483
  }
535
484
  export interface String {
536
- sval?: string;
485
+ str?: string;
537
486
  }
538
487
  export interface BitString {
539
- bsval?: string;
488
+ str?: string;
489
+ }
490
+ export interface Null {
540
491
  }
541
492
  export interface List {
542
493
  items?: Node[];
@@ -547,15 +498,6 @@ export interface OidList {
547
498
  export interface IntList {
548
499
  items?: Node[];
549
500
  }
550
- export interface A_Const {
551
- ival?: Integer;
552
- fval?: Float;
553
- boolval?: Boolean;
554
- sval?: String;
555
- bsval?: BitString;
556
- isnull?: boolean;
557
- location?: number;
558
- }
559
501
  export interface Alias {
560
502
  aliasname?: string;
561
503
  colnames?: Node[];
@@ -584,15 +526,7 @@ export interface TableFunc {
584
526
  ordinalitycol?: number;
585
527
  location?: number;
586
528
  }
587
- export interface IntoClause {
588
- rel?: RangeVar;
589
- colNames?: Node[];
590
- accessMethod?: string;
591
- options?: Node[];
592
- onCommit?: OnCommitAction;
593
- tableSpaceName?: string;
594
- viewQuery?: Node;
595
- skipData?: boolean;
529
+ export interface Expr {
596
530
  }
597
531
  export interface Var {
598
532
  xpr?: Node;
@@ -601,8 +535,9 @@ export interface Var {
601
535
  vartype?: number;
602
536
  vartypmod?: number;
603
537
  varcollid?: number;
604
- varnullingrels?: bigint[];
605
538
  varlevelsup?: number;
539
+ varnosyn?: number;
540
+ varattnosyn?: number;
606
541
  location?: number;
607
542
  }
608
543
  export interface Param {
@@ -620,6 +555,7 @@ export interface Aggref {
620
555
  aggtype?: number;
621
556
  aggcollid?: number;
622
557
  inputcollid?: number;
558
+ aggtranstype?: number;
623
559
  aggargtypes?: Node[];
624
560
  aggdirectargs?: Node[];
625
561
  args?: Node[];
@@ -631,14 +567,13 @@ export interface Aggref {
631
567
  aggkind?: string;
632
568
  agglevelsup?: number;
633
569
  aggsplit?: AggSplit;
634
- aggno?: number;
635
- aggtransno?: number;
636
570
  location?: number;
637
571
  }
638
572
  export interface GroupingFunc {
639
573
  xpr?: Node;
640
574
  args?: Node[];
641
575
  refs?: Node[];
576
+ cols?: Node[];
642
577
  agglevelsup?: number;
643
578
  location?: number;
644
579
  }
@@ -659,7 +594,6 @@ export interface SubscriptingRef {
659
594
  xpr?: Node;
660
595
  refcontainertype?: number;
661
596
  refelemtype?: number;
662
- refrestype?: number;
663
597
  reftypmod?: number;
664
598
  refcollid?: number;
665
599
  refupperindexpr?: Node[];
@@ -689,6 +623,7 @@ export interface NamedArgExpr {
689
623
  export interface OpExpr {
690
624
  xpr?: Node;
691
625
  opno?: number;
626
+ opfuncid?: number;
692
627
  opresulttype?: number;
693
628
  opretset?: boolean;
694
629
  opcollid?: number;
@@ -699,6 +634,7 @@ export interface OpExpr {
699
634
  export interface DistinctExpr {
700
635
  xpr?: Node;
701
636
  opno?: number;
637
+ opfuncid?: number;
702
638
  opresulttype?: number;
703
639
  opretset?: boolean;
704
640
  opcollid?: number;
@@ -709,6 +645,7 @@ export interface DistinctExpr {
709
645
  export interface NullIfExpr {
710
646
  xpr?: Node;
711
647
  opno?: number;
648
+ opfuncid?: number;
712
649
  opresulttype?: number;
713
650
  opretset?: boolean;
714
651
  opcollid?: number;
@@ -719,6 +656,7 @@ export interface NullIfExpr {
719
656
  export interface ScalarArrayOpExpr {
720
657
  xpr?: Node;
721
658
  opno?: number;
659
+ opfuncid?: number;
722
660
  useOr?: boolean;
723
661
  inputcollid?: number;
724
662
  args?: Node[];
@@ -895,44 +833,10 @@ export interface XmlExpr {
895
833
  arg_names?: Node[];
896
834
  args?: Node[];
897
835
  xmloption?: XmlOptionType;
898
- indent?: boolean;
899
836
  type?: number;
900
837
  typmod?: number;
901
838
  location?: number;
902
839
  }
903
- export interface JsonFormat {
904
- format_type?: JsonFormatType;
905
- encoding?: JsonEncoding;
906
- location?: number;
907
- }
908
- export interface JsonReturning {
909
- format?: JsonFormat;
910
- typid?: number;
911
- typmod?: number;
912
- }
913
- export interface JsonValueExpr {
914
- raw_expr?: Node;
915
- formatted_expr?: Node;
916
- format?: JsonFormat;
917
- }
918
- export interface JsonConstructorExpr {
919
- xpr?: Node;
920
- type?: JsonConstructorType;
921
- args?: Node[];
922
- func?: Node;
923
- coercion?: Node;
924
- returning?: JsonReturning;
925
- absent_on_null?: boolean;
926
- unique?: boolean;
927
- location?: number;
928
- }
929
- export interface JsonIsPredicate {
930
- expr?: Node;
931
- format?: JsonFormat;
932
- item_type?: JsonValueType;
933
- unique_keys?: boolean;
934
- location?: number;
935
- }
936
840
  export interface NullTest {
937
841
  xpr?: Node;
938
842
  arg?: Node;
@@ -1005,7 +909,6 @@ export interface JoinExpr {
1005
909
  larg?: Node;
1006
910
  rarg?: Node;
1007
911
  usingClause?: Node[];
1008
- join_using_alias?: Alias;
1009
912
  quals?: Node;
1010
913
  alias?: Alias;
1011
914
  rtindex?: number;
@@ -1024,6 +927,21 @@ export interface OnConflictExpr {
1024
927
  exclRelIndex?: number;
1025
928
  exclRelTlist?: Node[];
1026
929
  }
930
+ export interface IntoClause {
931
+ rel?: RangeVar;
932
+ colNames?: Node[];
933
+ accessMethod?: string;
934
+ options?: Node[];
935
+ onCommit?: OnCommitAction;
936
+ tableSpaceName?: string;
937
+ viewQuery?: Node;
938
+ skipData?: boolean;
939
+ }
940
+ export interface RawStmt {
941
+ stmt?: Node;
942
+ stmt_location?: number;
943
+ stmt_len?: number;
944
+ }
1027
945
  export interface Query {
1028
946
  commandType?: CmdType;
1029
947
  querySource?: QuerySource;
@@ -1039,19 +957,14 @@ export interface Query {
1039
957
  hasModifyingCTE?: boolean;
1040
958
  hasForUpdate?: boolean;
1041
959
  hasRowSecurity?: boolean;
1042
- isReturn?: boolean;
1043
960
  cteList?: Node[];
1044
961
  rtable?: Node[];
1045
- rteperminfos?: Node[];
1046
962
  jointree?: FromExpr;
1047
- mergeActionList?: Node[];
1048
- mergeUseOuterJoin?: boolean;
1049
963
  targetList?: Node[];
1050
964
  override?: OverridingKind;
1051
965
  onConflict?: OnConflictExpr;
1052
966
  returningList?: Node[];
1053
967
  groupClause?: Node[];
1054
- groupDistinct?: boolean;
1055
968
  groupingSets?: Node[];
1056
969
  havingQual?: Node;
1057
970
  windowClause?: Node[];
@@ -1067,521 +980,370 @@ export interface Query {
1067
980
  stmt_location?: number;
1068
981
  stmt_len?: number;
1069
982
  }
1070
- export interface TypeName {
1071
- names?: Node[];
1072
- typeOid?: number;
1073
- setof?: boolean;
1074
- pct_type?: boolean;
1075
- typmods?: Node[];
1076
- typemod?: number;
1077
- arrayBounds?: Node[];
1078
- location?: number;
1079
- }
1080
- export interface ColumnRef {
1081
- fields?: Node[];
1082
- location?: number;
1083
- }
1084
- export interface ParamRef {
1085
- number?: number;
1086
- location?: number;
1087
- }
1088
- export interface A_Expr {
1089
- kind?: A_Expr_Kind;
1090
- name?: Node[];
1091
- lexpr?: Node;
1092
- rexpr?: Node;
1093
- location?: number;
983
+ export interface InsertStmt {
984
+ relation?: RangeVar;
985
+ cols?: Node[];
986
+ selectStmt?: Node;
987
+ onConflictClause?: OnConflictClause;
988
+ returningList?: Node[];
989
+ withClause?: WithClause;
990
+ override?: OverridingKind;
1094
991
  }
1095
- export interface TypeCast {
1096
- arg?: Node;
1097
- typeName?: TypeName;
1098
- location?: number;
992
+ export interface DeleteStmt {
993
+ relation?: RangeVar;
994
+ usingClause?: Node[];
995
+ whereClause?: Node;
996
+ returningList?: Node[];
997
+ withClause?: WithClause;
1099
998
  }
1100
- export interface CollateClause {
1101
- arg?: Node;
1102
- collname?: Node[];
1103
- location?: number;
999
+ export interface UpdateStmt {
1000
+ relation?: RangeVar;
1001
+ targetList?: Node[];
1002
+ whereClause?: Node;
1003
+ fromClause?: Node[];
1004
+ returningList?: Node[];
1005
+ withClause?: WithClause;
1104
1006
  }
1105
- export interface RoleSpec {
1106
- roletype?: RoleSpecType;
1107
- rolename?: string;
1108
- location?: number;
1007
+ export interface SelectStmt {
1008
+ distinctClause?: Node[];
1009
+ intoClause?: IntoClause;
1010
+ targetList?: Node[];
1011
+ fromClause?: Node[];
1012
+ whereClause?: Node;
1013
+ groupClause?: Node[];
1014
+ havingClause?: Node;
1015
+ windowClause?: Node[];
1016
+ valuesLists?: Node[];
1017
+ sortClause?: Node[];
1018
+ limitOffset?: Node;
1019
+ limitCount?: Node;
1020
+ limitOption?: LimitOption;
1021
+ lockingClause?: Node[];
1022
+ withClause?: WithClause;
1023
+ op?: SetOperation;
1024
+ all?: boolean;
1025
+ larg?: SelectStmt;
1026
+ rarg?: SelectStmt;
1109
1027
  }
1110
- export interface FuncCall {
1111
- funcname?: Node[];
1112
- args?: Node[];
1113
- agg_order?: Node[];
1114
- agg_filter?: Node;
1115
- over?: WindowDef;
1116
- agg_within_group?: boolean;
1117
- agg_star?: boolean;
1118
- agg_distinct?: boolean;
1119
- func_variadic?: boolean;
1120
- funcformat?: CoercionForm;
1121
- location?: number;
1028
+ export interface AlterTableStmt {
1029
+ relation?: RangeVar;
1030
+ cmds?: Node[];
1031
+ relkind?: ObjectType;
1032
+ missing_ok?: boolean;
1122
1033
  }
1123
- export interface A_Star {
1034
+ export interface AlterTableCmd {
1035
+ subtype?: AlterTableType;
1036
+ name?: string;
1037
+ num?: number;
1038
+ newowner?: RoleSpec;
1039
+ def?: Node;
1040
+ behavior?: DropBehavior;
1041
+ missing_ok?: boolean;
1042
+ recurse?: boolean;
1124
1043
  }
1125
- export interface A_Indices {
1126
- is_slice?: boolean;
1127
- lidx?: Node;
1128
- uidx?: Node;
1044
+ export interface AlterDomainStmt {
1045
+ subtype?: string;
1046
+ typeName?: Node[];
1047
+ name?: string;
1048
+ def?: Node;
1049
+ behavior?: DropBehavior;
1050
+ missing_ok?: boolean;
1129
1051
  }
1130
- export interface A_Indirection {
1131
- arg?: Node;
1132
- indirection?: Node[];
1133
- }
1134
- export interface A_ArrayExpr {
1135
- elements?: Node[];
1136
- location?: number;
1137
- }
1138
- export interface ResTarget {
1139
- name?: string;
1140
- indirection?: Node[];
1141
- val?: Node;
1142
- location?: number;
1143
- }
1144
- export interface MultiAssignRef {
1145
- source?: Node;
1146
- colno?: number;
1147
- ncolumns?: number;
1148
- }
1149
- export interface SortBy {
1150
- node?: Node;
1151
- sortby_dir?: SortByDir;
1152
- sortby_nulls?: SortByNulls;
1153
- useOp?: Node[];
1154
- location?: number;
1155
- }
1156
- export interface WindowDef {
1157
- name?: string;
1158
- refname?: string;
1159
- partitionClause?: Node[];
1160
- orderClause?: Node[];
1161
- frameOptions?: number;
1162
- startOffset?: Node;
1163
- endOffset?: Node;
1164
- location?: number;
1165
- }
1166
- export interface RangeSubselect {
1167
- lateral?: boolean;
1168
- subquery?: Node;
1169
- alias?: Alias;
1170
- }
1171
- export interface RangeFunction {
1172
- lateral?: boolean;
1173
- ordinality?: boolean;
1174
- is_rowsfrom?: boolean;
1175
- functions?: Node[];
1176
- alias?: Alias;
1177
- coldeflist?: Node[];
1052
+ export interface SetOperationStmt {
1053
+ op?: SetOperation;
1054
+ all?: boolean;
1055
+ larg?: Node;
1056
+ rarg?: Node;
1057
+ colTypes?: Node[];
1058
+ colTypmods?: Node[];
1059
+ colCollations?: Node[];
1060
+ groupClauses?: Node[];
1178
1061
  }
1179
- export interface RangeTableFunc {
1180
- lateral?: boolean;
1181
- docexpr?: Node;
1182
- rowexpr?: Node;
1183
- namespaces?: Node[];
1184
- columns?: Node[];
1185
- alias?: Alias;
1186
- location?: number;
1062
+ export interface GrantStmt {
1063
+ is_grant?: boolean;
1064
+ targtype?: GrantTargetType;
1065
+ objtype?: ObjectType;
1066
+ objects?: Node[];
1067
+ privileges?: Node[];
1068
+ grantees?: Node[];
1069
+ grant_option?: boolean;
1070
+ behavior?: DropBehavior;
1187
1071
  }
1188
- export interface RangeTableFuncCol {
1189
- colname?: string;
1190
- typeName?: TypeName;
1191
- for_ordinality?: boolean;
1192
- is_not_null?: boolean;
1193
- colexpr?: Node;
1194
- coldefexpr?: Node;
1195
- location?: number;
1072
+ export interface GrantRoleStmt {
1073
+ granted_roles?: Node[];
1074
+ grantee_roles?: Node[];
1075
+ is_grant?: boolean;
1076
+ admin_opt?: boolean;
1077
+ grantor?: RoleSpec;
1078
+ behavior?: DropBehavior;
1196
1079
  }
1197
- export interface RangeTableSample {
1198
- relation?: Node;
1199
- method?: Node[];
1200
- args?: Node[];
1201
- repeatable?: Node;
1202
- location?: number;
1080
+ export interface AlterDefaultPrivilegesStmt {
1081
+ options?: Node[];
1082
+ action?: GrantStmt;
1203
1083
  }
1204
- export interface ColumnDef {
1205
- colname?: string;
1206
- typeName?: TypeName;
1207
- compression?: string;
1208
- inhcount?: number;
1209
- is_local?: boolean;
1210
- is_not_null?: boolean;
1211
- is_from_type?: boolean;
1212
- storage?: string;
1213
- storage_name?: string;
1214
- raw_default?: Node;
1215
- cooked_default?: Node;
1216
- identity?: string;
1217
- identitySequence?: RangeVar;
1218
- generated?: string;
1219
- collClause?: CollateClause;
1220
- collOid?: number;
1221
- constraints?: Node[];
1222
- fdwoptions?: Node[];
1223
- location?: number;
1084
+ export interface ClosePortalStmt {
1085
+ portalname?: string;
1224
1086
  }
1225
- export interface TableLikeClause {
1087
+ export interface ClusterStmt {
1226
1088
  relation?: RangeVar;
1089
+ indexname?: string;
1227
1090
  options?: number;
1228
- relationOid?: number;
1229
1091
  }
1230
- export interface IndexElem {
1231
- name?: string;
1232
- expr?: Node;
1233
- indexcolname?: string;
1234
- collation?: Node[];
1235
- opclass?: Node[];
1236
- opclassopts?: Node[];
1237
- ordering?: SortByDir;
1238
- nulls_ordering?: SortByNulls;
1239
- }
1240
- export interface DefElem {
1241
- defnamespace?: string;
1242
- defname?: string;
1243
- arg?: Node;
1244
- defaction?: DefElemAction;
1245
- location?: number;
1092
+ export interface CopyStmt {
1093
+ relation?: RangeVar;
1094
+ query?: Node;
1095
+ attlist?: Node[];
1096
+ is_from?: boolean;
1097
+ is_program?: boolean;
1098
+ filename?: string;
1099
+ options?: Node[];
1100
+ whereClause?: Node;
1246
1101
  }
1247
- export interface LockingClause {
1248
- lockedRels?: Node[];
1249
- strength?: LockClauseStrength;
1250
- waitPolicy?: LockWaitPolicy;
1102
+ export interface CreateStmt {
1103
+ relation?: RangeVar;
1104
+ tableElts?: Node[];
1105
+ inhRelations?: Node[];
1106
+ partbound?: PartitionBoundSpec;
1107
+ partspec?: PartitionSpec;
1108
+ ofTypename?: TypeName;
1109
+ constraints?: Node[];
1110
+ options?: Node[];
1111
+ oncommit?: OnCommitAction;
1112
+ tablespacename?: string;
1113
+ accessMethod?: string;
1114
+ if_not_exists?: boolean;
1251
1115
  }
1252
- export interface XmlSerialize {
1253
- xmloption?: XmlOptionType;
1254
- expr?: Node;
1255
- typeName?: TypeName;
1256
- indent?: boolean;
1257
- location?: number;
1116
+ export interface DefineStmt {
1117
+ kind?: ObjectType;
1118
+ oldstyle?: boolean;
1119
+ defnames?: Node[];
1120
+ args?: Node[];
1121
+ definition?: Node[];
1122
+ if_not_exists?: boolean;
1123
+ replace?: boolean;
1258
1124
  }
1259
- export interface PartitionElem {
1260
- name?: string;
1261
- expr?: Node;
1262
- collation?: Node[];
1263
- opclass?: Node[];
1264
- location?: number;
1125
+ export interface DropStmt {
1126
+ objects?: Node[];
1127
+ removeType?: ObjectType;
1128
+ behavior?: DropBehavior;
1129
+ missing_ok?: boolean;
1130
+ concurrent?: boolean;
1265
1131
  }
1266
- export interface PartitionSpec {
1267
- strategy?: PartitionStrategy;
1268
- partParams?: Node[];
1269
- location?: number;
1132
+ export interface TruncateStmt {
1133
+ relations?: Node[];
1134
+ restart_seqs?: boolean;
1135
+ behavior?: DropBehavior;
1270
1136
  }
1271
- export interface PartitionBoundSpec {
1272
- strategy?: string;
1273
- is_default?: boolean;
1274
- modulus?: number;
1275
- remainder?: number;
1276
- listdatums?: Node[];
1277
- lowerdatums?: Node[];
1278
- upperdatums?: Node[];
1279
- location?: number;
1137
+ export interface CommentStmt {
1138
+ objtype?: ObjectType;
1139
+ object?: Node;
1140
+ comment?: string;
1280
1141
  }
1281
- export interface PartitionRangeDatum {
1282
- kind?: PartitionRangeDatumKind;
1283
- value?: Node;
1284
- location?: number;
1142
+ export interface FetchStmt {
1143
+ direction?: FetchDirection;
1144
+ howMany?: bigint;
1145
+ portalname?: string;
1146
+ ismove?: boolean;
1285
1147
  }
1286
- export interface PartitionCmd {
1287
- name?: RangeVar;
1288
- bound?: PartitionBoundSpec;
1148
+ export interface IndexStmt {
1149
+ idxname?: string;
1150
+ relation?: RangeVar;
1151
+ accessMethod?: string;
1152
+ tableSpace?: string;
1153
+ indexParams?: Node[];
1154
+ indexIncludingParams?: Node[];
1155
+ options?: Node[];
1156
+ whereClause?: Node;
1157
+ excludeOpNames?: Node[];
1158
+ idxcomment?: string;
1159
+ indexOid?: number;
1160
+ oldNode?: number;
1161
+ oldCreateSubid?: number;
1162
+ oldFirstRelfilenodeSubid?: number;
1163
+ unique?: boolean;
1164
+ primary?: boolean;
1165
+ isconstraint?: boolean;
1166
+ deferrable?: boolean;
1167
+ initdeferred?: boolean;
1168
+ transformed?: boolean;
1289
1169
  concurrent?: boolean;
1170
+ if_not_exists?: boolean;
1171
+ reset_default_tblspc?: boolean;
1290
1172
  }
1291
- export interface RangeTblEntry {
1292
- rtekind?: RTEKind;
1293
- relid?: number;
1294
- relkind?: string;
1295
- rellockmode?: number;
1296
- tablesample?: TableSampleClause;
1297
- perminfoindex?: number;
1298
- subquery?: Query;
1299
- security_barrier?: boolean;
1300
- jointype?: JoinType;
1301
- joinmergedcols?: number;
1302
- joinaliasvars?: Node[];
1303
- joinleftcols?: Node[];
1304
- joinrightcols?: Node[];
1305
- join_using_alias?: Alias;
1306
- functions?: Node[];
1307
- funcordinality?: boolean;
1308
- tablefunc?: TableFunc;
1309
- values_lists?: Node[];
1310
- ctename?: string;
1311
- ctelevelsup?: number;
1312
- self_reference?: boolean;
1313
- coltypes?: Node[];
1314
- coltypmods?: Node[];
1315
- colcollations?: Node[];
1316
- enrname?: string;
1317
- enrtuples?: number;
1318
- alias?: Alias;
1319
- eref?: Alias;
1320
- lateral?: boolean;
1321
- inh?: boolean;
1322
- inFromCl?: boolean;
1323
- securityQuals?: Node[];
1324
- }
1325
- export interface RTEPermissionInfo {
1326
- relid?: number;
1327
- inh?: boolean;
1328
- requiredPerms?: bigint;
1329
- checkAsUser?: number;
1330
- selectedCols?: bigint[];
1331
- insertedCols?: bigint[];
1332
- updatedCols?: bigint[];
1173
+ export interface CreateFunctionStmt {
1174
+ is_procedure?: boolean;
1175
+ replace?: boolean;
1176
+ funcname?: Node[];
1177
+ parameters?: Node[];
1178
+ returnType?: TypeName;
1179
+ options?: Node[];
1333
1180
  }
1334
- export interface RangeTblFunction {
1335
- funcexpr?: Node;
1336
- funccolcount?: number;
1337
- funccolnames?: Node[];
1338
- funccoltypes?: Node[];
1339
- funccoltypmods?: Node[];
1340
- funccolcollations?: Node[];
1341
- funcparams?: bigint[];
1181
+ export interface AlterFunctionStmt {
1182
+ objtype?: ObjectType;
1183
+ func?: ObjectWithArgs;
1184
+ actions?: Node[];
1342
1185
  }
1343
- export interface TableSampleClause {
1344
- tsmhandler?: number;
1186
+ export interface DoStmt {
1345
1187
  args?: Node[];
1346
- repeatable?: Node;
1347
- }
1348
- export interface WithCheckOption {
1349
- kind?: WCOKind;
1350
- relname?: string;
1351
- polname?: string;
1352
- qual?: Node;
1353
- cascaded?: boolean;
1354
- }
1355
- export interface SortGroupClause {
1356
- tleSortGroupRef?: number;
1357
- eqop?: number;
1358
- sortop?: number;
1359
- nulls_first?: boolean;
1360
- hashable?: boolean;
1361
- }
1362
- export interface GroupingSet {
1363
- kind?: GroupingSetKind;
1364
- content?: Node[];
1365
- location?: number;
1366
1188
  }
1367
- export interface WindowClause {
1368
- name?: string;
1369
- refname?: string;
1370
- partitionClause?: Node[];
1371
- orderClause?: Node[];
1372
- frameOptions?: number;
1373
- startOffset?: Node;
1374
- endOffset?: Node;
1375
- runCondition?: Node[];
1376
- startInRangeFunc?: number;
1377
- endInRangeFunc?: number;
1378
- inRangeColl?: number;
1379
- inRangeAsc?: boolean;
1380
- inRangeNullsFirst?: boolean;
1381
- winref?: number;
1382
- copiedOrder?: boolean;
1383
- }
1384
- export interface RowMarkClause {
1385
- rti?: number;
1386
- strength?: LockClauseStrength;
1387
- waitPolicy?: LockWaitPolicy;
1388
- pushedDown?: boolean;
1389
- }
1390
- export interface WithClause {
1391
- ctes?: Node[];
1392
- recursive?: boolean;
1393
- location?: number;
1394
- }
1395
- export interface InferClause {
1396
- indexElems?: Node[];
1397
- whereClause?: Node;
1398
- conname?: string;
1399
- location?: number;
1189
+ export interface RenameStmt {
1190
+ renameType?: ObjectType;
1191
+ relationType?: ObjectType;
1192
+ relation?: RangeVar;
1193
+ object?: Node;
1194
+ subname?: string;
1195
+ newname?: string;
1196
+ behavior?: DropBehavior;
1197
+ missing_ok?: boolean;
1400
1198
  }
1401
- export interface OnConflictClause {
1402
- action?: OnConflictAction;
1403
- infer?: InferClause;
1404
- targetList?: Node[];
1199
+ export interface RuleStmt {
1200
+ relation?: RangeVar;
1201
+ rulename?: string;
1405
1202
  whereClause?: Node;
1406
- location?: number;
1203
+ event?: CmdType;
1204
+ instead?: boolean;
1205
+ actions?: Node[];
1206
+ replace?: boolean;
1407
1207
  }
1408
- export interface CTESearchClause {
1409
- search_col_list?: Node[];
1410
- search_breadth_first?: boolean;
1411
- search_seq_column?: string;
1412
- location?: number;
1208
+ export interface NotifyStmt {
1209
+ conditionname?: string;
1210
+ payload?: string;
1413
1211
  }
1414
- export interface CTECycleClause {
1415
- cycle_col_list?: Node[];
1416
- cycle_mark_column?: string;
1417
- cycle_mark_value?: Node;
1418
- cycle_mark_default?: Node;
1419
- cycle_path_column?: string;
1420
- location?: number;
1421
- cycle_mark_type?: number;
1422
- cycle_mark_typmod?: number;
1423
- cycle_mark_collation?: number;
1424
- cycle_mark_neop?: number;
1212
+ export interface ListenStmt {
1213
+ conditionname?: string;
1425
1214
  }
1426
- export interface CommonTableExpr {
1427
- ctename?: string;
1428
- aliascolnames?: Node[];
1429
- ctematerialized?: CTEMaterialize;
1430
- ctequery?: Node;
1431
- search_clause?: CTESearchClause;
1432
- cycle_clause?: CTECycleClause;
1433
- location?: number;
1434
- cterecursive?: boolean;
1435
- cterefcount?: number;
1436
- ctecolnames?: Node[];
1437
- ctecoltypes?: Node[];
1438
- ctecoltypmods?: Node[];
1439
- ctecolcollations?: Node[];
1215
+ export interface UnlistenStmt {
1216
+ conditionname?: string;
1440
1217
  }
1441
- export interface MergeWhenClause {
1442
- matched?: boolean;
1443
- commandType?: CmdType;
1444
- override?: OverridingKind;
1445
- condition?: Node;
1446
- targetList?: Node[];
1447
- values?: Node[];
1218
+ export interface TransactionStmt {
1219
+ kind?: TransactionStmtKind;
1220
+ options?: Node[];
1221
+ savepoint_name?: string;
1222
+ gid?: string;
1223
+ chain?: boolean;
1448
1224
  }
1449
- export interface MergeAction {
1450
- matched?: boolean;
1451
- commandType?: CmdType;
1452
- override?: OverridingKind;
1453
- qual?: Node;
1454
- targetList?: Node[];
1455
- updateColnos?: Node[];
1225
+ export interface ViewStmt {
1226
+ view?: RangeVar;
1227
+ aliases?: Node[];
1228
+ query?: Node;
1229
+ replace?: boolean;
1230
+ options?: Node[];
1231
+ withCheckOption?: ViewCheckOption;
1456
1232
  }
1457
- export interface TriggerTransition {
1458
- name?: string;
1459
- isNew?: boolean;
1460
- isTable?: boolean;
1233
+ export interface LoadStmt {
1234
+ filename?: string;
1461
1235
  }
1462
- export interface JsonOutput {
1236
+ export interface CreateDomainStmt {
1237
+ domainname?: Node[];
1463
1238
  typeName?: TypeName;
1464
- returning?: JsonReturning;
1239
+ collClause?: CollateClause;
1240
+ constraints?: Node[];
1465
1241
  }
1466
- export interface JsonKeyValue {
1467
- key?: Node;
1468
- value?: JsonValueExpr;
1242
+ export interface CreatedbStmt {
1243
+ dbname?: string;
1244
+ options?: Node[];
1469
1245
  }
1470
- export interface JsonObjectConstructor {
1471
- exprs?: Node[];
1472
- output?: JsonOutput;
1473
- absent_on_null?: boolean;
1474
- unique?: boolean;
1475
- location?: number;
1246
+ export interface DropdbStmt {
1247
+ dbname?: string;
1248
+ missing_ok?: boolean;
1249
+ options?: Node[];
1476
1250
  }
1477
- export interface JsonArrayConstructor {
1478
- exprs?: Node[];
1479
- output?: JsonOutput;
1480
- absent_on_null?: boolean;
1481
- location?: number;
1251
+ export interface VacuumStmt {
1252
+ options?: Node[];
1253
+ rels?: Node[];
1254
+ is_vacuumcmd?: boolean;
1482
1255
  }
1483
- export interface JsonArrayQueryConstructor {
1256
+ export interface ExplainStmt {
1484
1257
  query?: Node;
1485
- output?: JsonOutput;
1486
- format?: JsonFormat;
1487
- absent_on_null?: boolean;
1488
- location?: number;
1258
+ options?: Node[];
1489
1259
  }
1490
- export interface JsonAggConstructor {
1491
- output?: JsonOutput;
1492
- agg_filter?: Node;
1493
- agg_order?: Node[];
1494
- over?: WindowDef;
1495
- location?: number;
1260
+ export interface CreateTableAsStmt {
1261
+ query?: Node;
1262
+ into?: IntoClause;
1263
+ relkind?: ObjectType;
1264
+ is_select_into?: boolean;
1265
+ if_not_exists?: boolean;
1496
1266
  }
1497
- export interface JsonObjectAgg {
1498
- constructor?: JsonAggConstructor;
1499
- arg?: JsonKeyValue;
1500
- absent_on_null?: boolean;
1501
- unique?: boolean;
1267
+ export interface CreateSeqStmt {
1268
+ sequence?: RangeVar;
1269
+ options?: Node[];
1270
+ ownerId?: number;
1271
+ for_identity?: boolean;
1272
+ if_not_exists?: boolean;
1502
1273
  }
1503
- export interface JsonArrayAgg {
1504
- constructor?: JsonAggConstructor;
1505
- arg?: JsonValueExpr;
1506
- absent_on_null?: boolean;
1274
+ export interface AlterSeqStmt {
1275
+ sequence?: RangeVar;
1276
+ options?: Node[];
1277
+ for_identity?: boolean;
1278
+ missing_ok?: boolean;
1507
1279
  }
1508
- export interface RawStmt {
1509
- stmt?: Node;
1510
- stmt_location?: number;
1511
- stmt_len?: number;
1280
+ export interface VariableSetStmt {
1281
+ kind?: VariableSetKind;
1282
+ name?: string;
1283
+ args?: Node[];
1284
+ is_local?: boolean;
1512
1285
  }
1513
- export interface InsertStmt {
1514
- relation?: RangeVar;
1515
- cols?: Node[];
1516
- selectStmt?: Node;
1517
- onConflictClause?: OnConflictClause;
1518
- returningList?: Node[];
1519
- withClause?: WithClause;
1520
- override?: OverridingKind;
1286
+ export interface VariableShowStmt {
1287
+ name?: string;
1521
1288
  }
1522
- export interface DeleteStmt {
1523
- relation?: RangeVar;
1524
- usingClause?: Node[];
1525
- whereClause?: Node;
1526
- returningList?: Node[];
1527
- withClause?: WithClause;
1289
+ export interface DiscardStmt {
1290
+ target?: DiscardMode;
1528
1291
  }
1529
- export interface UpdateStmt {
1292
+ export interface CreateTrigStmt {
1293
+ trigname?: string;
1530
1294
  relation?: RangeVar;
1531
- targetList?: Node[];
1532
- whereClause?: Node;
1533
- fromClause?: Node[];
1534
- returningList?: Node[];
1535
- withClause?: WithClause;
1295
+ funcname?: Node[];
1296
+ args?: Node[];
1297
+ row?: boolean;
1298
+ timing?: number;
1299
+ events?: number;
1300
+ columns?: Node[];
1301
+ whenClause?: Node;
1302
+ isconstraint?: boolean;
1303
+ transitionRels?: Node[];
1304
+ deferrable?: boolean;
1305
+ initdeferred?: boolean;
1306
+ constrrel?: RangeVar;
1536
1307
  }
1537
- export interface MergeStmt {
1538
- relation?: RangeVar;
1539
- sourceRelation?: Node;
1540
- joinCondition?: Node;
1541
- mergeWhenClauses?: Node[];
1542
- withClause?: WithClause;
1308
+ export interface CreatePLangStmt {
1309
+ replace?: boolean;
1310
+ plname?: string;
1311
+ plhandler?: Node[];
1312
+ plinline?: Node[];
1313
+ plvalidator?: Node[];
1314
+ pltrusted?: boolean;
1543
1315
  }
1544
- export interface SelectStmt {
1545
- distinctClause?: Node[];
1546
- intoClause?: IntoClause;
1547
- targetList?: Node[];
1548
- fromClause?: Node[];
1549
- whereClause?: Node;
1550
- groupClause?: Node[];
1551
- groupDistinct?: boolean;
1552
- havingClause?: Node;
1553
- windowClause?: Node[];
1554
- valuesLists?: Node[];
1555
- sortClause?: Node[];
1556
- limitOffset?: Node;
1557
- limitCount?: Node;
1558
- limitOption?: LimitOption;
1559
- lockingClause?: Node[];
1560
- withClause?: WithClause;
1561
- op?: SetOperation;
1562
- all?: boolean;
1563
- larg?: SelectStmt;
1564
- rarg?: SelectStmt;
1316
+ export interface CreateRoleStmt {
1317
+ stmt_type?: RoleStmtType;
1318
+ role?: string;
1319
+ options?: Node[];
1565
1320
  }
1566
- export interface SetOperationStmt {
1567
- op?: SetOperation;
1568
- all?: boolean;
1569
- larg?: Node;
1570
- rarg?: Node;
1571
- colTypes?: Node[];
1572
- colTypmods?: Node[];
1573
- colCollations?: Node[];
1574
- groupClauses?: Node[];
1321
+ export interface AlterRoleStmt {
1322
+ role?: RoleSpec;
1323
+ options?: Node[];
1324
+ action?: number;
1325
+ }
1326
+ export interface DropRoleStmt {
1327
+ roles?: Node[];
1328
+ missing_ok?: boolean;
1329
+ }
1330
+ export interface LockStmt {
1331
+ relations?: Node[];
1332
+ mode?: number;
1333
+ nowait?: boolean;
1575
1334
  }
1576
- export interface ReturnStmt {
1577
- returnval?: Node;
1335
+ export interface ConstraintsSetStmt {
1336
+ constraints?: Node[];
1337
+ deferred?: boolean;
1578
1338
  }
1579
- export interface PLAssignStmt {
1339
+ export interface ReindexStmt {
1340
+ kind?: ReindexObjectType;
1341
+ relation?: RangeVar;
1580
1342
  name?: string;
1581
- indirection?: Node[];
1582
- nnames?: number;
1583
- val?: SelectStmt;
1584
- location?: number;
1343
+ options?: number;
1344
+ concurrent?: boolean;
1345
+ }
1346
+ export interface CheckPointStmt {
1585
1347
  }
1586
1348
  export interface CreateSchemaStmt {
1587
1349
  schemaname?: string;
@@ -1589,134 +1351,67 @@ export interface CreateSchemaStmt {
1589
1351
  schemaElts?: Node[];
1590
1352
  if_not_exists?: boolean;
1591
1353
  }
1592
- export interface AlterTableStmt {
1593
- relation?: RangeVar;
1594
- cmds?: Node[];
1595
- objtype?: ObjectType;
1596
- missing_ok?: boolean;
1597
- }
1598
- export interface ReplicaIdentityStmt {
1599
- identity_type?: string;
1600
- name?: string;
1601
- }
1602
- export interface AlterTableCmd {
1603
- subtype?: AlterTableType;
1604
- name?: string;
1605
- num?: number;
1606
- newowner?: RoleSpec;
1607
- def?: Node;
1608
- behavior?: DropBehavior;
1609
- missing_ok?: boolean;
1610
- recurse?: boolean;
1611
- }
1612
- export interface AlterCollationStmt {
1613
- collname?: Node[];
1354
+ export interface AlterDatabaseStmt {
1355
+ dbname?: string;
1356
+ options?: Node[];
1614
1357
  }
1615
- export interface AlterDomainStmt {
1616
- subtype?: string;
1617
- typeName?: Node[];
1618
- name?: string;
1619
- def?: Node;
1620
- behavior?: DropBehavior;
1621
- missing_ok?: boolean;
1358
+ export interface AlterDatabaseSetStmt {
1359
+ dbname?: string;
1360
+ setstmt?: VariableSetStmt;
1622
1361
  }
1623
- export interface GrantStmt {
1624
- is_grant?: boolean;
1625
- targtype?: GrantTargetType;
1626
- objtype?: ObjectType;
1627
- objects?: Node[];
1628
- privileges?: Node[];
1629
- grantees?: Node[];
1630
- grant_option?: boolean;
1631
- grantor?: RoleSpec;
1632
- behavior?: DropBehavior;
1362
+ export interface AlterRoleSetStmt {
1363
+ role?: RoleSpec;
1364
+ database?: string;
1365
+ setstmt?: VariableSetStmt;
1633
1366
  }
1634
- export interface ObjectWithArgs {
1635
- objname?: Node[];
1636
- objargs?: Node[];
1637
- objfuncargs?: Node[];
1638
- args_unspecified?: boolean;
1367
+ export interface CreateConversionStmt {
1368
+ conversion_name?: Node[];
1369
+ for_encoding_name?: string;
1370
+ to_encoding_name?: string;
1371
+ func_name?: Node[];
1372
+ def?: boolean;
1639
1373
  }
1640
- export interface AccessPriv {
1641
- priv_name?: string;
1642
- cols?: Node[];
1374
+ export interface CreateCastStmt {
1375
+ sourcetype?: TypeName;
1376
+ targettype?: TypeName;
1377
+ func?: ObjectWithArgs;
1378
+ context?: CoercionContext;
1379
+ inout?: boolean;
1643
1380
  }
1644
- export interface GrantRoleStmt {
1645
- granted_roles?: Node[];
1646
- grantee_roles?: Node[];
1647
- is_grant?: boolean;
1648
- opt?: Node[];
1649
- grantor?: RoleSpec;
1650
- behavior?: DropBehavior;
1381
+ export interface CreateOpClassStmt {
1382
+ opclassname?: Node[];
1383
+ opfamilyname?: Node[];
1384
+ amname?: string;
1385
+ datatype?: TypeName;
1386
+ items?: Node[];
1387
+ isDefault?: boolean;
1651
1388
  }
1652
- export interface AlterDefaultPrivilegesStmt {
1653
- options?: Node[];
1654
- action?: GrantStmt;
1389
+ export interface CreateOpFamilyStmt {
1390
+ opfamilyname?: Node[];
1391
+ amname?: string;
1655
1392
  }
1656
- export interface CopyStmt {
1657
- relation?: RangeVar;
1658
- query?: Node;
1659
- attlist?: Node[];
1660
- is_from?: boolean;
1661
- is_program?: boolean;
1662
- filename?: string;
1663
- options?: Node[];
1664
- whereClause?: Node;
1393
+ export interface AlterOpFamilyStmt {
1394
+ opfamilyname?: Node[];
1395
+ amname?: string;
1396
+ isDrop?: boolean;
1397
+ items?: Node[];
1665
1398
  }
1666
- export interface VariableSetStmt {
1667
- kind?: VariableSetKind;
1399
+ export interface PrepareStmt {
1668
1400
  name?: string;
1669
- args?: Node[];
1670
- is_local?: boolean;
1401
+ argtypes?: Node[];
1402
+ query?: Node;
1671
1403
  }
1672
- export interface VariableShowStmt {
1404
+ export interface ExecuteStmt {
1673
1405
  name?: string;
1406
+ params?: Node[];
1674
1407
  }
1675
- export interface CreateStmt {
1676
- relation?: RangeVar;
1677
- tableElts?: Node[];
1678
- inhRelations?: Node[];
1679
- partbound?: PartitionBoundSpec;
1680
- partspec?: PartitionSpec;
1681
- ofTypename?: TypeName;
1682
- constraints?: Node[];
1683
- options?: Node[];
1684
- oncommit?: OnCommitAction;
1685
- tablespacename?: string;
1686
- accessMethod?: string;
1687
- if_not_exists?: boolean;
1408
+ export interface DeallocateStmt {
1409
+ name?: string;
1688
1410
  }
1689
- export interface Constraint {
1690
- contype?: ConstrType;
1691
- conname?: string;
1692
- deferrable?: boolean;
1693
- initdeferred?: boolean;
1694
- location?: number;
1695
- is_no_inherit?: boolean;
1696
- raw_expr?: Node;
1697
- cooked_expr?: string;
1698
- generated_when?: string;
1699
- nulls_not_distinct?: boolean;
1700
- keys?: Node[];
1701
- including?: Node[];
1702
- exclusions?: Node[];
1703
- options?: Node[];
1704
- indexname?: string;
1705
- indexspace?: string;
1706
- reset_default_tblspc?: boolean;
1707
- access_method?: string;
1708
- where_clause?: Node;
1709
- pktable?: RangeVar;
1710
- fk_attrs?: Node[];
1711
- pk_attrs?: Node[];
1712
- fk_matchtype?: string;
1713
- fk_upd_action?: string;
1714
- fk_del_action?: string;
1715
- fk_del_set_cols?: Node[];
1716
- old_conpfeqop?: Node[];
1717
- old_pktable_oid?: number;
1718
- skip_validation?: boolean;
1719
- initially_valid?: boolean;
1411
+ export interface DeclareCursorStmt {
1412
+ portalname?: string;
1413
+ options?: number;
1414
+ query?: Node;
1720
1415
  }
1721
1416
  export interface CreateTableSpaceStmt {
1722
1417
  tablespacename?: string;
@@ -1728,32 +1423,74 @@ export interface DropTableSpaceStmt {
1728
1423
  tablespacename?: string;
1729
1424
  missing_ok?: boolean;
1730
1425
  }
1731
- export interface AlterTableSpaceOptionsStmt {
1732
- tablespacename?: string;
1426
+ export interface AlterObjectDependsStmt {
1427
+ objectType?: ObjectType;
1428
+ relation?: RangeVar;
1429
+ object?: Node;
1430
+ extname?: Node;
1431
+ remove?: boolean;
1432
+ }
1433
+ export interface AlterObjectSchemaStmt {
1434
+ objectType?: ObjectType;
1435
+ relation?: RangeVar;
1436
+ object?: Node;
1437
+ newschema?: string;
1438
+ missing_ok?: boolean;
1439
+ }
1440
+ export interface AlterOwnerStmt {
1441
+ objectType?: ObjectType;
1442
+ relation?: RangeVar;
1443
+ object?: Node;
1444
+ newowner?: RoleSpec;
1445
+ }
1446
+ export interface AlterOperatorStmt {
1447
+ opername?: ObjectWithArgs;
1733
1448
  options?: Node[];
1734
- isReset?: boolean;
1735
1449
  }
1736
- export interface AlterTableMoveAllStmt {
1737
- orig_tablespacename?: string;
1738
- objtype?: ObjectType;
1450
+ export interface AlterTypeStmt {
1451
+ typeName?: Node[];
1452
+ options?: Node[];
1453
+ }
1454
+ export interface DropOwnedStmt {
1739
1455
  roles?: Node[];
1740
- new_tablespacename?: string;
1741
- nowait?: boolean;
1456
+ behavior?: DropBehavior;
1742
1457
  }
1743
- export interface CreateExtensionStmt {
1744
- extname?: string;
1745
- if_not_exists?: boolean;
1746
- options?: Node[];
1458
+ export interface ReassignOwnedStmt {
1459
+ roles?: Node[];
1460
+ newrole?: RoleSpec;
1747
1461
  }
1748
- export interface AlterExtensionStmt {
1749
- extname?: string;
1462
+ export interface CompositeTypeStmt {
1463
+ typevar?: RangeVar;
1464
+ coldeflist?: Node[];
1465
+ }
1466
+ export interface CreateEnumStmt {
1467
+ typeName?: Node[];
1468
+ vals?: Node[];
1469
+ }
1470
+ export interface CreateRangeStmt {
1471
+ typeName?: Node[];
1472
+ params?: Node[];
1473
+ }
1474
+ export interface AlterEnumStmt {
1475
+ typeName?: Node[];
1476
+ oldVal?: string;
1477
+ newVal?: string;
1478
+ newValNeighbor?: string;
1479
+ newValIsAfter?: boolean;
1480
+ skipIfNewValExists?: boolean;
1481
+ }
1482
+ export interface AlterTSDictionaryStmt {
1483
+ dictname?: Node[];
1750
1484
  options?: Node[];
1751
1485
  }
1752
- export interface AlterExtensionContentsStmt {
1753
- extname?: string;
1754
- action?: number;
1755
- objtype?: ObjectType;
1756
- object?: Node;
1486
+ export interface AlterTSConfigurationStmt {
1487
+ kind?: AlterTSConfigType;
1488
+ cfgname?: Node[];
1489
+ tokentype?: Node[];
1490
+ dicts?: Node[];
1491
+ override?: boolean;
1492
+ replace?: boolean;
1493
+ missing_ok?: boolean;
1757
1494
  }
1758
1495
  export interface CreateFdwStmt {
1759
1496
  fdwname?: string;
@@ -1779,11 +1516,6 @@ export interface AlterForeignServerStmt {
1779
1516
  options?: Node[];
1780
1517
  has_version?: boolean;
1781
1518
  }
1782
- export interface CreateForeignTableStmt {
1783
- base?: CreateStmt;
1784
- servername?: string;
1785
- options?: Node[];
1786
- }
1787
1519
  export interface CreateUserMappingStmt {
1788
1520
  user?: RoleSpec;
1789
1521
  servername?: string;
@@ -1800,205 +1532,132 @@ export interface DropUserMappingStmt {
1800
1532
  servername?: string;
1801
1533
  missing_ok?: boolean;
1802
1534
  }
1803
- export interface ImportForeignSchemaStmt {
1804
- server_name?: string;
1805
- remote_schema?: string;
1806
- local_schema?: string;
1807
- list_type?: ImportForeignSchemaType;
1808
- table_list?: Node[];
1535
+ export interface AlterTableSpaceOptionsStmt {
1536
+ tablespacename?: string;
1809
1537
  options?: Node[];
1538
+ isReset?: boolean;
1810
1539
  }
1811
- export interface CreatePolicyStmt {
1812
- policy_name?: string;
1813
- table?: RangeVar;
1814
- cmd_name?: string;
1815
- permissive?: boolean;
1816
- roles?: Node[];
1817
- qual?: Node;
1818
- with_check?: Node;
1819
- }
1820
- export interface AlterPolicyStmt {
1821
- policy_name?: string;
1822
- table?: RangeVar;
1540
+ export interface AlterTableMoveAllStmt {
1541
+ orig_tablespacename?: string;
1542
+ objtype?: ObjectType;
1823
1543
  roles?: Node[];
1824
- qual?: Node;
1825
- with_check?: Node;
1826
- }
1827
- export interface CreateAmStmt {
1828
- amname?: string;
1829
- handler_name?: Node[];
1830
- amtype?: string;
1831
- }
1832
- export interface CreateTrigStmt {
1833
- replace?: boolean;
1834
- isconstraint?: boolean;
1835
- trigname?: string;
1836
- relation?: RangeVar;
1837
- funcname?: Node[];
1838
- args?: Node[];
1839
- row?: boolean;
1840
- timing?: number;
1841
- events?: number;
1842
- columns?: Node[];
1843
- whenClause?: Node;
1844
- transitionRels?: Node[];
1845
- deferrable?: boolean;
1846
- initdeferred?: boolean;
1847
- constrrel?: RangeVar;
1848
- }
1849
- export interface CreateEventTrigStmt {
1850
- trigname?: string;
1851
- eventname?: string;
1852
- whenclause?: Node[];
1853
- funcname?: Node[];
1854
- }
1855
- export interface AlterEventTrigStmt {
1856
- trigname?: string;
1857
- tgenabled?: string;
1858
- }
1859
- export interface CreatePLangStmt {
1860
- replace?: boolean;
1861
- plname?: string;
1862
- plhandler?: Node[];
1863
- plinline?: Node[];
1864
- plvalidator?: Node[];
1865
- pltrusted?: boolean;
1544
+ new_tablespacename?: string;
1545
+ nowait?: boolean;
1866
1546
  }
1867
- export interface CreateRoleStmt {
1868
- stmt_type?: RoleStmtType;
1869
- role?: string;
1870
- options?: Node[];
1547
+ export interface SecLabelStmt {
1548
+ objtype?: ObjectType;
1549
+ object?: Node;
1550
+ provider?: string;
1551
+ label?: string;
1871
1552
  }
1872
- export interface AlterRoleStmt {
1873
- role?: RoleSpec;
1553
+ export interface CreateForeignTableStmt {
1554
+ base?: CreateStmt;
1555
+ servername?: string;
1874
1556
  options?: Node[];
1875
- action?: number;
1876
1557
  }
1877
- export interface AlterRoleSetStmt {
1878
- role?: RoleSpec;
1879
- database?: string;
1880
- setstmt?: VariableSetStmt;
1881
- }
1882
- export interface DropRoleStmt {
1883
- roles?: Node[];
1884
- missing_ok?: boolean;
1885
- }
1886
- export interface CreateSeqStmt {
1887
- sequence?: RangeVar;
1558
+ export interface ImportForeignSchemaStmt {
1559
+ server_name?: string;
1560
+ remote_schema?: string;
1561
+ local_schema?: string;
1562
+ list_type?: ImportForeignSchemaType;
1563
+ table_list?: Node[];
1888
1564
  options?: Node[];
1889
- ownerId?: number;
1890
- for_identity?: boolean;
1565
+ }
1566
+ export interface CreateExtensionStmt {
1567
+ extname?: string;
1891
1568
  if_not_exists?: boolean;
1569
+ options?: Node[];
1892
1570
  }
1893
- export interface AlterSeqStmt {
1894
- sequence?: RangeVar;
1571
+ export interface AlterExtensionStmt {
1572
+ extname?: string;
1895
1573
  options?: Node[];
1896
- for_identity?: boolean;
1897
- missing_ok?: boolean;
1898
1574
  }
1899
- export interface DefineStmt {
1900
- kind?: ObjectType;
1901
- oldstyle?: boolean;
1902
- defnames?: Node[];
1903
- args?: Node[];
1904
- definition?: Node[];
1905
- if_not_exists?: boolean;
1906
- replace?: boolean;
1575
+ export interface AlterExtensionContentsStmt {
1576
+ extname?: string;
1577
+ action?: number;
1578
+ objtype?: ObjectType;
1579
+ object?: Node;
1907
1580
  }
1908
- export interface CreateDomainStmt {
1909
- domainname?: Node[];
1910
- typeName?: TypeName;
1911
- collClause?: CollateClause;
1912
- constraints?: Node[];
1581
+ export interface CreateEventTrigStmt {
1582
+ trigname?: string;
1583
+ eventname?: string;
1584
+ whenclause?: Node[];
1585
+ funcname?: Node[];
1913
1586
  }
1914
- export interface CreateOpClassStmt {
1915
- opclassname?: Node[];
1916
- opfamilyname?: Node[];
1917
- amname?: string;
1918
- datatype?: TypeName;
1919
- items?: Node[];
1920
- isDefault?: boolean;
1587
+ export interface AlterEventTrigStmt {
1588
+ trigname?: string;
1589
+ tgenabled?: string;
1921
1590
  }
1922
- export interface CreateOpClassItem {
1923
- itemtype?: number;
1924
- name?: ObjectWithArgs;
1925
- number?: number;
1926
- order_family?: Node[];
1927
- class_args?: Node[];
1928
- storedtype?: TypeName;
1591
+ export interface RefreshMatViewStmt {
1592
+ concurrent?: boolean;
1593
+ skipData?: boolean;
1594
+ relation?: RangeVar;
1929
1595
  }
1930
- export interface CreateOpFamilyStmt {
1931
- opfamilyname?: Node[];
1932
- amname?: string;
1596
+ export interface ReplicaIdentityStmt {
1597
+ identity_type?: string;
1598
+ name?: string;
1933
1599
  }
1934
- export interface AlterOpFamilyStmt {
1935
- opfamilyname?: Node[];
1936
- amname?: string;
1937
- isDrop?: boolean;
1938
- items?: Node[];
1600
+ export interface AlterSystemStmt {
1601
+ setstmt?: VariableSetStmt;
1939
1602
  }
1940
- export interface DropStmt {
1941
- objects?: Node[];
1942
- removeType?: ObjectType;
1943
- behavior?: DropBehavior;
1944
- missing_ok?: boolean;
1945
- concurrent?: boolean;
1603
+ export interface CreatePolicyStmt {
1604
+ policy_name?: string;
1605
+ table?: RangeVar;
1606
+ cmd_name?: string;
1607
+ permissive?: boolean;
1608
+ roles?: Node[];
1609
+ qual?: Node;
1610
+ with_check?: Node;
1946
1611
  }
1947
- export interface TruncateStmt {
1948
- relations?: Node[];
1949
- restart_seqs?: boolean;
1950
- behavior?: DropBehavior;
1612
+ export interface AlterPolicyStmt {
1613
+ policy_name?: string;
1614
+ table?: RangeVar;
1615
+ roles?: Node[];
1616
+ qual?: Node;
1617
+ with_check?: Node;
1951
1618
  }
1952
- export interface CommentStmt {
1953
- objtype?: ObjectType;
1954
- object?: Node;
1955
- comment?: string;
1619
+ export interface CreateTransformStmt {
1620
+ replace?: boolean;
1621
+ type_name?: TypeName;
1622
+ lang?: string;
1623
+ fromsql?: ObjectWithArgs;
1624
+ tosql?: ObjectWithArgs;
1956
1625
  }
1957
- export interface SecLabelStmt {
1958
- objtype?: ObjectType;
1959
- object?: Node;
1960
- provider?: string;
1961
- label?: string;
1626
+ export interface CreateAmStmt {
1627
+ amname?: string;
1628
+ handler_name?: Node[];
1629
+ amtype?: string;
1962
1630
  }
1963
- export interface DeclareCursorStmt {
1964
- portalname?: string;
1965
- options?: number;
1966
- query?: Node;
1631
+ export interface CreatePublicationStmt {
1632
+ pubname?: string;
1633
+ options?: Node[];
1634
+ tables?: Node[];
1635
+ for_all_tables?: boolean;
1967
1636
  }
1968
- export interface ClosePortalStmt {
1969
- portalname?: string;
1637
+ export interface AlterPublicationStmt {
1638
+ pubname?: string;
1639
+ options?: Node[];
1640
+ tables?: Node[];
1641
+ for_all_tables?: boolean;
1642
+ tableAction?: DefElemAction;
1970
1643
  }
1971
- export interface FetchStmt {
1972
- direction?: FetchDirection;
1973
- howMany?: bigint;
1974
- portalname?: string;
1975
- ismove?: boolean;
1644
+ export interface CreateSubscriptionStmt {
1645
+ subname?: string;
1646
+ conninfo?: string;
1647
+ publication?: Node[];
1648
+ options?: Node[];
1976
1649
  }
1977
- export interface IndexStmt {
1978
- idxname?: string;
1979
- relation?: RangeVar;
1980
- accessMethod?: string;
1981
- tableSpace?: string;
1982
- indexParams?: Node[];
1983
- indexIncludingParams?: Node[];
1650
+ export interface AlterSubscriptionStmt {
1651
+ kind?: AlterSubscriptionType;
1652
+ subname?: string;
1653
+ conninfo?: string;
1654
+ publication?: Node[];
1984
1655
  options?: Node[];
1985
- whereClause?: Node;
1986
- excludeOpNames?: Node[];
1987
- idxcomment?: string;
1988
- indexOid?: number;
1989
- oldNumber?: number;
1990
- oldCreateSubid?: number;
1991
- oldFirstRelfilelocatorSubid?: number;
1992
- unique?: boolean;
1993
- nulls_not_distinct?: boolean;
1994
- primary?: boolean;
1995
- isconstraint?: boolean;
1996
- deferrable?: boolean;
1997
- initdeferred?: boolean;
1998
- transformed?: boolean;
1999
- concurrent?: boolean;
2000
- if_not_exists?: boolean;
2001
- reset_default_tblspc?: boolean;
1656
+ }
1657
+ export interface DropSubscriptionStmt {
1658
+ subname?: string;
1659
+ missing_ok?: boolean;
1660
+ behavior?: DropBehavior;
2002
1661
  }
2003
1662
  export interface CreateStatsStmt {
2004
1663
  defnames?: Node[];
@@ -2006,319 +1665,435 @@ export interface CreateStatsStmt {
2006
1665
  exprs?: Node[];
2007
1666
  relations?: Node[];
2008
1667
  stxcomment?: string;
2009
- transformed?: boolean;
2010
1668
  if_not_exists?: boolean;
2011
1669
  }
2012
- export interface StatsElem {
2013
- name?: string;
2014
- expr?: Node;
1670
+ export interface AlterCollationStmt {
1671
+ collname?: Node[];
1672
+ }
1673
+ export interface CallStmt {
1674
+ funccall?: FuncCall;
1675
+ funcexpr?: FuncExpr;
2015
1676
  }
2016
1677
  export interface AlterStatsStmt {
2017
1678
  defnames?: Node[];
2018
1679
  stxstattarget?: number;
2019
1680
  missing_ok?: boolean;
2020
1681
  }
2021
- export interface CreateFunctionStmt {
2022
- is_procedure?: boolean;
2023
- replace?: boolean;
2024
- funcname?: Node[];
2025
- parameters?: Node[];
2026
- returnType?: TypeName;
2027
- options?: Node[];
2028
- sql_body?: Node;
2029
- }
2030
- export interface FunctionParameter {
2031
- name?: string;
2032
- argType?: TypeName;
2033
- mode?: FunctionParameterMode;
2034
- defexpr?: Node;
2035
- }
2036
- export interface AlterFunctionStmt {
2037
- objtype?: ObjectType;
2038
- func?: ObjectWithArgs;
2039
- actions?: Node[];
2040
- }
2041
- export interface DoStmt {
2042
- args?: Node[];
2043
- }
2044
- export interface InlineCodeBlock {
2045
- source_text?: string;
2046
- langOid?: number;
2047
- langIsTrusted?: boolean;
2048
- atomic?: boolean;
2049
- }
2050
- export interface CallStmt {
2051
- funccall?: FuncCall;
2052
- funcexpr?: FuncExpr;
2053
- outargs?: Node[];
1682
+ export interface A_Expr {
1683
+ kind?: A_Expr_Kind;
1684
+ name?: Node[];
1685
+ lexpr?: Node;
1686
+ rexpr?: Node;
1687
+ location?: number;
2054
1688
  }
2055
- export interface CallContext {
2056
- atomic?: boolean;
1689
+ export interface ColumnRef {
1690
+ fields?: Node[];
1691
+ location?: number;
2057
1692
  }
2058
- export interface RenameStmt {
2059
- renameType?: ObjectType;
2060
- relationType?: ObjectType;
2061
- relation?: RangeVar;
2062
- object?: Node;
2063
- subname?: string;
2064
- newname?: string;
2065
- behavior?: DropBehavior;
2066
- missing_ok?: boolean;
1693
+ export interface ParamRef {
1694
+ number?: number;
1695
+ location?: number;
2067
1696
  }
2068
- export interface AlterObjectDependsStmt {
2069
- objectType?: ObjectType;
2070
- relation?: RangeVar;
2071
- object?: Node;
2072
- extname?: String;
2073
- remove?: boolean;
1697
+ export interface A_Const {
1698
+ val?: Node;
1699
+ location?: number;
2074
1700
  }
2075
- export interface AlterObjectSchemaStmt {
2076
- objectType?: ObjectType;
2077
- relation?: RangeVar;
2078
- object?: Node;
2079
- newschema?: string;
2080
- missing_ok?: boolean;
1701
+ export interface FuncCall {
1702
+ funcname?: Node[];
1703
+ args?: Node[];
1704
+ agg_order?: Node[];
1705
+ agg_filter?: Node;
1706
+ agg_within_group?: boolean;
1707
+ agg_star?: boolean;
1708
+ agg_distinct?: boolean;
1709
+ func_variadic?: boolean;
1710
+ over?: WindowDef;
1711
+ location?: number;
2081
1712
  }
2082
- export interface AlterOwnerStmt {
2083
- objectType?: ObjectType;
2084
- relation?: RangeVar;
2085
- object?: Node;
2086
- newowner?: RoleSpec;
1713
+ export interface A_Star {
2087
1714
  }
2088
- export interface AlterOperatorStmt {
2089
- opername?: ObjectWithArgs;
2090
- options?: Node[];
1715
+ export interface A_Indices {
1716
+ is_slice?: boolean;
1717
+ lidx?: Node;
1718
+ uidx?: Node;
2091
1719
  }
2092
- export interface AlterTypeStmt {
2093
- typeName?: Node[];
2094
- options?: Node[];
1720
+ export interface A_Indirection {
1721
+ arg?: Node;
1722
+ indirection?: Node[];
2095
1723
  }
2096
- export interface RuleStmt {
2097
- relation?: RangeVar;
2098
- rulename?: string;
2099
- whereClause?: Node;
2100
- event?: CmdType;
2101
- instead?: boolean;
2102
- actions?: Node[];
2103
- replace?: boolean;
1724
+ export interface A_ArrayExpr {
1725
+ elements?: Node[];
1726
+ location?: number;
2104
1727
  }
2105
- export interface NotifyStmt {
2106
- conditionname?: string;
2107
- payload?: string;
1728
+ export interface ResTarget {
1729
+ name?: string;
1730
+ indirection?: Node[];
1731
+ val?: Node;
1732
+ location?: number;
2108
1733
  }
2109
- export interface ListenStmt {
2110
- conditionname?: string;
1734
+ export interface MultiAssignRef {
1735
+ source?: Node;
1736
+ colno?: number;
1737
+ ncolumns?: number;
2111
1738
  }
2112
- export interface UnlistenStmt {
2113
- conditionname?: string;
1739
+ export interface TypeCast {
1740
+ arg?: Node;
1741
+ typeName?: TypeName;
1742
+ location?: number;
2114
1743
  }
2115
- export interface TransactionStmt {
2116
- kind?: TransactionStmtKind;
2117
- options?: Node[];
2118
- savepoint_name?: string;
2119
- gid?: string;
2120
- chain?: boolean;
1744
+ export interface CollateClause {
1745
+ arg?: Node;
1746
+ collname?: Node[];
1747
+ location?: number;
2121
1748
  }
2122
- export interface CompositeTypeStmt {
2123
- typevar?: RangeVar;
2124
- coldeflist?: Node[];
1749
+ export interface SortBy {
1750
+ node?: Node;
1751
+ sortby_dir?: SortByDir;
1752
+ sortby_nulls?: SortByNulls;
1753
+ useOp?: Node[];
1754
+ location?: number;
2125
1755
  }
2126
- export interface CreateEnumStmt {
2127
- typeName?: Node[];
2128
- vals?: Node[];
1756
+ export interface WindowDef {
1757
+ name?: string;
1758
+ refname?: string;
1759
+ partitionClause?: Node[];
1760
+ orderClause?: Node[];
1761
+ frameOptions?: number;
1762
+ startOffset?: Node;
1763
+ endOffset?: Node;
1764
+ location?: number;
2129
1765
  }
2130
- export interface CreateRangeStmt {
2131
- typeName?: Node[];
2132
- params?: Node[];
1766
+ export interface RangeSubselect {
1767
+ lateral?: boolean;
1768
+ subquery?: Node;
1769
+ alias?: Alias;
2133
1770
  }
2134
- export interface AlterEnumStmt {
2135
- typeName?: Node[];
2136
- oldVal?: string;
2137
- newVal?: string;
2138
- newValNeighbor?: string;
2139
- newValIsAfter?: boolean;
2140
- skipIfNewValExists?: boolean;
1771
+ export interface RangeFunction {
1772
+ lateral?: boolean;
1773
+ ordinality?: boolean;
1774
+ is_rowsfrom?: boolean;
1775
+ functions?: Node[];
1776
+ alias?: Alias;
1777
+ coldeflist?: Node[];
2141
1778
  }
2142
- export interface ViewStmt {
2143
- view?: RangeVar;
2144
- aliases?: Node[];
2145
- query?: Node;
2146
- replace?: boolean;
2147
- options?: Node[];
2148
- withCheckOption?: ViewCheckOption;
1779
+ export interface RangeTableSample {
1780
+ relation?: Node;
1781
+ method?: Node[];
1782
+ args?: Node[];
1783
+ repeatable?: Node;
1784
+ location?: number;
2149
1785
  }
2150
- export interface LoadStmt {
2151
- filename?: string;
1786
+ export interface RangeTableFunc {
1787
+ lateral?: boolean;
1788
+ docexpr?: Node;
1789
+ rowexpr?: Node;
1790
+ namespaces?: Node[];
1791
+ columns?: Node[];
1792
+ alias?: Alias;
1793
+ location?: number;
2152
1794
  }
2153
- export interface CreatedbStmt {
2154
- dbname?: string;
2155
- options?: Node[];
1795
+ export interface RangeTableFuncCol {
1796
+ colname?: string;
1797
+ typeName?: TypeName;
1798
+ for_ordinality?: boolean;
1799
+ is_not_null?: boolean;
1800
+ colexpr?: Node;
1801
+ coldefexpr?: Node;
1802
+ location?: number;
2156
1803
  }
2157
- export interface AlterDatabaseStmt {
2158
- dbname?: string;
2159
- options?: Node[];
1804
+ export interface TypeName {
1805
+ names?: Node[];
1806
+ typeOid?: number;
1807
+ setof?: boolean;
1808
+ pct_type?: boolean;
1809
+ typmods?: Node[];
1810
+ typemod?: number;
1811
+ arrayBounds?: Node[];
1812
+ location?: number;
2160
1813
  }
2161
- export interface AlterDatabaseRefreshCollStmt {
2162
- dbname?: string;
1814
+ export interface ColumnDef {
1815
+ colname?: string;
1816
+ typeName?: TypeName;
1817
+ inhcount?: number;
1818
+ is_local?: boolean;
1819
+ is_not_null?: boolean;
1820
+ is_from_type?: boolean;
1821
+ storage?: string;
1822
+ raw_default?: Node;
1823
+ cooked_default?: Node;
1824
+ identity?: string;
1825
+ identitySequence?: RangeVar;
1826
+ generated?: string;
1827
+ collClause?: CollateClause;
1828
+ collOid?: number;
1829
+ constraints?: Node[];
1830
+ fdwoptions?: Node[];
1831
+ location?: number;
2163
1832
  }
2164
- export interface AlterDatabaseSetStmt {
2165
- dbname?: string;
2166
- setstmt?: VariableSetStmt;
1833
+ export interface IndexElem {
1834
+ name?: string;
1835
+ expr?: Node;
1836
+ indexcolname?: string;
1837
+ collation?: Node[];
1838
+ opclass?: Node[];
1839
+ opclassopts?: Node[];
1840
+ ordering?: SortByDir;
1841
+ nulls_ordering?: SortByNulls;
2167
1842
  }
2168
- export interface DropdbStmt {
2169
- dbname?: string;
2170
- missing_ok?: boolean;
1843
+ export interface Constraint {
1844
+ contype?: ConstrType;
1845
+ conname?: string;
1846
+ deferrable?: boolean;
1847
+ initdeferred?: boolean;
1848
+ location?: number;
1849
+ is_no_inherit?: boolean;
1850
+ raw_expr?: Node;
1851
+ cooked_expr?: string;
1852
+ generated_when?: string;
1853
+ keys?: Node[];
1854
+ including?: Node[];
1855
+ exclusions?: Node[];
2171
1856
  options?: Node[];
1857
+ indexname?: string;
1858
+ indexspace?: string;
1859
+ reset_default_tblspc?: boolean;
1860
+ access_method?: string;
1861
+ where_clause?: Node;
1862
+ pktable?: RangeVar;
1863
+ fk_attrs?: Node[];
1864
+ pk_attrs?: Node[];
1865
+ fk_matchtype?: string;
1866
+ fk_upd_action?: string;
1867
+ fk_del_action?: string;
1868
+ old_conpfeqop?: Node[];
1869
+ old_pktable_oid?: number;
1870
+ skip_validation?: boolean;
1871
+ initially_valid?: boolean;
2172
1872
  }
2173
- export interface AlterSystemStmt {
2174
- setstmt?: VariableSetStmt;
1873
+ export interface DefElem {
1874
+ defnamespace?: string;
1875
+ defname?: string;
1876
+ arg?: Node;
1877
+ defaction?: DefElemAction;
1878
+ location?: number;
2175
1879
  }
2176
- export interface ClusterStmt {
2177
- relation?: RangeVar;
2178
- indexname?: string;
2179
- params?: Node[];
1880
+ export interface RangeTblEntry {
1881
+ rtekind?: RTEKind;
1882
+ relid?: number;
1883
+ relkind?: string;
1884
+ rellockmode?: number;
1885
+ tablesample?: TableSampleClause;
1886
+ subquery?: Query;
1887
+ security_barrier?: boolean;
1888
+ jointype?: JoinType;
1889
+ joinmergedcols?: number;
1890
+ joinaliasvars?: Node[];
1891
+ joinleftcols?: Node[];
1892
+ joinrightcols?: Node[];
1893
+ functions?: Node[];
1894
+ funcordinality?: boolean;
1895
+ tablefunc?: TableFunc;
1896
+ values_lists?: Node[];
1897
+ ctename?: string;
1898
+ ctelevelsup?: number;
1899
+ self_reference?: boolean;
1900
+ coltypes?: Node[];
1901
+ coltypmods?: Node[];
1902
+ colcollations?: Node[];
1903
+ enrname?: string;
1904
+ enrtuples?: number;
1905
+ alias?: Alias;
1906
+ eref?: Alias;
1907
+ lateral?: boolean;
1908
+ inh?: boolean;
1909
+ inFromCl?: boolean;
1910
+ requiredPerms?: number;
1911
+ checkAsUser?: number;
1912
+ selectedCols?: bigint[];
1913
+ insertedCols?: bigint[];
1914
+ updatedCols?: bigint[];
1915
+ extraUpdatedCols?: bigint[];
1916
+ securityQuals?: Node[];
2180
1917
  }
2181
- export interface VacuumStmt {
2182
- options?: Node[];
2183
- rels?: Node[];
2184
- is_vacuumcmd?: boolean;
1918
+ export interface RangeTblFunction {
1919
+ funcexpr?: Node;
1920
+ funccolcount?: number;
1921
+ funccolnames?: Node[];
1922
+ funccoltypes?: Node[];
1923
+ funccoltypmods?: Node[];
1924
+ funccolcollations?: Node[];
1925
+ funcparams?: bigint[];
2185
1926
  }
2186
- export interface VacuumRelation {
2187
- relation?: RangeVar;
2188
- oid?: number;
2189
- va_cols?: Node[];
1927
+ export interface TableSampleClause {
1928
+ tsmhandler?: number;
1929
+ args?: Node[];
1930
+ repeatable?: Node;
2190
1931
  }
2191
- export interface ExplainStmt {
2192
- query?: Node;
2193
- options?: Node[];
1932
+ export interface WithCheckOption {
1933
+ kind?: WCOKind;
1934
+ relname?: string;
1935
+ polname?: string;
1936
+ qual?: Node;
1937
+ cascaded?: boolean;
2194
1938
  }
2195
- export interface CreateTableAsStmt {
2196
- query?: Node;
2197
- into?: IntoClause;
2198
- objtype?: ObjectType;
2199
- is_select_into?: boolean;
2200
- if_not_exists?: boolean;
1939
+ export interface SortGroupClause {
1940
+ tleSortGroupRef?: number;
1941
+ eqop?: number;
1942
+ sortop?: number;
1943
+ nulls_first?: boolean;
1944
+ hashable?: boolean;
2201
1945
  }
2202
- export interface RefreshMatViewStmt {
2203
- concurrent?: boolean;
2204
- skipData?: boolean;
2205
- relation?: RangeVar;
1946
+ export interface GroupingSet {
1947
+ kind?: GroupingSetKind;
1948
+ content?: Node[];
1949
+ location?: number;
2206
1950
  }
2207
- export interface CheckPointStmt {
1951
+ export interface WindowClause {
1952
+ name?: string;
1953
+ refname?: string;
1954
+ partitionClause?: Node[];
1955
+ orderClause?: Node[];
1956
+ frameOptions?: number;
1957
+ startOffset?: Node;
1958
+ endOffset?: Node;
1959
+ startInRangeFunc?: number;
1960
+ endInRangeFunc?: number;
1961
+ inRangeColl?: number;
1962
+ inRangeAsc?: boolean;
1963
+ inRangeNullsFirst?: boolean;
1964
+ winref?: number;
1965
+ copiedOrder?: boolean;
2208
1966
  }
2209
- export interface DiscardStmt {
2210
- target?: DiscardMode;
1967
+ export interface ObjectWithArgs {
1968
+ objname?: Node[];
1969
+ objargs?: Node[];
1970
+ args_unspecified?: boolean;
2211
1971
  }
2212
- export interface LockStmt {
2213
- relations?: Node[];
2214
- mode?: number;
2215
- nowait?: boolean;
1972
+ export interface AccessPriv {
1973
+ priv_name?: string;
1974
+ cols?: Node[];
2216
1975
  }
2217
- export interface ConstraintsSetStmt {
2218
- constraints?: Node[];
2219
- deferred?: boolean;
1976
+ export interface CreateOpClassItem {
1977
+ itemtype?: number;
1978
+ name?: ObjectWithArgs;
1979
+ number?: number;
1980
+ order_family?: Node[];
1981
+ class_args?: Node[];
1982
+ storedtype?: TypeName;
2220
1983
  }
2221
- export interface ReindexStmt {
2222
- kind?: ReindexObjectType;
1984
+ export interface TableLikeClause {
2223
1985
  relation?: RangeVar;
1986
+ options?: number;
1987
+ relationOid?: number;
1988
+ }
1989
+ export interface FunctionParameter {
2224
1990
  name?: string;
2225
- params?: Node[];
1991
+ argType?: TypeName;
1992
+ mode?: FunctionParameterMode;
1993
+ defexpr?: Node;
2226
1994
  }
2227
- export interface CreateConversionStmt {
2228
- conversion_name?: Node[];
2229
- for_encoding_name?: string;
2230
- to_encoding_name?: string;
2231
- func_name?: Node[];
2232
- def?: boolean;
1995
+ export interface LockingClause {
1996
+ lockedRels?: Node[];
1997
+ strength?: LockClauseStrength;
1998
+ waitPolicy?: LockWaitPolicy;
2233
1999
  }
2234
- export interface CreateCastStmt {
2235
- sourcetype?: TypeName;
2236
- targettype?: TypeName;
2237
- func?: ObjectWithArgs;
2238
- context?: CoercionContext;
2239
- inout?: boolean;
2000
+ export interface RowMarkClause {
2001
+ rti?: number;
2002
+ strength?: LockClauseStrength;
2003
+ waitPolicy?: LockWaitPolicy;
2004
+ pushedDown?: boolean;
2240
2005
  }
2241
- export interface CreateTransformStmt {
2242
- replace?: boolean;
2243
- type_name?: TypeName;
2244
- lang?: string;
2245
- fromsql?: ObjectWithArgs;
2246
- tosql?: ObjectWithArgs;
2006
+ export interface XmlSerialize {
2007
+ xmloption?: XmlOptionType;
2008
+ expr?: Node;
2009
+ typeName?: TypeName;
2010
+ location?: number;
2247
2011
  }
2248
- export interface PrepareStmt {
2249
- name?: string;
2250
- argtypes?: Node[];
2251
- query?: Node;
2012
+ export interface WithClause {
2013
+ ctes?: Node[];
2014
+ recursive?: boolean;
2015
+ location?: number;
2252
2016
  }
2253
- export interface ExecuteStmt {
2254
- name?: string;
2255
- params?: Node[];
2017
+ export interface InferClause {
2018
+ indexElems?: Node[];
2019
+ whereClause?: Node;
2020
+ conname?: string;
2021
+ location?: number;
2256
2022
  }
2257
- export interface DeallocateStmt {
2258
- name?: string;
2023
+ export interface OnConflictClause {
2024
+ action?: OnConflictAction;
2025
+ infer?: InferClause;
2026
+ targetList?: Node[];
2027
+ whereClause?: Node;
2028
+ location?: number;
2259
2029
  }
2260
- export interface DropOwnedStmt {
2261
- roles?: Node[];
2262
- behavior?: DropBehavior;
2030
+ export interface CommonTableExpr {
2031
+ ctename?: string;
2032
+ aliascolnames?: Node[];
2033
+ ctematerialized?: CTEMaterialize;
2034
+ ctequery?: Node;
2035
+ location?: number;
2036
+ cterecursive?: boolean;
2037
+ cterefcount?: number;
2038
+ ctecolnames?: Node[];
2039
+ ctecoltypes?: Node[];
2040
+ ctecoltypmods?: Node[];
2041
+ ctecolcollations?: Node[];
2263
2042
  }
2264
- export interface ReassignOwnedStmt {
2265
- roles?: Node[];
2266
- newrole?: RoleSpec;
2043
+ export interface RoleSpec {
2044
+ roletype?: RoleSpecType;
2045
+ rolename?: string;
2046
+ location?: number;
2267
2047
  }
2268
- export interface AlterTSDictionaryStmt {
2269
- dictname?: Node[];
2270
- options?: Node[];
2048
+ export interface TriggerTransition {
2049
+ name?: string;
2050
+ isNew?: boolean;
2051
+ isTable?: boolean;
2271
2052
  }
2272
- export interface AlterTSConfigurationStmt {
2273
- kind?: AlterTSConfigType;
2274
- cfgname?: Node[];
2275
- tokentype?: Node[];
2276
- dicts?: Node[];
2277
- override?: boolean;
2278
- replace?: boolean;
2279
- missing_ok?: boolean;
2053
+ export interface PartitionElem {
2054
+ name?: string;
2055
+ expr?: Node;
2056
+ collation?: Node[];
2057
+ opclass?: Node[];
2058
+ location?: number;
2280
2059
  }
2281
- export interface PublicationTable {
2282
- relation?: RangeVar;
2283
- whereClause?: Node;
2284
- columns?: Node[];
2060
+ export interface PartitionSpec {
2061
+ strategy?: string;
2062
+ partParams?: Node[];
2063
+ location?: number;
2285
2064
  }
2286
- export interface PublicationObjSpec {
2287
- pubobjtype?: PublicationObjSpecType;
2288
- name?: string;
2289
- pubtable?: PublicationTable;
2065
+ export interface PartitionBoundSpec {
2066
+ strategy?: string;
2067
+ is_default?: boolean;
2068
+ modulus?: number;
2069
+ remainder?: number;
2070
+ listdatums?: Node[];
2071
+ lowerdatums?: Node[];
2072
+ upperdatums?: Node[];
2290
2073
  location?: number;
2291
2074
  }
2292
- export interface CreatePublicationStmt {
2293
- pubname?: string;
2294
- options?: Node[];
2295
- pubobjects?: Node[];
2296
- for_all_tables?: boolean;
2075
+ export interface PartitionRangeDatum {
2076
+ kind?: PartitionRangeDatumKind;
2077
+ value?: Node;
2078
+ location?: number;
2297
2079
  }
2298
- export interface AlterPublicationStmt {
2299
- pubname?: string;
2300
- options?: Node[];
2301
- pubobjects?: Node[];
2302
- for_all_tables?: boolean;
2303
- action?: AlterPublicationAction;
2080
+ export interface PartitionCmd {
2081
+ name?: RangeVar;
2082
+ bound?: PartitionBoundSpec;
2304
2083
  }
2305
- export interface CreateSubscriptionStmt {
2306
- subname?: string;
2307
- conninfo?: string;
2308
- publication?: Node[];
2309
- options?: Node[];
2084
+ export interface VacuumRelation {
2085
+ relation?: RangeVar;
2086
+ oid?: number;
2087
+ va_cols?: Node[];
2310
2088
  }
2311
- export interface AlterSubscriptionStmt {
2312
- kind?: AlterSubscriptionType;
2313
- subname?: string;
2314
- conninfo?: string;
2315
- publication?: Node[];
2316
- options?: Node[];
2089
+ export interface InlineCodeBlock {
2090
+ source_text?: string;
2091
+ langOid?: number;
2092
+ langIsTrusted?: boolean;
2093
+ atomic?: boolean;
2317
2094
  }
2318
- export interface DropSubscriptionStmt {
2319
- subname?: string;
2320
- missing_ok?: boolean;
2321
- behavior?: DropBehavior;
2095
+ export interface CallContext {
2096
+ atomic?: boolean;
2322
2097
  }
2323
2098
  export interface ScanToken {
2324
2099
  start?: number;