pgpm 5.35.7 → 5.36.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/commands/env.js +7 -10
- package/esm/commands/env.js +7 -10
- package/package.json +12 -12
package/commands/env.js
CHANGED
|
@@ -14,7 +14,7 @@ Database Profiles:
|
|
|
14
14
|
--supabase Use Supabase local development profile
|
|
15
15
|
|
|
16
16
|
Additional Services:
|
|
17
|
-
--rustfs Include RustFS
|
|
17
|
+
--rustfs Include the local RustFS object-store credentials
|
|
18
18
|
|
|
19
19
|
Modes:
|
|
20
20
|
No command Print export statements for shell evaluation
|
|
@@ -23,7 +23,8 @@ Modes:
|
|
|
23
23
|
Options:
|
|
24
24
|
--help, -h Show this help message
|
|
25
25
|
--supabase Use Supabase profile instead of default Postgres
|
|
26
|
-
--rustfs Include
|
|
26
|
+
--rustfs Include STORAGE_ACCESS_KEY_ID, STORAGE_SECRET_ACCESS_KEY
|
|
27
|
+
(endpoint/provider/region are storage_module rows, not env)
|
|
27
28
|
|
|
28
29
|
Examples:
|
|
29
30
|
pgpm env Print default Postgres env exports
|
|
@@ -44,10 +45,8 @@ const DEFAULT_PROFILE = {
|
|
|
44
45
|
...pg_env_1.defaultPgConfig
|
|
45
46
|
};
|
|
46
47
|
const OBJECT_STORE_PROFILE = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
secretKey: 'constructive-dev-secret',
|
|
50
|
-
region: 'us-east-1',
|
|
48
|
+
accessKeyId: 'constructive',
|
|
49
|
+
secretAccessKey: 'constructive-dev-secret',
|
|
51
50
|
};
|
|
52
51
|
function configToEnvVars(config, objectStore) {
|
|
53
52
|
const vars = {
|
|
@@ -58,10 +57,8 @@ function configToEnvVars(config, objectStore) {
|
|
|
58
57
|
PGDATABASE: config.database
|
|
59
58
|
};
|
|
60
59
|
if (objectStore) {
|
|
61
|
-
vars.
|
|
62
|
-
vars.
|
|
63
|
-
vars.AWS_SECRET_KEY = objectStore.secretKey;
|
|
64
|
-
vars.AWS_REGION = objectStore.region;
|
|
60
|
+
vars.STORAGE_ACCESS_KEY_ID = objectStore.accessKeyId;
|
|
61
|
+
vars.STORAGE_SECRET_ACCESS_KEY = objectStore.secretAccessKey;
|
|
65
62
|
}
|
|
66
63
|
return vars;
|
|
67
64
|
}
|
package/esm/commands/env.js
CHANGED
|
@@ -12,7 +12,7 @@ Database Profiles:
|
|
|
12
12
|
--supabase Use Supabase local development profile
|
|
13
13
|
|
|
14
14
|
Additional Services:
|
|
15
|
-
--rustfs Include RustFS
|
|
15
|
+
--rustfs Include the local RustFS object-store credentials
|
|
16
16
|
|
|
17
17
|
Modes:
|
|
18
18
|
No command Print export statements for shell evaluation
|
|
@@ -21,7 +21,8 @@ Modes:
|
|
|
21
21
|
Options:
|
|
22
22
|
--help, -h Show this help message
|
|
23
23
|
--supabase Use Supabase profile instead of default Postgres
|
|
24
|
-
--rustfs Include
|
|
24
|
+
--rustfs Include STORAGE_ACCESS_KEY_ID, STORAGE_SECRET_ACCESS_KEY
|
|
25
|
+
(endpoint/provider/region are storage_module rows, not env)
|
|
25
26
|
|
|
26
27
|
Examples:
|
|
27
28
|
pgpm env Print default Postgres env exports
|
|
@@ -42,10 +43,8 @@ const DEFAULT_PROFILE = {
|
|
|
42
43
|
...defaultPgConfig
|
|
43
44
|
};
|
|
44
45
|
const OBJECT_STORE_PROFILE = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
secretKey: 'constructive-dev-secret',
|
|
48
|
-
region: 'us-east-1',
|
|
46
|
+
accessKeyId: 'constructive',
|
|
47
|
+
secretAccessKey: 'constructive-dev-secret',
|
|
49
48
|
};
|
|
50
49
|
function configToEnvVars(config, objectStore) {
|
|
51
50
|
const vars = {
|
|
@@ -56,10 +55,8 @@ function configToEnvVars(config, objectStore) {
|
|
|
56
55
|
PGDATABASE: config.database
|
|
57
56
|
};
|
|
58
57
|
if (objectStore) {
|
|
59
|
-
vars.
|
|
60
|
-
vars.
|
|
61
|
-
vars.AWS_SECRET_KEY = objectStore.secretKey;
|
|
62
|
-
vars.AWS_REGION = objectStore.region;
|
|
58
|
+
vars.STORAGE_ACCESS_KEY_ID = objectStore.accessKeyId;
|
|
59
|
+
vars.STORAGE_SECRET_ACCESS_KEY = objectStore.secretAccessKey;
|
|
63
60
|
}
|
|
64
61
|
return vars;
|
|
65
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.36.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@inquirerer/utils": "^3.3.13",
|
|
50
|
-
"@pgpmjs/core": "^7.32.
|
|
51
|
-
"@pgpmjs/diff": "^0.8.
|
|
52
|
-
"@pgpmjs/env": "^2.
|
|
53
|
-
"@pgpmjs/export": "^1.23.
|
|
54
|
-
"@pgpmjs/import": "^0.8.
|
|
50
|
+
"@pgpmjs/core": "^7.32.8",
|
|
51
|
+
"@pgpmjs/diff": "^0.8.9",
|
|
52
|
+
"@pgpmjs/env": "^2.47.0",
|
|
53
|
+
"@pgpmjs/export": "^1.23.10",
|
|
54
|
+
"@pgpmjs/import": "^0.8.9",
|
|
55
55
|
"@pgpmjs/logger": "^2.26.0",
|
|
56
|
-
"@pgpmjs/slice": "^0.19.
|
|
57
|
-
"@pgpmjs/transform": "^0.28.
|
|
58
|
-
"@pgpmjs/types": "^2.
|
|
56
|
+
"@pgpmjs/slice": "^0.19.9",
|
|
57
|
+
"@pgpmjs/transform": "^0.28.9",
|
|
58
|
+
"@pgpmjs/types": "^2.57.0",
|
|
59
59
|
"@pgsql/quotes": "^18.2.4",
|
|
60
60
|
"appstash": "^0.8.0",
|
|
61
61
|
"cross-spawn": "^7.0.6",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"genomic": "^5.6.6",
|
|
64
64
|
"inquirerer": "^4.9.4",
|
|
65
65
|
"js-yaml": "^4.1.0",
|
|
66
|
-
"pg-cache": "^3.29.
|
|
66
|
+
"pg-cache": "^3.29.7",
|
|
67
67
|
"pg-env": "^1.32.0",
|
|
68
|
-
"pgsql-deparser": "^18.3.
|
|
68
|
+
"pgsql-deparser": "^18.3.12",
|
|
69
69
|
"semver": "^7.8.5",
|
|
70
70
|
"shelljs": "^0.10.0",
|
|
71
71
|
"yanse": "^0.2.2"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"pg",
|
|
83
83
|
"pgsql"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "850fc5e75a3a31e2db2fc28aa58377e886fe3c6a"
|
|
86
86
|
}
|