@arivie/db-postgres 0.1.0 → 0.1.2
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/CHANGELOG.md +14 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -353,6 +353,9 @@ async function setupRole(sql, role, options) {
|
|
|
353
353
|
await sql.unsafe(
|
|
354
354
|
`ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO ${roleIdent}`
|
|
355
355
|
);
|
|
356
|
+
await sql.unsafe(
|
|
357
|
+
`GRANT ${roleIdent} TO CURRENT_USER WITH SET TRUE`
|
|
358
|
+
);
|
|
356
359
|
} finally {
|
|
357
360
|
await sql.unsafe(`SELECT pg_advisory_unlock(${SETUP_ROLE_LOCK_KEY})`);
|
|
358
361
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arivie/db-postgres",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Arivie Postgres adapter — role-scoped execute, introspect, owner-identity verification.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"CHANGELOG.md"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@arivie/core": "
|
|
22
|
+
"@arivie/core": "1.1.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"postgres": "^3.4.9"
|