@ttoss/postgresdb-cli 0.1.22 → 0.1.24

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 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
- DB_NAME=postgres
19
- DB_USERNAME=postgres
20
- DB_PASSWORD=mysecretpassword
21
- DB_HOST=localhost
22
- DB_PORT=5432
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:dev": "ttoss-postgresdb sync -e Development",
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.21",
14
+ version: "0.1.24",
15
15
  description: "A library to handle PostgreSQL database actions through the command line",
16
16
  license: "MIT",
17
17
  author: "ttoss",
@@ -33,7 +33,7 @@ var package_default = {
33
33
  dependencies: {
34
34
  commander: "^14.0.0",
35
35
  dotenv: "^17.0.1",
36
- esbuild: "^0.25.8",
36
+ esbuild: "^0.27.0",
37
37
  "sequelize-erd": "^1.3.1"
38
38
  },
39
39
  devDependencies: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/postgresdb-cli",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "A library to handle PostgreSQL database actions through the command line",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "commander": "^14.0.0",
26
26
  "dotenv": "^17.0.1",
27
- "esbuild": "^0.25.8",
27
+ "esbuild": "^0.27.0",
28
28
  "sequelize-erd": "^1.3.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "jest": "^30.2.0",
32
32
  "tsup": "^8.5.1",
33
- "@ttoss/config": "^1.35.11"
33
+ "@ttoss/config": "^1.35.12"
34
34
  },
35
35
  "keywords": [
36
36
  "database",