Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Select
- data SelectAttrs
- data From = From {}
- data Join = Join {}
- data Values = Values {
- vAttrs :: SelectAttrs
- vValues :: [[SqlExpr]]
- data Binary = Binary {}
- data JoinType = LeftJoin
- data BinOp
- data Returning a = Returning a (NonEmpty SqlExpr)
- sqlQueryGenerator :: PrimQueryFold Select
- sql :: ([PrimExpr], PrimQuery, Tag) -> Select
- unit :: Select
- baseTable :: TableIdentifier -> [(Symbol, PrimExpr)] -> Select
- product :: NonEmpty Select -> [PrimExpr] -> Select
- aggregate :: [(Symbol, (Maybe AggrOp, PrimExpr))] -> Select -> Select
- aggrExpr :: Maybe AggrOp -> PrimExpr -> PrimExpr
- order :: [OrderExpr] -> Select -> Select
- limit_ :: LimitOp -> Select -> Select
- join :: JoinType -> PrimExpr -> Select -> Select -> Select
- values :: [Symbol] -> [[PrimExpr]] -> Select
- binary :: BinOp -> [(Symbol, (PrimExpr, PrimExpr))] -> (Select, Select) -> Select
- joinType :: JoinType -> JoinType
- binOp :: BinOp -> BinOp
- newSelect :: From
- sqlExpr :: PrimExpr -> SqlExpr
- sqlBinding :: (Symbol, PrimExpr) -> (SqlExpr, Maybe SqlColumn)
- ensureColumns :: [(SqlExpr, Maybe a)] -> NonEmpty (SqlExpr, Maybe a)
- ensureColumnsGen :: (SqlExpr -> a) -> [a] -> NonEmpty a
Documentation
data SelectAttrs Source
ensureColumnsGen :: (SqlExpr -> a) -> [a] -> NonEmpty a Source
For ensuring that we have at least one column in a SELECT or RETURNING