feat(authz): add database-backed PermissionStore

Adds dbPermissionStore/ensureAuthzTables/authzMigrationSql, backed by
_wrn_authz_assignment and _wrn_authz_grant tables, plus a ./db subpath
export. Passes the identical 19-test store-conformance suite the memory
adapter passes, including tenant-scope isolation.
This commit is contained in:
2026-08-04 20:22:31 +05:30
parent 218f5e2dd6
commit 3fa3fce5df
6 changed files with 153 additions and 1 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
"type": "module",
"main": "src/index.ts",
"exports": {
".": "./src/index.ts"
".": "./src/index.ts",
"./db": "./src/db.ts"
}
}