add inode cache to the db

Renamed the db to keys, since it is various info about a Keys.

Dropping a key will update its pointer files, as long as their content can
be verified to be unmodified. This falls back to checksum verification, but
I want it to use an InodeCache of the key, for speed. But, I have not made
anything populate that cache yet.
This commit is contained in:
Joey Hess 2015-12-09 17:00:37 -04:00
parent 3311c48631
commit 5e8c628d2e
Failed to extract signature
9 changed files with 117 additions and 53 deletions

14
Database/Keys/Types.hs Normal file
View file

@ -0,0 +1,14 @@
{- Sqlite database of information about Keys, data types.
-
- Copyright 2015 Joey Hess <id@joeyh.name>
-:
- Licensed under the GNU GPL version 3 or higher.
-}
module Database.Keys.Types (
DbHandle(..)
) where
import qualified Database.Handle as H
newtype DbHandle = DbHandle H.DbHandle