Monorepo for Tangled โ€” https://tangled.org

*/db: actually enable foreign keys #459

merged
opened by winter.bsky.social targeting master from winter.bsky.social/core: push-zrzuvtwqqook

sql.DB pools connections, which means that there's a good chance that our foreign keys aren't actually being enforced, unless a goroutine happens to be using the connection that was made when we set pragma foreign_keys = 1.

Signed-off-by: Winter winter@winter.cafe

0
by winter.bsky.social 0 comments
expand 1 commit
*/db: actually enable foreign keys
sign up or login to add to the discussion
expand 1 commit
*/db: actually enable foreign keys

Poke me when this is merged, I have another fix in this vein that I wish I could submit stacked but I can't because I made it as unstacked.

sign up or login to add to the discussion
expand 2 commits
*/db: actually enable foreign keys
*/db: set sqlite options across all connections in the pool
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:pdrr2fgsfkvfbznqucjmyeee/sh.tangled.repo.pull/3lw5tk2axhd22