Copyright | 2013-2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides driver interface to load database system catalog via HDBC.
Synopsis
- type TypeMap = [(String, TypeQ)]
- data Log
- foldLog :: (String -> t) -> (String -> t) -> (String -> t) -> Log -> t
- data LogChan
- emptyLogChan :: IO LogChan
- takeLogs :: LogChan -> IO [Log]
- putWarning :: LogChan -> String -> IO ()
- putError :: LogChan -> String -> IO ()
- putVerbose :: LogChan -> String -> IO ()
- failWith :: LogChan -> String -> MaybeT IO a
- hoistMaybe :: Monad m => Maybe a -> MaybeT m a
- maybeIO :: b -> (a -> b) -> MaybeT IO a -> IO b
- data Driver conn = Driver {}
- emptyDriver :: IConnection conn => Driver conn
- getFields :: IConnection conn => Driver conn -> conn -> LogChan -> String -> String -> IO ([(String, TypeQ)], [Int])
Documentation
type TypeMap = [(String, TypeQ)] Source #
Mapping between type name string of DBMS and type in Haskell. Type name string depends on specification of DBMS system catalogs.
foldLog :: (String -> t) -> (String -> t) -> (String -> t) -> Log -> t Source #
Folding operation of Log
type.
putVerbose :: LogChan -> String -> IO () Source #
Put verbose compile-time message as warning when verboseAsWarning
.
failWith :: LogChan -> String -> MaybeT IO a Source #
Push an error string into LogChan
and return failed context.
Interface type to load database system catalog via HDBC.
Driver | |
|
emptyDriver :: IConnection conn => Driver conn Source #
Empty definition of Driver