feat(database): RLS scaffolder + connection pool tuning#360
Draft
ditadi wants to merge 4 commits intostack/database/uifrom
Draft
feat(database): RLS scaffolder + connection pool tuning#360ditadi wants to merge 4 commits intostack/database/uifrom
ditadi wants to merge 4 commits intostack/database/uifrom
Conversation
This was referenced May 6, 2026
632baf7 to
ce1bc25
Compare
e07bd1c to
b661aa1
Compare
ce1bc25 to
27e63d1
Compare
27e63d1 to
ae63b94
Compare
ae63b94 to
4073a3f
Compare
Numbered SQL migration plus paste snippet; owner:/tenant: shorthands supported.
… drop user pool max to 2
4073a3f to
6c8c9a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 Stacked PR
Use this link to review incremental changes.
Summary
Advanced multi-tenant primitives:
appkit db rls <entity> <spec>to scaffold Postgres RLS policies (FORCE RLS, journal-aware, multi-verb, owner_email shorthand, dry-run)current_user_id/current_tenant_idhelpers on first scaffoldrls.sessionVariable(defaultapp.user_id)oboPoolMaxto 100, drop per-user pool max to 2 (more users, same fan-out)Stack (7/8)
Test plan