opaleye-sqlite-0.0.1.1: An SQL-generating DSL targeting SQLite
Safe HaskellSafe-Inferred
LanguageHaskell2010

Opaleye.SQLite.Internal.Column

Synopsis

Documentation

newtype Column a Source #

The Num and Fractional instances for Column a are too general. For example, they allow you to add two Column Strings. This will be fixed in a subsequent release.

Constructors

Column PrimExpr 

Instances

Instances details
Default ViewColumnMaker String (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.TableMaker

Default Constant Bool (Column SqlBool) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Double (Column SqlReal) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Int (Column SqlInt) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Text (Column SqlText) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Text (Column SqlText) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant String (Column SqlText) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

QueryRunnerColumnDefault a b => Default QueryRunner (Column a) b Source # 
Instance details

Defined in Opaleye.SQLite.Internal.RunQuery

Methods

def :: QueryRunner (Column a) b #

Default Binaryspec (Column a) (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Binary

Methods

def :: Binaryspec (Column a) (Column a) #

Default Unpackspec (Column a) (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Unpackspec

Methods

def :: Unpackspec (Column a) (Column a) #

Default Valuesspec (Column PGInt4) (Column PGInt4) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Values

Default ColumnMaker (Column a) (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.TableMaker

Methods

def :: ColumnMaker (Column a) (Column a) #

Default NullMaker (Column a) (Column (Nullable a)) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Join

Methods

def :: NullMaker (Column a) (Column (Nullable a)) #

Default NullMaker (Column (Nullable a)) (Column (Nullable a)) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Join

Methods

def :: NullMaker (Column (Nullable a)) (Column (Nullable a)) #

Default Distinctspec (Column a) (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Distinct

Methods

def :: Distinctspec (Column a) (Column a) #

Default Constant haskell (Column sql) => Default Constant (Maybe haskell) (Column (Nullable sql)) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

def :: Constant (Maybe haskell) (Column (Nullable sql)) #

(PGNum a, PGFractional a) => Fractional (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Column

Methods

(/) :: Column a -> Column a -> Column a #

recip :: Column a -> Column a #

fromRational :: Rational -> Column a #

PGNum a => Num (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Column

Methods

(+) :: Column a -> Column a -> Column a #

(-) :: Column a -> Column a -> Column a #

(*) :: Column a -> Column a -> Column a #

negate :: Column a -> Column a #

abs :: Column a -> Column a #

signum :: Column a -> Column a #

fromInteger :: Integer -> Column a #

Show (Column a) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Column

Methods

showsPrec :: Int -> Column a -> ShowS #

show :: Column a -> String #

showList :: [Column a] -> ShowS #

data Nullable a Source #

Constructors

Nullable 

Instances

Instances details
Default NullMaker (Column a) (Column (Nullable a)) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Join

Methods

def :: NullMaker (Column a) (Column (Nullable a)) #

Default NullMaker (Column (Nullable a)) (Column (Nullable a)) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.Join

Methods

def :: NullMaker (Column (Nullable a)) (Column (Nullable a)) #

Default Constant haskell (Column sql) => Default Constant (Maybe haskell) (Column (Nullable sql)) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

def :: Constant (Maybe haskell) (Column (Nullable sql)) #

QueryRunnerColumnDefault a b => QueryRunnerColumnDefault (Nullable a) (Maybe b) Source # 
Instance details

Defined in Opaleye.SQLite.Internal.RunQuery

unsafeCoerce :: Column a -> Column b Source #

Deprecated: Use unsafeCoerceColumn instead

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

unOp :: UnOp -> Column a -> Column b 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 #

class PGNum a where Source #

Instances

Instances details
PGNum PGInt4 Source # 
Instance details

Defined in Opaleye.SQLite.PGTypes

PGNum PGInt8 Source # 
Instance details

Defined in Opaleye.SQLite.PGTypes

PGNum PGFloat8 Source # 
Instance details

Defined in Opaleye.SQLite.PGTypes

class PGFractional a where Source #

Instances

Instances details
PGFractional PGFloat8 Source # 
Instance details

Defined in Opaleye.SQLite.PGTypes