Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add foreign_keys accessor to SQLite Database objects, which modifies …
…the foreign_keys PRAGMA available in 3.6.19+ I hadn't noticed this before, but all PRAGMA modification operations in the shared SQLite adapter are not thread safe. The only reason this wasn't caught before is because it's likely few people use them and few people run SQLite in a threaded environment, and the intersection of those groups is probably very small. A future commit will address this by making all PRAGMA modification operators apply directly on the underlying connection objects inside Database#connect, by specifying the options as database options when calling Sequel.connect. That's the only thread-safe simple way to do it.
- Loading branch information
1 parent
e63f16a
commit 34dbeb5
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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