Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- newtype Column a = Column PrimExpr
- data Nullable a = Nullable
- unColumn :: Column a -> PrimExpr
- unsafeCoerce :: Column a -> Column b
- unsafeCoerceColumn :: Column a -> Column b
- binOp :: BinOp -> Column a -> Column b -> Column c
- unOp :: UnOp -> Column a -> Column b
- unsafeCase_ :: [(Column pgBool, Column a)] -> Column a -> Column a
- unsafeIfThenElse :: Column pgBool -> Column a -> Column a -> Column a
- unsafeGt :: Column a -> Column a -> Column pgBool
- unsafeEq :: Column a -> Column a -> Column pgBool
- class PGNum a where
- pgFromInteger :: Integer -> Column a
- class PGFractional a where
- pgFromRational :: Rational -> Column a
Documentation
The Num
and Fractional
instances for Column
a
are too
general. For example, they allow you to add two Column
String
s. This will be fixed in a subsequent release.
Default ViewColumnMaker String (Column a) | |
QueryRunnerColumnDefault a b => Default QueryRunner (Column a) b | |
Default Binaryspec (Column a) (Column a) | |
Default Unpackspec (Column a) (Column a) | |
Default Valuesspec (Column PGInt4) (Column PGInt4) | |
Default NullMaker (Column a) (Column (Nullable a)) | |
Default NullMaker (Column (Nullable a)) (Column (Nullable a)) | |
Default ColumnMaker (Column a) (Column a) | |
Default Distinctspec (Column a) (Column a) | |
(PGNum a, PGFractional a) => Fractional (Column a) | |
PGNum a => Num (Column a) | |
Show (Column a) |
unsafeCoerce :: Column a -> Column b Source
Deprecated: Use unsafeCoerceColumn instead
unsafeCoerceColumn :: Column a -> Column b Source
pgFromInteger :: Integer -> Column a Source