hpqtypes-1.5.1.1: Haskell bindings to libpqtypes
Database.PostgreSQL.PQTypes.SQL.Raw
Synopsis
data RawSQL row Source #
Form of SQL query which is very close to libpqtypes specific representation. Note that, in particular, RawSQL () is isomorphic (modulo bottom) to Text.
RawSQL
Text
Instances
Methods
(==) :: RawSQL row -> RawSQL row -> Bool #
(/=) :: RawSQL row -> RawSQL row -> Bool #
compare :: RawSQL row -> RawSQL row -> Ordering #
(<) :: RawSQL row -> RawSQL row -> Bool #
(<=) :: RawSQL row -> RawSQL row -> Bool #
(>) :: RawSQL row -> RawSQL row -> Bool #
(>=) :: RawSQL row -> RawSQL row -> Bool #
max :: RawSQL row -> RawSQL row -> RawSQL row #
min :: RawSQL row -> RawSQL row -> RawSQL row #
showsPrec :: Int -> RawSQL row -> ShowS #
show :: RawSQL row -> String #
showList :: [RawSQL row] -> ShowS #
Construct RawSQL () from String.
String
fromString :: String -> RawSQL () #
mempty :: RawSQL () #
mappend :: RawSQL () -> RawSQL () -> RawSQL () #
mconcat :: [RawSQL ()] -> RawSQL () #
withSQL :: RawSQL row -> ParamAllocator -> (Ptr PGparam -> CString -> IO r) -> IO r Source #
rawSQL :: (Show row, ToRow row) => Text -> row -> RawSQL row Source #
Construct RawSQL from Text and a tuple of parameters.
unRawSQL :: RawSQL () -> Text Source #
Take query string out of RawSQL ().