fixed: applied SQLite connection settings to every pooled connection #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sqlite-connection-pragmas"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Foreign keys and the busy timeout were set with
PRAGMAstatements after opening, so they applied only to the pool's first connection. A replaced connection would run without foreign keys, and deleting a user would leave their sessions and grants behind.Both settings now go in the connection string as
_pragmaparameters, which modernc applies to every connection it opens. A path that already has a query, such as afile:URI, gets them joined with&.The new test disables idle connections so each query opens a fresh connection, then checks both settings. It fails on
main.🤖 Generated with Claude Code