pgpm 5.36.1 → 5.37.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.
|
@@ -18,6 +18,7 @@ Options:
|
|
|
18
18
|
--username <username> Username for the database user
|
|
19
19
|
--password <password> Password for the database user
|
|
20
20
|
--test Add test users (app_user, app_admin) with default passwords
|
|
21
|
+
--bypassrls Allow the login to bypass RLS (off by default; not for request roles)
|
|
21
22
|
--cwd <directory> Working directory (default: current directory)
|
|
22
23
|
|
|
23
24
|
Examples:
|
|
@@ -33,6 +34,10 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
33
34
|
}
|
|
34
35
|
const pgEnv = (0, pg_env_1.getPgEnvOptions)();
|
|
35
36
|
const isTest = argv.test;
|
|
37
|
+
const bypassRls = argv.bypassrls === true;
|
|
38
|
+
if (isTest && bypassRls) {
|
|
39
|
+
throw new Error('--bypassrls cannot be used with --test');
|
|
40
|
+
}
|
|
36
41
|
// Get merged options (defaults + config + env + overrides)
|
|
37
42
|
const db = (0, env_1.getConnEnvOptions)();
|
|
38
43
|
const init = new core_1.PgpmInit(pgEnv);
|
|
@@ -81,7 +86,10 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
81
86
|
log.info('Operation cancelled.');
|
|
82
87
|
return;
|
|
83
88
|
}
|
|
84
|
-
await init.bootstrapDbRoles(username, password, db.roles
|
|
89
|
+
await init.bootstrapDbRoles(username, password, db.roles, {
|
|
90
|
+
useLocksForRoles: db.useLocksForRoles,
|
|
91
|
+
bypassRls
|
|
92
|
+
});
|
|
85
93
|
log.success(`Database user "${username}" added successfully.`);
|
|
86
94
|
}
|
|
87
95
|
}
|
|
@@ -16,6 +16,7 @@ Options:
|
|
|
16
16
|
--username <username> Username for the database user
|
|
17
17
|
--password <password> Password for the database user
|
|
18
18
|
--test Add test users (app_user, app_admin) with default passwords
|
|
19
|
+
--bypassrls Allow the login to bypass RLS (off by default; not for request roles)
|
|
19
20
|
--cwd <directory> Working directory (default: current directory)
|
|
20
21
|
|
|
21
22
|
Examples:
|
|
@@ -31,6 +32,10 @@ export default async (argv, prompter, _options) => {
|
|
|
31
32
|
}
|
|
32
33
|
const pgEnv = getPgEnvOptions();
|
|
33
34
|
const isTest = argv.test;
|
|
35
|
+
const bypassRls = argv.bypassrls === true;
|
|
36
|
+
if (isTest && bypassRls) {
|
|
37
|
+
throw new Error('--bypassrls cannot be used with --test');
|
|
38
|
+
}
|
|
34
39
|
// Get merged options (defaults + config + env + overrides)
|
|
35
40
|
const db = getConnEnvOptions();
|
|
36
41
|
const init = new PgpmInit(pgEnv);
|
|
@@ -79,7 +84,10 @@ export default async (argv, prompter, _options) => {
|
|
|
79
84
|
log.info('Operation cancelled.');
|
|
80
85
|
return;
|
|
81
86
|
}
|
|
82
|
-
await init.bootstrapDbRoles(username, password, db.roles
|
|
87
|
+
await init.bootstrapDbRoles(username, password, db.roles, {
|
|
88
|
+
useLocksForRoles: db.useLocksForRoles,
|
|
89
|
+
bypassRls
|
|
90
|
+
});
|
|
83
91
|
log.success(`Database user "${username}" added successfully.`);
|
|
84
92
|
}
|
|
85
93
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.37.0",
|
|
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.
|
|
51
|
-
"@pgpmjs/diff": "^0.8.
|
|
52
|
-
"@pgpmjs/env": "^2.47.
|
|
53
|
-
"@pgpmjs/export": "^1.23.
|
|
54
|
-
"@pgpmjs/import": "^0.8.
|
|
50
|
+
"@pgpmjs/core": "^7.33.0",
|
|
51
|
+
"@pgpmjs/diff": "^0.8.10",
|
|
52
|
+
"@pgpmjs/env": "^2.47.1",
|
|
53
|
+
"@pgpmjs/export": "^1.23.12",
|
|
54
|
+
"@pgpmjs/import": "^0.8.10",
|
|
55
55
|
"@pgpmjs/logger": "^2.26.0",
|
|
56
|
-
"@pgpmjs/slice": "^0.19.
|
|
57
|
-
"@pgpmjs/transform": "^0.28.
|
|
58
|
-
"@pgpmjs/types": "^2.57.
|
|
56
|
+
"@pgpmjs/slice": "^0.19.10",
|
|
57
|
+
"@pgpmjs/transform": "^0.28.10",
|
|
58
|
+
"@pgpmjs/types": "^2.57.1",
|
|
59
59
|
"@pgsql/quotes": "^18.2.4",
|
|
60
60
|
"appstash": "^0.8.0",
|
|
61
61
|
"cross-spawn": "^7.0.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"genomic": "^5.6.6",
|
|
64
64
|
"inquirerer": "^4.9.4",
|
|
65
65
|
"js-yaml": "^4.1.0",
|
|
66
|
-
"pg-cache": "^3.29.
|
|
67
|
-
"pg-env": "^1.32.
|
|
66
|
+
"pg-cache": "^3.29.8",
|
|
67
|
+
"pg-env": "^1.32.1",
|
|
68
68
|
"pgsql-deparser": "^18.3.12",
|
|
69
69
|
"semver": "^7.8.5",
|
|
70
70
|
"shelljs": "^0.10.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"pg",
|
|
83
83
|
"pgsql"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "bf845a1b0701f57f6900d9e2a3c66ea48e125cc3"
|
|
86
86
|
}
|