Safe Haskell | None |
---|---|
Language | Haskell2010 |
- queryJ :: (IConnection a, FromJSON b) => a -> Statement -> [SqlValue] -> IO b
- quickQueryJ :: (IConnection a, FromJSON b) => a -> String -> [SqlValue] -> IO b
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.