/Database/HDBC/PostgreSQL/ConnectionImpl.hs
http://github.com/hdbc/hdbc-postgresql · Haskell · 41 lines · 38 code · 3 blank · 0 comment · 0 complexity · 5bb35b16996a8fa8026524c4f6a6670c MD5 · raw file
- module Database.HDBC.PostgreSQL.ConnectionImpl where
- import qualified Database.HDBC.Types as Types
- import Database.HDBC.ColTypes as ColTypes
- data Connection =
- Connection {
- disconnect :: IO (),
- begin :: IO (),
- commit :: IO (),
- rollback :: IO (),
- runRaw :: String -> IO (),
- run :: String -> [Types.SqlValue] -> IO Integer,
- prepare :: String -> IO Types.Statement,
- clone :: IO Connection,
- hdbcDriverName :: String,
- hdbcClientVer :: String,
- proxiedClientName :: String,
- proxiedClientVer :: String,
- dbServerVer :: String,
- dbTransactionSupport :: Bool,
- getTables :: IO [String],
- describeTable :: String -> IO [(String, ColTypes.SqlColDesc)]
- }
- instance Types.IConnection Connection where
- disconnect = disconnect
- commit = commit
- rollback = rollback
- runRaw = runRaw
- run = run
- prepare = prepare
- clone = clone
- hdbcDriverName = hdbcDriverName
- hdbcClientVer = hdbcClientVer
- proxiedClientName = proxiedClientName
- proxiedClientVer = proxiedClientVer
- dbServerVer = dbServerVer
- dbTransactionSupport = dbTransactionSupport
- getTables = getTables
- describeTable = describeTable