git-annex/Database
Joey Hess 8a3beabf35
use RawFilePath for opening sqlite databases
Fix a crash opening sqlite databases when run in a non-unicode locale,
with a remote that uses a non-unicode filepath. In that situation
converting to Text fails.

The fix needs git-annex to be built with persistent-sqlite 2.13.3.
Building against older versions still works, but that version is used when
building with stack.

Database.RawFilePath is a lot of code copied from persistent-sqlite and
lightly modified, since only 1 function in persistent-sqlite was made to
support RawFilePath. This is a bit of a pain, and I hope that
persistent-sqlite will eventually switch to using OsPath, allowing this
module to be removed from git-annex.

Sponsored-by: k0ld on Patreon
2023-12-26 18:31:52 -04:00
..
Keys sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Benchmark.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
ContentIdentifier.hs use RawFilePath for opening sqlite databases 2023-12-26 18:31:52 -04:00
Export.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Fsck.hs enable TypeOperators 2023-08-01 18:33:39 -04:00
Handle.hs use RawFilePath for opening sqlite databases 2023-12-26 18:31:52 -04:00
ImportFeed.hs speed up populating the importfeed database 2023-10-25 13:00:17 -04:00
Init.hs use RawFilePath for opening sqlite databases 2023-12-26 18:31:52 -04:00
Keys.hs Revert "revert recent bug fix temporarily for release" 2023-02-14 14:11:23 -04:00
Queue.hs fix MVar deadlock when sqlite commit fails 2022-06-06 12:16:55 -04:00
RawFilePath.hs use RawFilePath for opening sqlite databases 2023-12-26 18:31:52 -04:00
Types.hs sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
Utility.hs Sped up sqlite inserts 2x when built with persistent 2.14.5.0 2023-03-31 14:38:25 -04:00