@postgres-language-server/wasm 0.22.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema-cache.d.ts +198 -227
  2. package/package.json +1 -1
@@ -1,268 +1,239 @@
1
1
  // Generated file, do not edit by hand, see `xtask/codegen`
2
2
  export interface SchemaCache {
3
- columns?: Column[];
4
- extensions?: Extension[];
5
- functions?: Function[];
6
- indexes?: Index[];
7
- policies?: Policy[];
8
- roles?: Role[];
9
- schemas?: Schema[];
10
- sequences?: Sequence[];
11
- tables?: Table[];
12
- triggers?: Trigger[];
13
- types?: PostgresType[];
14
- version?: Version;
3
+ columns?: Column[];
4
+ extensions?: Extension[];
5
+ functions?: Function[];
6
+ indexes?: Index[];
7
+ policies?: Policy[];
8
+ roles?: Role[];
9
+ schemas?: Schema[];
10
+ sequences?: Sequence[];
11
+ tables?: Table[];
12
+ triggers?: Trigger[];
13
+ types?: PostgresType[];
14
+ version?: Version;
15
15
  }
16
16
  export interface Column {
17
- /**
18
- * What type of class does this column belong to?
19
- */
20
- class_kind: ColumnClassKind;
21
- /**
22
- * Comment inserted via `COMMENT ON COLUMN my_table.my_comment '...'`, if present.
23
- */
24
- comment?: string;
25
- /**
26
- * The Default "value" of the column. Might be a function call, hence "_expr".
27
- */
28
- default_expr?: string;
29
- is_nullable: boolean;
30
- is_primary_key: boolean;
31
- is_unique: boolean;
32
- name: string;
33
- /**
34
- * the column number in the table
35
- */
36
- number: number;
37
- schema_name: string;
38
- table_name: string;
39
- table_oid: number;
40
- type_id: number;
41
- type_name?: string;
42
- varchar_length?: number;
17
+ /**
18
+ * What type of class does this column belong to?
19
+ */
20
+ class_kind: ColumnClassKind;
21
+ /**
22
+ * Comment inserted via `COMMENT ON COLUMN my_table.my_comment '...'`, if present.
23
+ */
24
+ comment?: string;
25
+ /**
26
+ * The Default "value" of the column. Might be a function call, hence "_expr".
27
+ */
28
+ default_expr?: string;
29
+ is_nullable: boolean;
30
+ is_primary_key: boolean;
31
+ is_unique: boolean;
32
+ name: string;
33
+ /**
34
+ * the column number in the table
35
+ */
36
+ number: number;
37
+ schema_name: string;
38
+ table_name: string;
39
+ table_oid: number;
40
+ type_id: number;
41
+ type_name?: string;
42
+ varchar_length?: number;
43
43
  }
44
44
  export interface Extension {
45
- comment?: string;
46
- default_version: string;
47
- installed_version?: string;
48
- name: string;
49
- schema?: string;
45
+ comment?: string;
46
+ default_version: string;
47
+ installed_version?: string;
48
+ name: string;
49
+ schema?: string;
50
50
  }
