Copyright | 2013 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
This module provides driver interface to load database system catalog via HDBC.
- type TypeMap = [(String, TypeQ)]
- data Log
- runLog :: (String -> t) -> (String -> t) -> Log -> t
- data LogChan
- newLogChan :: Bool -> 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.
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