Safe Haskell | Safe |
---|---|
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
- unsafeCast :: String -> Column a -> Column b
- unsafeCompositeField :: Column a -> String -> 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
- class PGIntegral a
- class PGString a where
- pgFromString :: String -> Column a
Documentation
Default Constant haskell (Column sql) => Default Constant (Maybe haskell) (Column (Nullable sql)) | |
Default NullMaker (Column a) (Column (Nullable a)) | |
Default NullMaker (Column (Nullable a)) (Column (Nullable a)) | |
IsSqlType a => IsSqlType (Nullable a) Source | |
PGOrd a => PGOrd (Nullable a) Source | |
QueryRunnerColumnDefault a b => QueryRunnerColumnDefault (Nullable a) (Maybe b) Source |
unsafeCoerce :: Column a -> Column b Source
Deprecated: Use unsafeCoerceColumn instead
unsafeCoerceColumn :: Column a -> Column b Source
unsafeCast :: String -> Column a -> Column b Source
Cast a column to any other type. This is safe for some conversions such as uuid to text.
unsafeCompositeField :: Column a -> String -> Column b Source
pgFromInteger :: Integer -> Column a Source
class PGFractional a where Source
pgFromRational :: Rational -> Column a Source