hpqtypes-1.5.1.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.SQL.Raw

Synopsis

Documentation

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.

Instances

Eq row => Eq (RawSQL row) Source # 

Methods

(==) :: RawSQL row -> RawSQL row -> Bool #

(/=) :: RawSQL row -> RawSQL row -> Bool #

Ord row => Ord (RawSQL row) Source # 

Methods

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 #

Show row => Show (RawSQL row) Source # 

Methods

showsPrec :: Int -> RawSQL row -> ShowS #

show :: RawSQL row -> String #

showList :: [RawSQL row] -> ShowS #

IsString (RawSQL ()) Source #

Construct RawSQL () from String.

Methods

fromString :: String -> RawSQL () #

Monoid (RawSQL ()) Source # 

Methods

mempty :: RawSQL () #

mappend :: RawSQL () -> RawSQL () -> RawSQL () #

mconcat :: [RawSQL ()] -> RawSQL () #

(Show row, ToRow row) => IsSQL (RawSQL row) Source # 

Methods

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 ().