Safe Haskell | None |
---|---|
Language | Haskell2010 |
The various common types commonly used throughout this package are exported here.
Synopsis
- data Value
- = Null
- | Value ByteString
- newtype RegType = RegType {}
- newtype PackedParam = PackedParam (Maybe (Oid, ByteString, Format))
- newtype PackedParamPrepared = PackedParamPrepared (Maybe (ByteString, Format))
- data ParserError
- type ParserErrors = NonEmpty ParserError
- data ProcessorError
- = ColumnParserError { }
- | CellParserError { }
- | NotEnoughColumns { }
- | MissingNamedColumn { }
- type ProcessorErrors = NonEmpty ProcessorError
- data ResultError
- = BadResultStatus { }
- | NoRows
- | MultipleRows { }
- | FailedToParseAffectedRows { }
- type ResultErrors = NonEmpty ResultError
- data Error
- type Errors = NonEmpty Error
- newtype ColumnNum = ColumnNum {
- fromColumnNum :: Column
- newtype RowNum = RowNum {
- fromRowNum :: Row
- data Format
- newtype Oid = Oid CUInt
- data Connection
Documentation
Value
Since: 0.0.0
Postgre's regtype
Since: 0.0.0
newtype PackedParam Source #
Packed parameter
Since: 0.0.0
PackedParam (Maybe (Oid, ByteString, Format)) |
Instances
Show PackedParam Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types showsPrec :: Int -> PackedParam -> ShowS # show :: PackedParam -> String # showList :: [PackedParam] -> ShowS # |
newtype PackedParamPrepared Source #
Packed parameter for a prepared query
Since: 0.0.0
Instances
Show PackedParamPrepared Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types showsPrec :: Int -> PackedParamPrepared -> ShowS # show :: PackedParamPrepared -> String # showList :: [PackedParamPrepared] -> ShowS # |
data ParserError Source #
Error that occurs when parsing a column
Since: 0.0.0
Instances
Eq ParserError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types (==) :: ParserError -> ParserError -> Bool # (/=) :: ParserError -> ParserError -> Bool # | |
Ord ParserError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types compare :: ParserError -> ParserError -> Ordering # (<) :: ParserError -> ParserError -> Bool # (<=) :: ParserError -> ParserError -> Bool # (>) :: ParserError -> ParserError -> Bool # (>=) :: ParserError -> ParserError -> Bool # max :: ParserError -> ParserError -> ParserError # min :: ParserError -> ParserError -> ParserError # | |
Show ParserError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types showsPrec :: Int -> ParserError -> ShowS # show :: ParserError -> String # showList :: [ParserError] -> ShowS # |
type ParserErrors = NonEmpty ParserError Source #
data ProcessorError Source #
Error that may occur during processing
Since: 0.0.0
Instances
Eq ProcessorError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types (==) :: ProcessorError -> ProcessorError -> Bool # (/=) :: ProcessorError -> ProcessorError -> Bool # | |
Ord ProcessorError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types compare :: ProcessorError -> ProcessorError -> Ordering # (<) :: ProcessorError -> ProcessorError -> Bool # (<=) :: ProcessorError -> ProcessorError -> Bool # (>) :: ProcessorError -> ProcessorError -> Bool # (>=) :: ProcessorError -> ProcessorError -> Bool # max :: ProcessorError -> ProcessorError -> ProcessorError # min :: ProcessorError -> ProcessorError -> ProcessorError # | |
Show ProcessorError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types showsPrec :: Int -> ProcessorError -> ShowS # show :: ProcessorError -> String # showList :: [ProcessorError] -> ShowS # |
type ProcessorErrors = NonEmpty ProcessorError Source #
data ResultError Source #
Error that occurs when validating the result
Since: 0.0.0
Instances
Eq ResultError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types (==) :: ResultError -> ResultError -> Bool # (/=) :: ResultError -> ResultError -> Bool # | |
Ord ResultError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types compare :: ResultError -> ResultError -> Ordering # (<) :: ResultError -> ResultError -> Bool # (<=) :: ResultError -> ResultError -> Bool # (>) :: ResultError -> ResultError -> Bool # (>=) :: ResultError -> ResultError -> Bool # max :: ResultError -> ResultError -> ResultError # min :: ResultError -> ResultError -> ResultError # | |
Show ResultError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types showsPrec :: Int -> ResultError -> ShowS # show :: ResultError -> String # showList :: [ResultError] -> ShowS # |
type ResultErrors = NonEmpty ResultError Source #
Since: 0.0.0
ErrorDuringProcessing ProcessorError | Occurs when processing the result table |
ErrorDuringValidation ResultError | Occurs when validating the result object |
Instances
Eq Error Source # | Since: 0.0.0 |
Ord Error Source # | Since: 0.0.0 |
Show Error Source # | Since: 0.0.0 |
Exception Error Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types toException :: Error -> SomeException # fromException :: SomeException -> Maybe Error # displayException :: Error -> String # | |
Monad m => MonadError Errors (QueryT m) Source # | Since: 0.0.0 |
Defined in PostgreSQL.Query throwError :: Errors -> QueryT m a # catchError :: QueryT m a -> (Errors -> QueryT m a) -> QueryT m a # |
Numberic column identifier
Since: 0.0.0
ColumnNum | |
|
Instances
Bounded ColumnNum Source # | |
Enum ColumnNum Source # | |
Defined in PostgreSQL.Types succ :: ColumnNum -> ColumnNum # pred :: ColumnNum -> ColumnNum # fromEnum :: ColumnNum -> Int # enumFrom :: ColumnNum -> [ColumnNum] # enumFromThen :: ColumnNum -> ColumnNum -> [ColumnNum] # enumFromTo :: ColumnNum -> ColumnNum -> [ColumnNum] # enumFromThenTo :: ColumnNum -> ColumnNum -> ColumnNum -> [ColumnNum] # | |
Eq ColumnNum Source # | |
Integral ColumnNum Source # | |
Defined in PostgreSQL.Types | |
Num ColumnNum Source # | |
Ord ColumnNum Source # | |
Defined in PostgreSQL.Types | |
Read ColumnNum Source # | |
Real ColumnNum Source # | |
Defined in PostgreSQL.Types toRational :: ColumnNum -> Rational # | |
Show ColumnNum Source # | |
Numberic row identifier
Since: 0.0.0
RowNum | |
|
Re-exports
data Connection #
Instances
Eq Connection | |
Defined in Database.PostgreSQL.LibPQ.Internal (==) :: Connection -> Connection -> Bool # (/=) :: Connection -> Connection -> Bool # |