Copyright | (c) Ole Krüger 2016 |
---|---|
License | BSD3 |
Maintainer | Ole Krüger <ole@vprsm.de> |
Safe Haskell | None |
Language | Haskell2010 |
Database.PostgreSQL.Store.Types
Contents
Description
- newtype Statement a = Statement ByteString
- data Query a = Query {
- queryStatement :: ByteString
- queryParams :: [Maybe (Oid, ByteString, Format)]
- data PrepQuery ts a = PrepQuery {
- prepName :: ByteString
- prepStatement :: ByteString
- prepOids :: [Oid]
- prepParams :: Tuple ts -> [Maybe (ByteString, Format)]
- toParam :: ByteString -> (ByteString, Format)
- toTypedParam :: Oid -> ByteString -> (Oid, ByteString, Format)
- newtype Oid :: * = Oid CUInt
- data Format :: *
General
SQL statement
Constructors
Statement ByteString |
Query object
Constructors
Query | |
Fields
|
Preparable query object
Constructors
PrepQuery | |
Fields
|
toParam :: ByteString -> (ByteString, Format) Source #
Attach Text
tag.
toTypedParam :: Oid -> ByteString -> (Oid, ByteString, Format) Source #
Attach Text
tag.