51
51
  export interface Function {
52
- /**
53
- * The Rust representation of the function's arguments.
54
- */
55
- args: FunctionArgs;
56
- /**
57
- * Comma-separated list of argument types, in the form required for a CREATE FUNCTION statement. For example, `"text, smallint"`. `None` if the function doesn't take any arguments.
58
- */
59
- argument_types?: string;
60
- /**
61
- * See `Behavior`.
62
- */
63
- behavior: Behavior;
64
- /**
65
- * The body of the function – the `declare [..] begin [..] end [..]` block.` Not set for internal functions.
66
- */
67
- body?: string;
68
- /**
69
- * The full definition of the function. Includes the full `CREATE OR REPLACE...` shenanigans. Not set for internal functions.
70
- */
71
- definition?: string;
72
- /**
73
- * The Id (`oid`).
74
- */
75
- id: number;
76
- /**
77
- * Comma-separated list of argument types, in the form required to identify a function in an ALTER FUNCTION statement. For example, `"text, smallint"`. `None` if the function doesn't take any arguments.
78
- */
79
- identity_argument_types?: string;
80
- /**
81
- * Does the function returns multiple values of a data type?
82
- */
83
- is_set_returning_function: boolean;
84
- kind: ProcKind;
85
- /**
86
- * e.g. `plpgsql/sql` or `internal`.
87
- */
88
- language: string;
89
- /**
90
- * The name of the function.
91
- */
92
- name: string;
93
- /**
94
- * The return type, for example "text", "trigger", or "void".
95
- */
96
- return_type?: string;
97
- /**
98
- * An ID identifying the return type. For example, `2275` refers to `cstring`. 2278 refers to `void`.
99
- */
100
- return_type_id?: number;
101
- /**
102
- * If the return type is a composite type, this will point the matching entry's `oid` column in the `pg_class` table. `None` if the function does not return a composite type.
103
- */
104
- return_type_relation_id?: number;
105
- /**
106
- * The name of the schema the function belongs to.
107
- */
108
- schema: string;
109
- /**
110
- * Is the function's security set to `Definer` (true) or `Invoker` (false)?
111
- */
112
- security_definer: boolean;
52
+ /**
53
+ * The Rust representation of the function's arguments.
54
+ */
55
+ args: FunctionArgs;
56
+ /**
57
+ * Comma-separated list of argument types, in the form required for a CREATE FUNCTION statement. For example, `"text, smallint"`. `None` if the function doesn't take any arguments.
58
+ */
59
+ argument_types?: string;
60
+ /**
61
+ * See `Behavior`.
62
+ */
63
+ behavior: Behavior;
64
+ /**
65
+ * The body of the function – the `declare [..] begin [..] end [..]` block.` Not set for internal functions.
66
+ */
67
+ body?: string;
68
+ /**
69
+ * The full definition of the function. Includes the full `CREATE OR REPLACE...` shenanigans. Not set for internal functions.
70
+ */
71
+ definition?: string;
72
+ /**
73
+ * The Id (`oid`).
74
+ */
75
+ id: number;
76
+ /**
77
+ * Comma-separated list of argument types, in the form required to identify a function in an ALTER FUNCTION statement. For example, `"text, smallint"`. `None` if the function doesn't take any arguments.
78
+ */
79
+ identity_argument_types?: string;
80
+ /**
81
+ * Does the function returns multiple values of a data type?
82
+ */
83
+ is_set_returning_function: boolean;
84
+ kind: ProcKind;
85
+ /**
86
+ * e.g. `plpgsql/sql` or `internal`.
87
+ */
88
+ language: string;
89
+ /**
90
+ * The name of the function.
91
+ */
92
+ name: string;
93
+ /**
94
+ * The return type, for example "text", "trigger", or "void".
95
+ */
96
+ return_type?: string;
97
+ /**
98
+ * An ID identifying the return type. For example, `2275` refers to `cstring`. 2278 refers to `void`.
99
+ */
100
+ return_type_id?: number;
101
+ /**
102
+ * If the return type is a composite type, this will point the matching entry's `oid` column in the `pg_class` table. `None` if the function does not return a composite type.
103
+ */
104
+ return_type_relation_id?: number;
105
+ /**
106
+ * The name of the schema the function belongs to.
107
+ */
108
+ schema: string;
109
+ /**
110
+ * Is the function's security set to `Definer` (true) or `Invoker` (false)?
111
+ */
112
+ security_definer: boolean;
113
113
  }
114
114
  export interface Index {
115
- id: number;
116
- name: string;
117
- schema: string;
118
- table_name: string;
115
+ id: number;
116
+ name: string;
117
+ schema: string;
118
+ table_name: string;
119
119
  }
120
120
  export interface Policy {
121
- command: PolicyCommand;
122
- is_permissive: boolean;
123
- name: string;
124
- role_names: string[];
125
- schema_name: string;
126
- security_qualification?: string;
127
- table_name: string;
128
- with_check?: string;
121
+ command: PolicyCommand;
122
+ is_permissive: boolean;
123
+ name: string;
124
+ role_names: string[];
125
+ schema_name: string;
126
+ security_qualification?: string;
127
+ table_name: string;
128
+ with_check?: string;
129
129
  }
130
130
  export interface Role {
131
- can_bypass_rls: boolean;
132
- can_create_db: boolean;
133
- can_create_roles: boolean;
134
- can_login: boolean;
135
- comment?: string;
136
- has_member: string[];
137
- is_super_user: boolean;
138
- member_of: string[];
139
- name: string;
131
+ can_bypass_rls: boolean;
132
+ can_create_db: boolean;
133
+ can_create_roles: boolean;
134
+ can_login: boolean;
135
+ comment?: string;
136
+ has_member: string[];
137
+ is_super_user: boolean;
138
+ member_of: string[];
139
+ name: string;
140
140
  }
141
141
  export interface Schema {
142
- allowed_creators: string[];
143
- allowed_users: string[];
144
- comment?: string;
145
- function_count: number;
146
- id: number;
147
- name: string;
148
- owner: string;
149
- table_count: number;
150
- total_size: string;
151
- view_count: number;
142
+ allowed_creators: string[];
143
+ allowed_users: string[];
144
+ comment?: string;
145
+ function_count: number;
146
+ id: number;
147
+ name: string;
148
+ owner: string;
149
+ table_count: number;
150
+ total_size: string;
151
+ view_count: number;
152
152
  }
153
153
  export interface Sequence {
154
- id: number;
155
- name: string;
156
- schema: string;
154
+ id: number;
155
+ name: string;
156
+ schema: string;
157
157
  }
158
158
  export interface Table {
159
- bytes: number;
160
- comment?: string;
161
- dead_rows_estimate: number;
162
- id: number;
163
- live_rows_estimate: number;
164
- name: string;
165
- replica_identity: ReplicaIdentity;
166
- rls_enabled: boolean;
167
- rls_forced: boolean;
168
- schema: string;
169
- size: string;
170
- table_kind: TableKind;
159
+ bytes: number;
160
+ comment?: string;
161
+ dead_rows_estimate: number;
162
+ id: number;
163
+ live_rows_estimate: number;
164
+ name: string;
165
+ replica_identity: ReplicaIdentity;
166
+ rls_enabled: boolean;
167
+ rls_forced: boolean;
168
+ schema: string;
169
+ size: string;
170
+ table_kind: TableKind;
171
171
  }
