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

Safe HaskellNone
LanguageHaskell2010

Database.YeshQL.HDBC.SqlRow.Class

Documentation

class ToSqlRow a where Source #

Minimal complete definition

toSqlRow

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 #

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 #

Minimal complete definition

parseSqlRow

Instances
FromSqlRow [SqlValue] Source # 
Instance details

Defined in Database.YeshQL.HDBC.SqlRow.Class

fromSqlRow :: (FromSqlRow a, Monad m) => [SqlValue] -> m a Source #

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