@hesed/psql 0.3.0 → 0.4.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 +13 -13
- package/dist/commands/psql/auth/add.js +1 -0
- package/dist/commands/psql/auth/delete.js +1 -1
- package/dist/commands/psql/auth/list.js +1 -1
- package/dist/commands/psql/auth/profile.js +1 -1
- package/dist/commands/psql/auth/test.js +1 -0
- package/dist/commands/psql/auth/update.js +1 -0
- package/dist/psql/postgres-client.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
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.
|
|
29
|
+
@hesed/psql/0.4.1 linux-x64 node-v24.16.0
|
|
30
30
|
$ pg --help [COMMAND]
|
|
31
31
|
USAGE
|
|
32
32
|
$ pg COMMAND
|
|
@@ -80,7 +80,7 @@ EXAMPLES
|
|
|
80
80
|
$ pg psql auth add -p prod
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
_See code: [src/commands/psql/auth/add.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
83
|
+
_See code: [src/commands/psql/auth/add.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/auth/add.ts)_
|
|
84
84
|
|
|
85
85
|
## `pg psql auth delete`
|
|
86
86
|
|
|
@@ -105,7 +105,7 @@ EXAMPLES
|
|
|
105
105
|
$ pg psql auth delete -p prod
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
_See code: [src/commands/psql/auth/delete.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
108
|
+
_See code: [src/commands/psql/auth/delete.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/auth/delete.ts)_
|
|
109
109
|
|
|
110
110
|
## `pg psql auth list`
|
|
111
111
|
|
|
@@ -125,7 +125,7 @@ EXAMPLES
|
|
|
125
125
|
$ pg psql auth list
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
_See code: [src/commands/psql/auth/list.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
128
|
+
_See code: [src/commands/psql/auth/list.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/auth/list.ts)_
|
|
129
129
|
|
|
130
130
|
## `pg psql auth profile`
|
|
131
131
|
|
|
@@ -150,7 +150,7 @@ EXAMPLES
|
|
|
150
150
|
$ pg psql auth profile --default test
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
_See code: [src/commands/psql/auth/profile.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
153
|
+
_See code: [src/commands/psql/auth/profile.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/auth/profile.ts)_
|
|
154
154
|
|
|
155
155
|
## `pg psql auth test`
|
|
156
156
|
|
|
@@ -175,7 +175,7 @@ EXAMPLES
|
|
|
175
175
|
$ pg psql auth test -p prod
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
_See code: [src/commands/psql/auth/test.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
178
|
+
_See code: [src/commands/psql/auth/test.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/auth/test.ts)_
|
|
179
179
|
|
|
180
180
|
## `pg psql auth update`
|
|
181
181
|
|
|
@@ -207,7 +207,7 @@ EXAMPLES
|
|
|
207
207
|
$ pg psql auth update -p test
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
_See code: [src/commands/psql/auth/update.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
210
|
+
_See code: [src/commands/psql/auth/update.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/auth/update.ts)_
|
|
211
211
|
|
|
212
212
|
## `pg psql databases`
|
|
213
213
|
|
|
@@ -229,7 +229,7 @@ EXAMPLES
|
|
|
229
229
|
$ pg psql databases --profile staging
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
-
_See code: [src/commands/psql/databases.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
232
|
+
_See code: [src/commands/psql/databases.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/databases.ts)_
|
|
233
233
|
|
|
234
234
|
## `pg psql describe-table TABLE`
|
|
235
235
|
|
|
@@ -256,7 +256,7 @@ EXAMPLES
|
|
|
256
256
|
$ pg psql describe-table orders --format json --profile prod
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
-
_See code: [src/commands/psql/describe-table.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
259
|
+
_See code: [src/commands/psql/describe-table.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/describe-table.ts)_
|
|
260
260
|
|
|
261
261
|
## `pg psql explain-query QUERY`
|
|
262
262
|
|
|
@@ -283,7 +283,7 @@ EXAMPLES
|
|
|
283
283
|
$ pg psql explain-query "SELECT * FROM orders JOIN users ON orders.user_id = users.id" --format json
|
|
284
284
|
```
|
|
285
285
|
|
|
286
|
-
_See code: [src/commands/psql/explain-query.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
286
|
+
_See code: [src/commands/psql/explain-query.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/explain-query.ts)_
|
|
287
287
|
|
|
288
288
|
## `pg psql indexes TABLE`
|
|
289
289
|
|
|
@@ -310,7 +310,7 @@ EXAMPLES
|
|
|
310
310
|
$ pg psql indexes orders --format json --profile prod
|
|
311
311
|
```
|
|
312
312
|
|
|
313
|
-
_See code: [src/commands/psql/indexes.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
313
|
+
_See code: [src/commands/psql/indexes.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/indexes.ts)_
|
|
314
314
|
|
|
315
315
|
## `pg psql query QUERY`
|
|
316
316
|
|
|
@@ -340,7 +340,7 @@ EXAMPLES
|
|
|
340
340
|
$ pg psql query "DELETE FROM sessions" --profile prod --skip-confirmation
|
|
341
341
|
```
|
|
342
342
|
|
|
343
|
-
_See code: [src/commands/psql/query.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
343
|
+
_See code: [src/commands/psql/query.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/query.ts)_
|
|
344
344
|
|
|
345
345
|
## `pg psql tables`
|
|
346
346
|
|
|
@@ -362,5 +362,5 @@ EXAMPLES
|
|
|
362
362
|
$ pg psql tables --profile local
|
|
363
363
|
```
|
|
364
364
|
|
|
365
|
-
_See code: [src/commands/psql/tables.ts](https://github.com/hesedcasa/psql/blob/v0.
|
|
365
|
+
_See code: [src/commands/psql/tables.ts](https://github.com/hesedcasa/psql/blob/v0.4.1/src/commands/psql/tables.ts)_
|
|
366
366
|
<!-- commandsstop -->
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createAuthDeleteCommand } from '@hesed/plugin-lib';
|
|
2
|
-
export default createAuthDeleteCommand();
|
|
2
|
+
export default createAuthDeleteCommand({ configFile: 'pg-config.json' });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createAuthListCommand } from '@hesed/plugin-lib';
|
|
2
|
-
export default createAuthListCommand();
|
|
2
|
+
export default createAuthListCommand({ configFile: 'pg-config.json' });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createAuthProfileCommand } from '@hesed/plugin-lib';
|
|
2
|
-
export default createAuthProfileCommand();
|
|
2
|
+
export default createAuthProfileCommand({ configFile: 'pg-config.json' });
|
|
@@ -10,7 +10,7 @@ const DEFAULT_SAFETY_CONFIG = {
|
|
|
10
10
|
async function initPg(config) {
|
|
11
11
|
if (pgUtil)
|
|
12
12
|
return pgUtil;
|
|
13
|
-
const pm = createProfileManager(config);
|
|
13
|
+
const pm = createProfileManager(config, undefined, 'pg-config.json');
|
|
14
14
|
const profiles = await pm.readProfiles();
|
|
15
15
|
if (!profiles) {
|
|
16
16
|
throw new Error('No profile found.');
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hesed/psql",
|
|
3
3
|
"description": "CLI for PostgreSQL database interaction",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"author": "Hesed",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pg": "./bin/run.js"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/hesedcasa/psql/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@hesed/plugin-lib": "^0.
|
|
11
|
+
"@hesed/plugin-lib": "^0.9.0",
|
|
12
12
|
"@inquirer/prompts": "^8.3.0",
|
|
13
13
|
"@oclif/core": "^4",
|
|
14
14
|
"@toon-format/toon": "^2.1.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"oclif": "^4",
|
|
36
36
|
"prettier": "^3.8.1",
|
|
37
37
|
"shx": "^0.4.0",
|
|
38
|
-
"sinon": "^
|
|
38
|
+
"sinon": "^22.0.0",
|
|
39
39
|
"ts-node": "^10",
|
|
40
40
|
"ts-prune": "^0.10.3",
|
|
41
41
|
"typescript": "^5"
|