172
172
  export interface Trigger {
173
- affected: TriggerAffected;
174
- events: TriggerEvent[];
175
- name: string;
176
- proc_name: string;
177
- proc_schema: string;
178
- table_name: string;
179
- table_schema: string;
180
- timing: TriggerTiming;
173
+ affected: TriggerAffected;
174
+ events: TriggerEvent[];
175
+ name: string;
176
+ proc_name: string;
177
+ proc_schema: string;
178
+ table_name: string;
179
+ table_schema: string;
180
+ timing: TriggerTiming;
181
181
  }
182
182
  export interface PostgresType {
183
- attributes: TypeAttributes;
184
- comment?: string;
185
- enums: Enums;
186
- format: string;
187
- id: number;
188
- name: string;
189
- schema: string;
183
+ attributes: TypeAttributes;
184
+ comment?: string;
185
+ enums: Enums;
186
+ format: string;
187
+ id: number;
188
+ name: string;
189
+ schema: string;
190
190
  }
191
191
  export interface Version {
192
- active_connections?: number;
193
- major_version?: number;
194
- max_connections?: number;
195
- version?: string;
196
- version_num?: number;
192
+ active_connections?: number;
193
+ major_version?: number;
194
+ max_connections?: number;
195
+ version?: string;
196
+ version_num?: number;
197
197
  }
198
198
  export type ColumnClassKind =
199
- | "OrdinaryTable"
200
- | "View"
201
- | "MaterializedView"
202
- | "ForeignTable"
203
- | "PartitionedTable";
199
+ | "OrdinaryTable"
200
+ | "View"
201
+ | "MaterializedView"
202
+ | "ForeignTable"
203
+ | "PartitionedTable";
204
204
  export interface FunctionArgs {
205
- args: FunctionArg[];
205
+ args: FunctionArg[];
206
206
  }
207
207
  /**
208
208
  * `Behavior` describes the characteristics of the function. Is it deterministic? Does it changed due to side effects, and if so, when?
209
209
  */
210
- export type Behavior =
211
- | "Immutable"
212
- | "Stable"
213
- | "Volatile";
214
- export type ProcKind =
215
- | "Function"
216
- | "Aggregate"
217
- | "Window"
218
- | "Procedure";
219
- export type PolicyCommand =
220
- | "Select"
221
- | "Insert"
222
- | "Update"
223
- | "Delete"
224
- | "All";
225
- export type ReplicaIdentity =
226
- | "Default"
227
- | "Index"
228
- | "Full"
229
- | "Nothing";
230
- export type TableKind =
231
- | "Ordinary"
232
- | "View"
233
- | "MaterializedView"
234
- | "Partitioned";
235
- export type TriggerAffected =
236
- | "Row"
237
- | "Statement";
238
- export type TriggerEvent =
239
- | "Insert"
240
- | "Delete"
241
- | "Update"
242
- | "Truncate";
243
- export type TriggerTiming =
244
- | "Before"
245
- | "After"
246
- | "Instead";
210
+ export type Behavior = "Immutable" | "Stable" | "Volatile";
211
+ export type ProcKind = "Function" | "Aggregate" | "Window" | "Procedure";
212
+ export type PolicyCommand = "Select" | "Insert" | "Update" | "Delete" | "All";
213
+ export type ReplicaIdentity = "Default" | "Index" | "Full" | "Nothing";
214
+ export type TableKind = "Ordinary" | "View" | "MaterializedView" | "Partitioned";
215
+ export type TriggerAffected = "Row" | "Statement";
216
+ export type TriggerEvent = "Insert" | "Delete" | "Update" | "Truncate";
217
+ export type TriggerTiming = "Before" | "After" | "Instead";
247
218
  export interface TypeAttributes {
248
- attrs: PostgresTypeAttribute[];
219
+ attrs: PostgresTypeAttribute[];
249
220
  }
250
221
  export interface Enums {
251
- values: string[];
222
+ values: string[];
252
223
  }
253
224
  export interface FunctionArg {
254
- has_default?: boolean;
255
- /**
256
- * `in`, `out`, or `inout`.
257
- */
258
- mode: string;
259
- name: string;
260
- /**
261
- * Refers to the argument type's ID in the `pg_type` table.
262
- */
263
- type_id: number;
225
+ has_default?: boolean;
226
+ /**
227
+ * `in`, `out`, or `inout`.
228
+ */
229
+ mode: string;
230
+ name: string;
231
+ /**
232
+ * Refers to the argument type's ID in the `pg_type` table.
233
+ */
234
+ type_id: number;
264
235
  }
265
236
  export interface PostgresTypeAttribute {
266
- name: string;
267
- type_id: number;
237
+ name: string;
238
+ type_id: number;
268
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postgres-language-server/wasm",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "WebAssembly bindings for the Postgres Language Server",
5
5
  "keywords": [
6
6
  "language-server",