@hesed/psql 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -25
- package/oclif.manifest.json +12 -12
- package/package.json +1 -4
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ $ npm install -g @hesed/psql
|
|
|
26
26
|
$ pg COMMAND
|
|
27
27
|
running command...
|
|
28
28
|
$ pg (--version)
|
|
29
|
-
@hesed/psql/0.1
|
|
29
|
+
@hesed/psql/0.2.1 linux-x64 node-v22.22.0
|
|
30
30
|
$ pg --help [COMMAND]
|
|
31
31
|
USAGE
|
|
32
32
|
$ pg COMMAND
|
|
@@ -53,16 +53,15 @@ Add a PostgreSQL connection profile
|
|
|
53
53
|
|
|
54
54
|
```
|
|
55
55
|
USAGE
|
|
56
|
-
$ pg psql auth add
|
|
57
|
-
[-u <value>]
|
|
56
|
+
$ pg psql auth add -d <value> --host <value> -p <value> -P <value> --profile <value> -u <value> [--json] [--ssl]
|
|
58
57
|
|
|
59
58
|
FLAGS
|
|
60
|
-
-P, --port=<value> PostgreSQL port
|
|
61
|
-
-d, --database=<value> Database name
|
|
62
|
-
-p, --password=<value> Password
|
|
63
|
-
-u, --user=<value> Username
|
|
64
|
-
--host=<value> PostgreSQL host
|
|
65
|
-
--profile=<value> Profile name
|
|
59
|
+
-P, --port=<value> (required) PostgreSQL port
|
|
60
|
+
-d, --database=<value> (required) Database name
|
|
61
|
+
-p, --password=<value> (required) Password
|
|
62
|
+
-u, --user=<value> (required) Username
|
|
63
|
+
--host=<value> (required) PostgreSQL host
|
|
64
|
+
--profile=<value> (required) Profile name
|
|
66
65
|
--[no-]ssl Use SSL
|
|
67
66
|
|
|
68
67
|
GLOBAL FLAGS
|
|
@@ -77,7 +76,7 @@ EXAMPLES
|
|
|
77
76
|
$ pg psql auth add --no-ssl
|
|
78
77
|
```
|
|
79
78
|
|
|
80
|
-
_See code: [src/commands/psql/auth/add.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
79
|
+
_See code: [src/commands/psql/auth/add.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/auth/add.ts)_
|
|
81
80
|
|
|
82
81
|
## `pg psql auth test`
|
|
83
82
|
|
|
@@ -102,7 +101,7 @@ EXAMPLES
|
|
|
102
101
|
$ pg psql auth test --profile staging
|
|
103
102
|
```
|
|
104
103
|
|
|
105
|
-
_See code: [src/commands/psql/auth/test.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
104
|
+
_See code: [src/commands/psql/auth/test.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/auth/test.ts)_
|
|
106
105
|
|
|
107
106
|
## `pg psql auth update`
|
|
108
107
|
|
|
@@ -110,15 +109,14 @@ Update an existing PostgreSQL connection profile
|
|
|
110
109
|
|
|
111
110
|
```
|
|
112
111
|
USAGE
|
|
113
|
-
$ pg psql auth update
|
|
114
|
-
[-u <value>]
|
|
112
|
+
$ pg psql auth update -d <value> --host <value> -p <value> -P <value> -u <value> [--json] [--profile <value>] [--ssl]
|
|
115
113
|
|
|
116
114
|
FLAGS
|
|
117
|
-
-P, --port=<value> PostgreSQL port
|
|
118
|
-
-d, --database=<value> Database name
|
|
119
|
-
-p, --password=<value> Password
|
|
120
|
-
-u, --user=<value> Username
|
|
121
|
-
--host=<value> PostgreSQL host
|
|
115
|
+
-P, --port=<value> (required) PostgreSQL port
|
|
116
|
+
-d, --database=<value> (required) Database name
|
|
117
|
+
-p, --password=<value> (required) Password
|
|
118
|
+
-u, --user=<value> (required) Username
|
|
119
|
+
--host=<value> (required) PostgreSQL host
|
|
122
120
|
--profile=<value> Profile name to update
|
|
123
121
|
--[no-]ssl Use SSL
|
|
124
122
|
|
|
@@ -134,7 +132,7 @@ EXAMPLES
|
|
|
134
132
|
$ pg psql auth update --profile staging
|
|
135
133
|
```
|
|
136
134
|
|
|
137
|
-
_See code: [src/commands/psql/auth/update.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
135
|
+
_See code: [src/commands/psql/auth/update.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/auth/update.ts)_
|
|
138
136
|
|
|
139
137
|
## `pg psql databases`
|
|
140
138
|
|
|
@@ -156,7 +154,7 @@ EXAMPLES
|
|
|
156
154
|
$ pg psql databases --profile staging
|
|
157
155
|
```
|
|
158
156
|
|
|
159
|
-
_See code: [src/commands/psql/databases.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
157
|
+
_See code: [src/commands/psql/databases.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/databases.ts)_
|
|
160
158
|
|
|
161
159
|
## `pg psql describe-table TABLE`
|
|
162
160
|
|
|
@@ -183,7 +181,7 @@ EXAMPLES
|
|
|
183
181
|
$ pg psql describe-table orders --format json --profile prod
|
|
184
182
|
```
|
|
185
183
|
|
|
186
|
-
_See code: [src/commands/psql/describe-table.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
184
|
+
_See code: [src/commands/psql/describe-table.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/describe-table.ts)_
|
|
187
185
|
|
|
188
186
|
## `pg psql explain-query QUERY`
|
|
189
187
|
|
|
@@ -210,7 +208,7 @@ EXAMPLES
|
|
|
210
208
|
$ pg psql explain-query "SELECT * FROM orders JOIN users ON orders.user_id = users.id" --format json
|
|
211
209
|
```
|
|
212
210
|
|
|
213
|
-
_See code: [src/commands/psql/explain-query.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
211
|
+
_See code: [src/commands/psql/explain-query.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/explain-query.ts)_
|
|
214
212
|
|
|
215
213
|
## `pg psql indexes TABLE`
|
|
216
214
|
|
|
@@ -237,7 +235,7 @@ EXAMPLES
|
|
|
237
235
|
$ pg psql indexes orders --format json --profile prod
|
|
238
236
|
```
|
|
239
237
|
|
|
240
|
-
_See code: [src/commands/psql/indexes.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
238
|
+
_See code: [src/commands/psql/indexes.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/indexes.ts)_
|
|
241
239
|
|
|
242
240
|
## `pg psql query QUERY`
|
|
243
241
|
|
|
@@ -267,7 +265,7 @@ EXAMPLES
|
|
|
267
265
|
$ pg psql query "DELETE FROM sessions" --profile prod --skip-confirmation
|
|
268
266
|
```
|
|
269
267
|
|
|
270
|
-
_See code: [src/commands/psql/query.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
268
|
+
_See code: [src/commands/psql/query.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/query.ts)_
|
|
271
269
|
|
|
272
270
|
## `pg psql tables`
|
|
273
271
|
|
|
@@ -289,5 +287,5 @@ EXAMPLES
|
|
|
289
287
|
$ pg psql tables --profile local
|
|
290
288
|
```
|
|
291
289
|
|
|
292
|
-
_See code: [src/commands/psql/tables.ts](https://github.com/hesedcasa/psql/blob/v0.1
|
|
290
|
+
_See code: [src/commands/psql/tables.ts](https://github.com/hesedcasa/psql/blob/v0.2.1/src/commands/psql/tables.ts)_
|
|
293
291
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"char": "d",
|
|
309
309
|
"description": "Database name",
|
|
310
310
|
"name": "database",
|
|
311
|
-
"required":
|
|
311
|
+
"required": true,
|
|
312
312
|
"hasDynamicHelp": false,
|
|
313
313
|
"multiple": false,
|
|
314
314
|
"type": "option"
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"host": {
|
|
317
317
|
"description": "PostgreSQL host",
|
|
318
318
|
"name": "host",
|
|
319
|
-
"required":
|
|
319
|
+
"required": true,
|
|
320
320
|
"hasDynamicHelp": false,
|
|
321
321
|
"multiple": false,
|
|
322
322
|
"type": "option"
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"char": "p",
|
|
326
326
|
"description": "Password",
|
|
327
327
|
"name": "password",
|
|
328
|
-
"required":
|
|
328
|
+
"required": true,
|
|
329
329
|
"hasDynamicHelp": false,
|
|
330
330
|
"multiple": false,
|
|
331
331
|
"type": "option"
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
"char": "P",
|
|
335
335
|
"description": "PostgreSQL port",
|
|
336
336
|
"name": "port",
|
|
337
|
-
"required":
|
|
337
|
+
"required": true,
|
|
338
338
|
"hasDynamicHelp": false,
|
|
339
339
|
"multiple": false,
|
|
340
340
|
"type": "option"
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
"profile": {
|
|
343
343
|
"description": "Profile name",
|
|
344
344
|
"name": "profile",
|
|
345
|
-
"required":
|
|
345
|
+
"required": true,
|
|
346
346
|
"hasDynamicHelp": false,
|
|
347
347
|
"multiple": false,
|
|
348
348
|
"type": "option"
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"char": "u",
|
|
359
359
|
"description": "Username",
|
|
360
360
|
"name": "user",
|
|
361
|
-
"required":
|
|
361
|
+
"required": true,
|
|
362
362
|
"hasDynamicHelp": false,
|
|
363
363
|
"multiple": false,
|
|
364
364
|
"type": "option"
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
"char": "d",
|
|
444
444
|
"description": "Database name",
|
|
445
445
|
"name": "database",
|
|
446
|
-
"required":
|
|
446
|
+
"required": true,
|
|
447
447
|
"hasDynamicHelp": false,
|
|
448
448
|
"multiple": false,
|
|
449
449
|
"type": "option"
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
"host": {
|
|
452
452
|
"description": "PostgreSQL host",
|
|
453
453
|
"name": "host",
|
|
454
|
-
"required":
|
|
454
|
+
"required": true,
|
|
455
455
|
"hasDynamicHelp": false,
|
|
456
456
|
"multiple": false,
|
|
457
457
|
"type": "option"
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
"char": "p",
|
|
461
461
|
"description": "Password",
|
|
462
462
|
"name": "password",
|
|
463
|
-
"required":
|
|
463
|
+
"required": true,
|
|
464
464
|
"hasDynamicHelp": false,
|
|
465
465
|
"multiple": false,
|
|
466
466
|
"type": "option"
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"char": "P",
|
|
470
470
|
"description": "PostgreSQL port",
|
|
471
471
|
"name": "port",
|
|
472
|
-
"required":
|
|
472
|
+
"required": true,
|
|
473
473
|
"hasDynamicHelp": false,
|
|
474
474
|
"multiple": false,
|
|
475
475
|
"type": "option"
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
"char": "u",
|
|
494
494
|
"description": "Username",
|
|
495
495
|
"name": "user",
|
|
496
|
-
"required":
|
|
496
|
+
"required": true,
|
|
497
497
|
"hasDynamicHelp": false,
|
|
498
498
|
"multiple": false,
|
|
499
499
|
"type": "option"
|
|
@@ -517,5 +517,5 @@
|
|
|
517
517
|
]
|
|
518
518
|
}
|
|
519
519
|
},
|
|
520
|
-
"version": "0.1
|
|
520
|
+
"version": "0.2.1"
|
|
521
521
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hesed/psql",
|
|
3
3
|
"description": "CLI for PostgreSQL database interaction",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"author": "Hesed",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pg": "./bin/run.js"
|
|
@@ -58,9 +58,6 @@
|
|
|
58
58
|
"bin": "pg",
|
|
59
59
|
"dirname": "psql",
|
|
60
60
|
"commands": "./dist/commands",
|
|
61
|
-
"plugins": [
|
|
62
|
-
"@oclif/plugin-*"
|
|
63
|
-
],
|
|
64
61
|
"topicSeparator": " ",
|
|
65
62
|
"topics": {}
|
|
66
63
|
},
|