@postgrestools/cli-x86_64-linux-musl 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@postgrestools/cli-x86_64-linux-musl",
3
+ "version": "0.14.0",
4
+ "license": "MIT or Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/supabase-community/postgres-language-server.git",
8
+ "directory": "packages/@postgrestools/postgrestools"
9
+ },
10
+ "engines": {
11
+ "node": ">=20"
12
+ },
13
+ "os": [
14
+ "linux"
15
+ ],
16
+ "cpu": [
17
+ "x64"
18
+ ],
19
+ "libc": "musl"
20
+ }
package/postgrestools ADDED
Binary file
package/schema.json ADDED
@@ -0,0 +1,532 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Configuration",
4
+ "description": "The configuration that is contained inside the configuration file.",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "description": "A field for the [JSON schema](https://json-schema.org/) specification",
9
+ "type": [
10
+ "string",
11
+ "null"
12
+ ]
13
+ },
14
+ "db": {
15
+ "description": "The configuration of the database connection",
16
+ "anyOf": [
17
+ {
18
+ "$ref": "#/definitions/DatabaseConfiguration"
19
+ },
20
+ {
21
+ "type": "null"
22
+ }
23
+ ]
24
+ },
25
+ "extends": {
26
+ "description": "A list of paths to other JSON files, used to extends the current configuration.",
27
+ "anyOf": [
28
+ {
29
+ "$ref": "#/definitions/StringSet"
30
+ },
31
+ {
32
+ "type": "null"
33
+ }
34
+ ]
35
+ },
36
+ "files": {
37
+ "description": "The configuration of the filesystem",
38
+ "anyOf": [
39
+ {
40
+ "$ref": "#/definitions/FilesConfiguration"
41
+ },
42
+ {
43
+ "type": "null"
44
+ }
45
+ ]
46
+ },
47
+ "linter": {
48
+ "description": "The configuration for the linter",
49
+ "anyOf": [
50
+ {
51
+ "$ref": "#/definitions/LinterConfiguration"
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ]
57
+ },
58
+ "migrations": {
59
+ "description": "Configure migrations",
60
+ "anyOf": [
61
+ {
62
+ "$ref": "#/definitions/MigrationsConfiguration"
63
+ },
64
+ {
65
+ "type": "null"
66
+ }
67
+ ]
68
+ },
69
+ "plpgsqlCheck": {
70
+ "description": "The configuration for type checking",
71
+ "anyOf": [
72
+ {
73
+ "$ref": "#/definitions/PlPgSqlCheckConfiguration"
74
+ },
75
+ {
76
+ "type": "null"
77
+ }
78
+ ]
79
+ },
80
+ "typecheck": {
81
+ "description": "The configuration for type checking",
82
+ "anyOf": [
83
+ {
84
+ "$ref": "#/definitions/TypecheckConfiguration"
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ]
90
+ },
91
+ "vcs": {
92
+ "description": "The configuration of the VCS integration",
93
+ "anyOf": [
94
+ {
95
+ "$ref": "#/definitions/VcsConfiguration"
96
+ },
97
+ {
98
+ "type": "null"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ "additionalProperties": false,
104
+ "definitions": {
105
+ "DatabaseConfiguration": {
106
+ "description": "The configuration of the database connection.",
107
+ "type": "object",
108
+ "properties": {
109
+ "allowStatementExecutionsAgainst": {
110
+ "anyOf": [
111
+ {
112
+ "$ref": "#/definitions/StringSet"
113
+ },
114
+ {
115
+ "type": "null"
116
+ }
117
+ ]
118
+ },
119
+ "connTimeoutSecs": {
120
+ "description": "The connection timeout in seconds.",
121
+ "type": [
122
+ "integer",
123
+ "null"
124
+ ],
125
+ "format": "uint16",
126
+ "minimum": 0.0
127
+ },
128
+ "database": {
129
+ "description": "The name of the database.",
130
+ "type": [
131
+ "string",
132
+ "null"
133
+ ]
134
+ },
135
+ "host": {
136
+ "description": "The host of the database. Required if you want database-related features. All else falls back to sensible defaults.",
137
+ "type": [
138
+ "string",
139
+ "null"
140
+ ]
141
+ },
142
+ "password": {
143
+ "description": "The password to connect to the database.",
144
+ "type": [
145
+ "string",
146
+ "null"
147
+ ]
148
+ },
149
+ "port": {
150
+ "description": "The port of the database.",
151
+ "type": [
152
+ "integer",
153
+ "null"
154
+ ],
155
+ "format": "uint16",
156
+ "minimum": 0.0
157
+ },
158
+ "username": {
159
+ "description": "The username to connect to the database.",
160
+ "type": [
161
+ "string",
162
+ "null"
163
+ ]
164
+ }
165
+ },
166
+ "additionalProperties": false
167
+ },
168
+ "FilesConfiguration": {
169
+ "description": "The configuration of the filesystem",
170
+ "type": "object",
171
+ "properties": {
172
+ "ignore": {
173
+ "description": "A list of Unix shell style patterns. Will ignore files/folders that will match these patterns.",
174
+ "anyOf": [
175
+ {
176
+ "$ref": "#/definitions/StringSet"
177
+ },
178
+ {
179
+ "type": "null"
180
+ }
181
+ ]
182
+ },
183
+ "include": {
184
+ "description": "A list of Unix shell style patterns. Will handle only those files/folders that will match these patterns.",
185
+ "anyOf": [
186
+ {
187
+ "$ref": "#/definitions/StringSet"
188
+ },
189
+ {
190
+ "type": "null"
191
+ }
192
+ ]
193
+ },
194
+ "maxSize": {
195
+ "description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB",
196
+ "type": [
197
+ "integer",
198
+ "null"
199
+ ],
200
+ "format": "uint64",
201
+ "minimum": 1.0
202
+ }
203
+ },
204
+ "additionalProperties": false
205
+ },
206
+ "LinterConfiguration": {
207
+ "type": "object",
208
+ "properties": {
209
+ "enabled": {
210
+ "description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
211
+ "type": [
212
+ "boolean",
213
+ "null"
214
+ ]
215
+ },
216
+ "ignore": {
217
+ "description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
218
+ "anyOf": [
219
+ {
220
+ "$ref": "#/definitions/StringSet"
221
+ },
222
+ {
223
+ "type": "null"
224
+ }
225
+ ]
226
+ },
227
+ "include": {
228
+ "description": "A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.",
229
+ "anyOf": [
230
+ {
231
+ "$ref": "#/definitions/StringSet"
232
+ },
233
+ {
234
+ "type": "null"
235
+ }
236
+ ]
237
+ },
238
+ "rules": {
239
+ "description": "List of rules",
240
+ "anyOf": [
241
+ {
242
+ "$ref": "#/definitions/Rules"
243
+ },
244
+ {
245
+ "type": "null"
246
+ }
247
+ ]
248
+ }
249
+ },
250
+ "additionalProperties": false
251
+ },
252
+ "MigrationsConfiguration": {
253
+ "description": "The configuration of the filesystem",
254
+ "type": "object",
255
+ "properties": {
256
+ "after": {
257
+ "description": "Ignore any migrations before this timestamp",
258
+ "type": [
259
+ "integer",
260
+ "null"
261
+ ],
262
+ "format": "uint64",
263
+ "minimum": 0.0
264
+ },
265
+ "migrationsDir": {
266
+ "description": "The directory where the migration files are stored",
267
+ "type": [
268
+ "string",
269
+ "null"
270
+ ]
271
+ }
272
+ },
273
+ "additionalProperties": false
274
+ },
275
+ "PlPgSqlCheckConfiguration": {
276
+ "description": "The configuration for type checking.",
277
+ "type": "object",
278
+ "properties": {
279
+ "enabled": {
280
+ "description": "if `false`, it disables the feature and pglpgsql_check won't be executed. `true` by default",
281
+ "type": [
282
+ "boolean",
283
+ "null"
284
+ ]
285
+ }
286
+ },
287
+ "additionalProperties": false
288
+ },
289
+ "RuleConfiguration": {
290
+ "anyOf": [
291
+ {
292
+ "$ref": "#/definitions/RulePlainConfiguration"
293
+ },
294
+ {
295
+ "$ref": "#/definitions/RuleWithNoOptions"
296
+ }
297
+ ]
298
+ },
299
+ "RulePlainConfiguration": {
300
+ "type": "string",
301
+ "enum": [
302
+ "warn",
303
+ "error",
304
+ "info",
305
+ "off"
306
+ ]
307
+ },
308
+ "RuleWithNoOptions": {
309
+ "type": "object",
310
+ "required": [
311
+ "level"
312
+ ],
313
+ "properties": {
314
+ "level": {
315
+ "description": "The severity of the emitted diagnostics by the rule",
316
+ "allOf": [
317
+ {
318
+ "$ref": "#/definitions/RulePlainConfiguration"
319
+ }
320
+ ]
321
+ }
322
+ },
323
+ "additionalProperties": false
324
+ },
325
+ "Rules": {
326
+ "type": "object",
327
+ "properties": {
328
+ "all": {
329
+ "description": "It enables ALL rules. The rules that belong to `nursery` won't be enabled.",
330
+ "type": [
331
+ "boolean",
332
+ "null"
333
+ ]
334
+ },
335
+ "recommended": {
336
+ "description": "It enables the lint rules recommended by Postgres Tools. `true` by default.",
337
+ "type": [
338
+ "boolean",
339
+ "null"
340
+ ]
341
+ },
342
+ "safety": {
343
+ "anyOf": [
344
+ {
345
+ "$ref": "#/definitions/Safety"
346
+ },
347
+ {
348
+ "type": "null"
349
+ }
350
+ ]
351
+ }
352
+ },
353
+ "additionalProperties": false
354
+ },
355
+ "Safety": {
356
+ "description": "A list of rules that belong to this group",
357
+ "type": "object",
358
+ "properties": {
359
+ "addingRequiredField": {
360
+ "description": "Adding a new column that is NOT NULL and has no default value to an existing table effectively makes it required.",
361
+ "anyOf": [
362
+ {
363
+ "$ref": "#/definitions/RuleConfiguration"
364
+ },
365
+ {
366
+ "type": "null"
367
+ }
368
+ ]
369
+ },
370
+ "all": {
371
+ "description": "It enables ALL rules for this group.",
372
+ "type": [
373
+ "boolean",
374
+ "null"
375
+ ]
376
+ },
377
+ "banDropColumn": {
378
+ "description": "Dropping a column may break existing clients.",
379
+ "anyOf": [
380
+ {
381
+ "$ref": "#/definitions/RuleConfiguration"
382
+ },
383
+ {
384
+ "type": "null"
385
+ }
386
+ ]
387
+ },
388
+ "banDropDatabase": {
389
+ "description": "Dropping a database may break existing clients (and everything else, really).",
390
+ "anyOf": [
391
+ {
392
+ "$ref": "#/definitions/RuleConfiguration"
393
+ },
394
+ {
395
+ "type": "null"
396
+ }
397
+ ]
398
+ },
399
+ "banDropNotNull": {
400
+ "description": "Dropping a NOT NULL constraint may break existing clients.",
401
+ "anyOf": [
402
+ {
403
+ "$ref": "#/definitions/RuleConfiguration"
404
+ },
405
+ {
406
+ "type": "null"
407
+ }
408
+ ]
409
+ },
410
+ "banDropTable": {
411
+ "description": "Dropping a table may break existing clients.",
412
+ "anyOf": [
413
+ {
414
+ "$ref": "#/definitions/RuleConfiguration"
415
+ },
416
+ {
417
+ "type": "null"
418
+ }
419
+ ]
420
+ },
421
+ "banTruncateCascade": {
422
+ "description": "Using TRUNCATE's CASCADE option will truncate any tables that are also foreign-keyed to the specified tables.",
423
+ "anyOf": [
424
+ {
425
+ "$ref": "#/definitions/RuleConfiguration"
426
+ },
427
+ {
428
+ "type": "null"
429
+ }
430
+ ]
431
+ },
432
+ "recommended": {
433
+ "description": "It enables the recommended rules for this group",
434
+ "type": [
435
+ "boolean",
436
+ "null"
437
+ ]
438
+ }
439
+ },
440
+ "additionalProperties": false
441
+ },
442
+ "StringSet": {
443
+ "type": "array",
444
+ "items": {
445
+ "type": "string"
446
+ },
447
+ "uniqueItems": true
448
+ },
449
+ "TypecheckConfiguration": {
450
+ "description": "The configuration for type checking.",
451
+ "type": "object",
452
+ "properties": {
453
+ "enabled": {
454
+ "description": "if `false`, it disables the feature and the typechecker won't be executed. `true` by default",
455
+ "type": [
456
+ "boolean",
457
+ "null"
458
+ ]
459
+ },
460
+ "searchPath": {
461
+ "description": "Default search path schemas for type checking. Can be a list of schema names or glob patterns like [\"public\", \"app_*\"]. If not specified, defaults to [\"public\"].",
462
+ "anyOf": [
463
+ {
464
+ "$ref": "#/definitions/StringSet"
465
+ },
466
+ {
467
+ "type": "null"
468
+ }
469
+ ]
470
+ }
471
+ },
472
+ "additionalProperties": false
473
+ },
474
+ "VcsClientKind": {
475
+ "oneOf": [
476
+ {
477
+ "description": "Integration with the git client as VCS",
478
+ "type": "string",
479
+ "enum": [
480
+ "git"
481
+ ]
482
+ }
483
+ ]
484
+ },
485
+ "VcsConfiguration": {
486
+ "description": "Set of properties to integrate with a VCS software.",
487
+ "type": "object",
488
+ "properties": {
489
+ "clientKind": {
490
+ "description": "The kind of client.",
491
+ "anyOf": [
492
+ {
493
+ "$ref": "#/definitions/VcsClientKind"
494
+ },
495
+ {
496
+ "type": "null"
497
+ }
498
+ ]
499
+ },
500
+ "defaultBranch": {
501
+ "description": "The main branch of the project",
502
+ "type": [
503
+ "string",
504
+ "null"
505
+ ]
506
+ },
507
+ "enabled": {
508
+ "description": "Whether we should integrate itself with the VCS client",
509
+ "type": [
510
+ "boolean",
511
+ "null"
512
+ ]
513
+ },
514
+ "root": {
515
+ "description": "The folder where we should check for VCS files. By default, we will use the same folder where `postgrestools.jsonc` was found.\n\nIf we can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, we won't use the VCS integration, and a diagnostic will be emitted",
516
+ "type": [
517
+ "string",
518
+ "null"
519
+ ]
520
+ },
521
+ "useIgnoreFile": {
522
+ "description": "Whether we should use the VCS ignore file. When [true], we will ignore the files specified in the ignore file.",
523
+ "type": [
524
+ "boolean",
525
+ "null"
526
+ ]
527
+ }
528
+ },
529
+ "additionalProperties": false
530
+ }
531
+ }
532
+ }