hnix-store-db-0.1.0.0: Nix store database support
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Nix.Store.DB.Run

Synopsis

Documentation

systemConnectionInfo :: SqliteConnectionInfo Source #

SqliteConnectionInfo for accessing systems database in nixvarnixdb/db.sqlite Currently set to immutable

runSystemSqlite :: SqlPersistM a -> IO a Source #

Run with systemConnectionInfo

memoryConnectionInfo :: SqliteConnectionInfo Source #

SqliteConnectionInfo for running in memory

runInMemory :: SqlPersistM a -> IO a Source #

Run with memoryConnectionInfo

runCustom :: Text -> SqlPersistM a -> IO a Source #

Run with custom connection string

doMigrateAll :: MonadIO m => ReaderT SqlBackend m () Source #

Perform migration

memTest :: IO () Source #

Test that we can create in-memory database and run a dummy query, used by smoke test

testMigrateAll :: IO () Source #

Perform migration on real database

test :: IO () Source #

Elaborate test, testing most available query functionality. Same as README.md (db-readme executable)

bench :: IO () Source #

Query everything and for each valid path perform detailed queries