mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-28 22:44:11 +03:00
examples/HDBC/Oracle: apply new defined instances.
This commit is contained in:
parent
9e85f7ca1f
commit
19f22e0486
@ -2,12 +2,9 @@
|
||||
|
||||
module DataSource where
|
||||
|
||||
import Control.Applicative ((<$>), pure)
|
||||
import Data.String (fromString)
|
||||
import Control.Applicative ((<$>))
|
||||
import Database.HDBC.ODBC (Connection, connectODBC)
|
||||
|
||||
import Database.Relational (LiteralSQL (..))
|
||||
|
||||
data Option = Option
|
||||
{ dsn :: String
|
||||
, uid :: String
|
||||
@ -35,7 +32,3 @@ connect = connectODBC . dsString . option =<< getParam
|
||||
|
||||
getOwner :: IO String
|
||||
getOwner = owner <$> getParam
|
||||
|
||||
|
||||
instance LiteralSQL Integer where
|
||||
showLiteral' = pure . fromString . show
|
||||
|
Loading…
Reference in New Issue
Block a user