Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main :: IO ()
- main = do
- withContext $ \ctx ->
- withPool ctx cfg return \pool ->
- withPoolConnection pool $ \conn ->
- withStatement conn False "select name from db.report_date where id = 1" $ \st -> do
- r <- executeStatement st ModeExecDefault
- f <- fetch st
- (DataVarchar v) <- getQueryValue st 1
- peekCStringLen (bytes v) >>= print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement