opaleye-0.5.0.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellSafe
LanguageHaskell98

Opaleye.Internal.Column

Synopsis

Documentation

newtype Column a Source

Numeric Column types are instances of Num, so you can use *, /, +, - on them.

Constructors

Column PrimExpr 

Instances

Default Constant Bool (Column PGBool) 
Default Constant Double (Column PGFloat8) 
Default Constant Int (Column PGInt4) 
Default Constant Int32 (Column PGInt4) 
Default Constant Int64 (Column PGInt8) 
Default Constant String (Column PGText) 
Default Constant ByteString (Column PGJsonb) 
Default Constant ByteString (Column PGJson) 
Default Constant ByteString (Column PGBytea) 
Default Constant ByteString (Column PGJsonb) 
Default Constant ByteString (Column PGJson) 
Default Constant ByteString (Column PGBytea) 
Default Constant Text (Column PGText) 
Default Constant UTCTime (Column PGTimestamptz) 
Default Constant Value (Column PGJsonb) 
Default Constant Value (Column PGJson) 
Default Constant Text (Column PGText) 
Default Constant LocalTime (Column PGTimestamp) 
Default Constant TimeOfDay (Column PGTime) 
Default Constant Day (Column PGDate) 
Default Constant UUID (Column PGUuid) 
Default ViewColumnMaker String (Column a) 
QueryRunnerColumnDefault a b => Default QueryRunner (Column a) b 
Default EqPP (Column a) (Column a) 
(Default Constant a (Column b), IsSqlType b) => Default Constant [a] (Column (PGArray b)) 
Default Constant haskell (Column sql) => Default Constant (Maybe haskell) (Maybe (Column sql)) 
Default Constant haskell (Column sql) => Default Constant (Maybe haskell) (Column (Nullable sql)) 
Default Constant (CI Text) (Column PGCitext) 
Default Constant (CI Text) (Column PGCitext) 
Default Unpackspec (Column a) (Column a) 
Default Binaryspec (Column a) (Column a) 
Default Valuesspec (Column a) (Column a) 
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) Source 
PGNum a => Num (Column a) Source 
Show (Column a) Source 
PGString a => IsString (Column a) Source 

unsafeCoerce :: Column a -> Column b Source

Deprecated: Use unsafeCoerceColumn instead

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.

binOp :: BinOp -> Column a -> Column b -> Column c Source

unsafeCase_ :: [(Column pgBool, Column a)] -> Column a -> Column a Source

unsafeGt :: Column a -> Column a -> Column pgBool Source

unsafeEq :: Column a -> Column a -> Column pgBool Source