hpqtypes-1.7.0.0: 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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

Methods

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

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

Ord row => Ord (RawSQL row) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

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 # 
Instance details

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

Methods

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

show :: RawSQL row -> String #

showList :: [RawSQL row] -> ShowS #

IsString (RawSQL ()) Source #

Construct RawSQL () from String.

Instance details

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

Methods

fromString :: String -> RawSQL () #

Semigroup (RawSQL ()) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

Methods

(<>) :: RawSQL () -> RawSQL () -> RawSQL () #

sconcat :: NonEmpty (RawSQL ()) -> RawSQL () #

stimes :: Integral b => b -> RawSQL () -> RawSQL () #

Monoid (RawSQL ()) Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

Methods

mempty :: RawSQL () #

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

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

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

Defined in Database.PostgreSQL.PQTypes.SQL.Raw

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