@ttoss/postgresdb-cli 0.1.23 → 0.1.25
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 -8
- package/dist/esm/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ Define your `db` object using [@ttoss/postgresdb](https://ttoss.dev/docs/modules
|
|
|
15
15
|
Set connection environment variables in `.env` files:
|
|
16
16
|
|
|
17
17
|
```env
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
DATABASE_NAME=postgres
|
|
19
|
+
DATABASE_USER=postgres
|
|
20
|
+
DATABASE_PASSWORD=mysecretpassword
|
|
21
|
+
DATABASE_HOST=localhost
|
|
22
|
+
DATABASE_PORT=5432
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
**Environment-specific configuration:** Use `--environment` or `-e` flag to load `.env.<environment>` files (e.g., `.env.Production`, `.env.Staging`) instead of the default `.env`. This prevents accidental use of production credentials.
|
|
@@ -58,13 +58,13 @@ This loads variables from `.env.Production`.
|
|
|
58
58
|
```json
|
|
59
59
|
{
|
|
60
60
|
"scripts": {
|
|
61
|
-
"sync
|
|
62
|
-
"sync:staging": "ttoss-postgresdb sync --alter -e Staging",
|
|
63
|
-
"sync:prod": "ttoss-postgresdb sync --alter -e Production"
|
|
61
|
+
"sync": "ttoss-postgresdb sync"
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
```
|
|
67
65
|
|
|
66
|
+
Then run `pnpm sync -e Development` or `pnpm sync --alter -e Production` from the command line.
|
|
67
|
+
|
|
68
68
|
**Options:**
|
|
69
69
|
|
|
70
70
|
- `--db-path, -d`: Path to `db` object file (default: `./src/db.js`)
|
package/dist/esm/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { Command } from "commander";
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@ttoss/postgresdb-cli",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.25",
|
|
15
15
|
description: "A library to handle PostgreSQL database actions through the command line",
|
|
16
16
|
license: "MIT",
|
|
17
17
|
author: "ttoss",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/postgresdb-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "A library to handle PostgreSQL database actions through the command line",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"jest": "^30.2.0",
|
|
32
32
|
"tsup": "^8.5.1",
|
|
33
|
-
"@ttoss/config": "^1.
|
|
33
|
+
"@ttoss/config": "^1.36.0"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"database",
|