@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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.1.2
2
+
3
+ ### Patch Changes
4
+
5
+ - Updated dependencies
6
+ - @arivie/core@1.1.0
7
+
8
+ ## 0.1.1
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+ - @arivie/core@1.0.0
14
+
1
15
  ## 0.0.0
2
16
 
3
17
  - Initial Postgres adapter (Sprint 0 / C04).
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.0",
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": "0.1.0"
22
+ "@arivie/core": "1.1.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "postgres": "^3.4.9"