beam-0.3.0.0: A type-safe SQL mapper for Haskell that doesn't use Template Haskell

Safe HaskellNone
LanguageHaskell2010

Database.Beam.Query.Internal

Contents

Synopsis

Documentation

class IsQuery q where Source

Methods

toQ :: q db s a -> Q db s a Source

newtype Q db s a Source

Constructors

Q 

Fields

runQ :: State QueryBuilder a
 

Instances

newtype TopLevelQ db s a Source

Wrapper for Qs that have been modified in such a way that they can no longer be joined against without the use of subquery. TopLevelQ is also an instance of IsQuery, and so can be passed directly to query or queryList

Constructors

TopLevelQ (Q db s a) 

QExpr type

Sql Projections

tableVal :: Table tbl => tbl Identity -> tbl QExpr Source