hdbc-aeson-0.1.0.0: Deserialize from HDBC rows to FromJSON instances

Safe HaskellNone
LanguageHaskell2010

HDBC.Aeson

Synopsis

Documentation

queryJ :: (IConnection a, FromJSON b) => a -> Statement -> [SqlValue] -> IO b Source

Run a SQL query and return a value that can be cast via a FromJSON instance.

quickQueryJ :: (IConnection a, FromJSON b) => a -> String -> [SqlValue] -> IO b Source

A quick way to do a query and cast it to a FromJSON.