| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PostgreSQL.Types
Contents
Description
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
Constructors
| Null | |
| Value ByteString |
Postgre's regtype
Since: 0.0.0
newtype PackedParam Source #
Packed parameter
Since: 0.0.0
Constructors
| PackedParam (Maybe (Oid, ByteString, Format)) |
Instances
| Show PackedParam Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types Methods showsPrec :: Int -> PackedParam -> ShowS # show :: PackedParam -> String # showList :: [PackedParam] -> ShowS # | |
newtype PackedParamPrepared Source #
Packed parameter for a prepared query
Since: 0.0.0
Constructors
| PackedParamPrepared (Maybe (ByteString, Format)) |
Instances
| Show PackedParamPrepared Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types Methods showsPrec :: Int -> PackedParamPrepared -> ShowS # show :: PackedParamPrepared -> String # showList :: [PackedParamPrepared] -> ShowS # | |
data ParserError Source #
Error that occurs when parsing a column
Since: 0.0.0
Constructors
| UnsupportedFormat Format | |
| UnsupportedOid Oid |
Instances
| Eq ParserError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types | |
| Ord ParserError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types Methods 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 Methods 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 Methods (==) :: ProcessorError -> ProcessorError -> Bool # (/=) :: ProcessorError -> ProcessorError -> Bool # | |
| Ord ProcessorError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types Methods 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 Methods 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
Constructors
| BadResultStatus | |
Fields | |
| NoRows | |
| MultipleRows | |
Fields | |
| FailedToParseAffectedRows | |
Fields | |
Instances
| Eq ResultError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types | |
| Ord ResultError Source # | Since: 0.0.0 |
Defined in PostgreSQL.Types Methods 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 Methods showsPrec :: Int -> ResultError -> ShowS # show :: ResultError -> String # showList :: [ResultError] -> ShowS # | |
type ResultErrors = NonEmpty ResultError Source #
Since: 0.0.0
Constructors
| 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 Methods 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 Methods throwError :: Errors -> QueryT m a # catchError :: QueryT m a -> (Errors -> QueryT m a) -> QueryT m a # | |
Numberic column identifier
Since: 0.0.0
Constructors
| ColumnNum | |
Fields
| |
Instances
| Bounded ColumnNum Source # | |
| Enum ColumnNum Source # | |
Defined in PostgreSQL.Types Methods 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 Methods quot :: ColumnNum -> ColumnNum -> ColumnNum # rem :: ColumnNum -> ColumnNum -> ColumnNum # div :: ColumnNum -> ColumnNum -> ColumnNum # mod :: ColumnNum -> ColumnNum -> ColumnNum # quotRem :: ColumnNum -> ColumnNum -> (ColumnNum, ColumnNum) # divMod :: ColumnNum -> ColumnNum -> (ColumnNum, ColumnNum) # | |
| Num ColumnNum Source # | |
Defined in PostgreSQL.Types | |
| Ord ColumnNum Source # | |
| Read ColumnNum Source # | |
| Real ColumnNum Source # | |
Defined in PostgreSQL.Types Methods toRational :: ColumnNum -> Rational # | |
| Show ColumnNum Source # | |
Numberic row identifier
Since: 0.0.0
Constructors
| RowNum | |
Fields
| |
Instances
| Bounded RowNum Source # | |
| Enum RowNum Source # | |
Defined in PostgreSQL.Types | |
| Eq RowNum Source # | |
| Integral RowNum Source # | |
Defined in PostgreSQL.Types | |
| Num RowNum Source # | |
| Ord RowNum Source # | |
| Read RowNum Source # | |
| Real RowNum Source # | |
Defined in PostgreSQL.Types Methods toRational :: RowNum -> Rational # | |
| Show RowNum Source # | |
Re-exports
data Connection #
Instances
| Eq Connection | |
Defined in Database.PostgreSQL.LibPQ.Internal | |