Module CPM.Repository.CacheDB

Operations to initialize and manipulate the repository cache database.

Author: Michael Hanus

Version: March 2018

Summary of exported operations:

repositoryCacheDB :: Config -> String   
The database containing the repository cache.
tryWriteRepositoryDB :: Config -> IO ([LogEntry],Either LogEntry ())   
Writes the repository database with the current repository index if the command sqlite3 is in the path.
addPackagesToRepositoryDB :: Config -> Bool -> [Package] -> IO ([LogEntry],Either LogEntry ())   

Exported operations:

repositoryCacheDB :: Config -> String   

The database containing the repository cache.

tryWriteRepositoryDB :: Config -> IO ([LogEntry],Either LogEntry ())   

Writes the repository database with the current repository index if the command sqlite3 is in the path.

addPackagesToRepositoryDB :: Config -> Bool -> [Package] -> IO ([LogEntry],Either LogEntry ())