| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
IpeDb.Eventlog.Index
Synopsis
- withDatabase :: FilePath -> (Connection -> IO a) -> IO a
- generateInfoProvDb :: Connection -> FilePath -> IO ()
- findOneInfoProv :: Connection -> IpeId -> IO (Maybe InfoProv)
- findAllInfoProvs :: Connection -> IO [InfoProv]
- setupDb :: Connection -> IO ()
- setupTables :: Connection -> IO ()
- setupIndexing :: Connection -> IO ()
- insertInfoProv :: Connection -> InfoProv -> IO ()
- upsertInfoProvStrings :: Connection -> InfoProv -> IO InfoProvRow
- insertInfoProvData :: Foldable t => Connection -> t Event -> IO ()
High level API for interacting with the database
withDatabase :: FilePath -> (Connection -> IO a) -> IO a Source #
generateInfoProvDb :: Connection -> FilePath -> IO () Source #
findOneInfoProv :: Connection -> IpeId -> IO (Maybe InfoProv) Source #
findAllInfoProvs :: Connection -> IO [InfoProv] Source #
Low level API for interacting with the database
setupDb :: Connection -> IO () Source #
setupTables :: Connection -> IO () Source #
setupIndexing :: Connection -> IO () Source #
insertInfoProv :: Connection -> InfoProv -> IO () Source #
upsertInfoProvStrings :: Connection -> InfoProv -> IO InfoProvRow Source #
ghc-events specific helpers
insertInfoProvData :: Foldable t => Connection -> t Event -> IO () Source #