seakale-0.1.0.0: Pure SQL layer on top of other libraries

Safe HaskellNone
LanguageHaskell2010

Database.Seakale.ToRow

Documentation

class ToRow backend n a | a -> n where Source #

Methods

toRow :: backend -> a -> QueryData n Source #

toRow :: (Generic a, GToRow backend WithCon n (Rep a)) => backend -> a -> QueryData n Source #

Instances

ToRow backend One Float Source # 

Methods

toRow :: backend -> Float -> QueryData One Source #

ToRow backend One Double Source # 

Methods

toRow :: backend -> Double -> QueryData One Source #

ToRow backend One Integer Source # 

Methods

toRow :: backend -> Integer -> QueryData One Source #

ToRow backend One Int64 Source # 

Methods

toRow :: backend -> Int64 -> QueryData One Source #

ToRow backend One Int32 Source # 

Methods

toRow :: backend -> Int32 -> QueryData One Source #

ToRow backend One Int16 Source # 

Methods

toRow :: backend -> Int16 -> QueryData One Source #

ToRow backend One Int8 Source # 

Methods

toRow :: backend -> Int8 -> QueryData One Source #

ToRow backend One Int Source # 

Methods

toRow :: backend -> Int -> QueryData One Source #

ToRow backend One Text Source # 

Methods

toRow :: backend -> Text -> QueryData One Source #

ToRow backend One Text Source # 

Methods

toRow :: backend -> Text -> QueryData One Source #

ToRow backend One ByteString Source # 

Methods

toRow :: backend -> ByteString -> QueryData One Source #

ToRow backend One ByteString Source # 

Methods

toRow :: backend -> ByteString -> QueryData One Source #

ToRow backend One Null Source # 

Methods

toRow :: backend -> Null -> QueryData One Source #

ToRow backend Zero () Source # 

Methods

toRow :: backend -> () -> QueryData Zero Source #

(NTimes (Vector n), Backend backend, ToRow backend n a) => ToRow backend n (Maybe a) Source # 

Methods

toRow :: backend -> Maybe a -> QueryData n Source #

(ToRow backend k (EntityID a), ToRow backend l a, (~) Nat ((:+) k l) i) => ToRow backend i (Entity a) Source # 

Methods

toRow :: backend -> Entity a -> QueryData i Source #

(NTimes (Vector k), NTimes (Vector l), Backend backend, ToRow backend k a, ToRow backend l b, (~) Nat ((:+) k l) i) => ToRow backend i (a, b) Source # 

Methods

toRow :: backend -> (a, b) -> QueryData i Source #

(NTimes (Vector k), NTimes (Vector l), NTimes (Vector i), Backend backend, ToRow backend k a, ToRow backend l b, ToRow backend i c, (~) Nat ((:+) k ((:+) l i)) j) => ToRow backend j (a, b, c) Source # 

Methods

toRow :: backend -> (a, b, c) -> QueryData j Source #