@usecontextlayer/pgx 0.2.0 → 0.3.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/README.md +8 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,15 +13,21 @@ pgx start --data-dir ./my-data
|
|
|
13
13
|
# Check if a server is running
|
|
14
14
|
pgx status --data-dir ./my-data
|
|
15
15
|
|
|
16
|
+
# Print only the connection URL (fails if not running)
|
|
17
|
+
pgx url --data-dir ./my-data
|
|
18
|
+
|
|
16
19
|
# Stop a running server
|
|
17
20
|
pgx stop --data-dir ./my-data
|
|
18
21
|
```
|
|
19
22
|
|
|
23
|
+
You can also set `PGX_DATA_DIR` instead of passing `--data-dir`.
|
|
24
|
+
`PGX_DATA_DIR` takes precedence when both are provided.
|
|
25
|
+
|
|
20
26
|
### Start options
|
|
21
27
|
|
|
22
28
|
| Flag | Default | Description |
|
|
23
29
|
|------|---------|-------------|
|
|
24
|
-
| `--data-dir` | *(
|
|
30
|
+
| `--data-dir` | *(optional)* | Path to the PostgreSQL data directory (overridden by `PGX_DATA_DIR`) |
|
|
25
31
|
| `--port` | `0` (random) | Port to listen on |
|
|
26
32
|
| `--host` | `localhost` | Host to bind to |
|
|
27
33
|
| `--daemon` | `false` | Exit after startup, leaving the server running |
|
|
@@ -43,4 +49,4 @@ Alongside the data directory, `pgx` writes two sidecar files:
|
|
|
43
49
|
- `<data-dir>.pgx-state.json` — host and port metadata
|
|
44
50
|
- `<data-dir>.pgx-password` — managed password (chmod 600 on unix)
|
|
45
51
|
|
|
46
|
-
These let `status` and `
|
|
52
|
+
These let `status`, `stop`, and `url` work from separate processes.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"name": "@usecontextlayer/pgx",
|
|
25
|
-
"version": "0.
|
|
25
|
+
"version": "0.3.0"
|
|
26
26
|
},
|
|
27
27
|
"node_modules/@isaacs/balanced-match": {
|
|
28
28
|
"engines": {
|
|
@@ -514,5 +514,5 @@
|
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
516
|
"requires": true,
|
|
517
|
-
"version": "0.
|
|
517
|
+
"version": "0.3.0"
|
|
518
518
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/usecontextlayer/pgx/releases/download/v0.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/usecontextlayer/pgx/releases/download/v0.3.0",
|
|
3
3
|
"bin": {
|
|
4
4
|
"pgx": "run-pgx.js"
|
|
5
5
|
},
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"zipExt": ".tar.xz"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"version": "0.
|
|
85
|
+
"version": "0.3.0",
|
|
86
86
|
"volta": {
|
|
87
87
|
"node": "18.14.1",
|
|
88
88
|
"npm": "9.5.0"
|