yeshql-hdbc-4.2.0.0: YesQL-style SQL database abstraction (HDBC backend)

Safe HaskellNone
LanguageHaskell2010

Database.YeshQL.HDBC.SqlRow.Class

Documentation

class ToSqlRow a where Source #

Methods

toSqlRow :: a -> [SqlValue] Source #

Instances
ToSqlRow [SqlValue] Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

Methods

toSqlRow :: [SqlValue] -> [SqlValue] Source #

newtype Parser a Source #

Constructors

Parser 

Fields

Instances
Monad Parser Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

Methods

(>>=) :: Parser a -> (a -> Parser b) -> Parser b #

(>>) :: Parser a -> Parser b -> Parser b #

return :: a -> Parser a #

fail :: String -> Parser a #

Functor Parser Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

Methods

fmap :: (a -> b) -> Parser a -> Parser b #

(<$) :: a -> Parser b -> Parser a #

MonadFail Parser Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

Methods

fail :: String -> Parser a #

Applicative Parser Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

Methods

pure :: a -> Parser a #

(<*>) :: Parser (a -> b) -> Parser a -> Parser b #

liftA2 :: (a -> b -> c) -> Parser a -> Parser b -> Parser c #

(*>) :: Parser a -> Parser b -> Parser b #

(<*) :: Parser a -> Parser b -> Parser a #

Alternative Parser Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

Methods

empty :: Parser a #

(<|>) :: Parser a -> Parser a -> Parser a #

some :: Parser a -> Parser [a] #

many :: Parser a -> Parser [a] #

parserApply :: Parser (a -> b) -> Parser a -> Parser b Source #

parserBind :: Parser a -> (a -> Parser b) -> Parser b Source #

class FromSqlRow a where Source #

Instances
FromSqlRow [SqlValue] Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

class (ToSqlRow a, FromSqlRow a) => SqlRow a Source #