Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- systemConnectionInfo :: SqliteConnectionInfo
- runSystemSqlite :: SqlPersistM a -> IO a
- memoryConnectionInfo :: SqliteConnectionInfo
- runInMemory :: SqlPersistM a -> IO a
- runCustom :: Text -> SqlPersistM a -> IO a
- runWithLogging :: MonadUnliftIO m => SqliteConnectionInfo -> ReaderT SqlBackend (LoggingT m) a -> m a
- allMigrations :: Migration
- doMigrateAll :: MonadIO m => ReaderT SqlBackend m ()
- memTest :: IO ()
- testMigrateAll :: IO ()
- test :: IO ()
- bench :: IO ()
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
runWithLogging :: MonadUnliftIO m => SqliteConnectionInfo -> ReaderT SqlBackend (LoggingT m) a -> m a Source #
Run with logging
doMigrateAll :: MonadIO m => ReaderT SqlBackend m () Source #
Perform migration
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
Elaborate test, testing most available query functionality. Same as README.md (db-readme executable)