Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- Bits from Opaleye.Sql. They don't really belong here but I
- have to put them somewhere.
Synopsis
- type TableAlias = String
- ppSql :: Select -> Doc
- ppDistinctOn :: Maybe (NonEmpty SqlExpr) -> Doc
- ppSelectFrom :: From -> Doc
- ppSelectJoin :: Join -> Doc
- ppSelectSemijoin :: Semijoin -> Doc
- ppSelectValues :: Values -> Doc
- ppSelectBinary :: Binary -> Doc
- ppSelectLabel :: Label -> Doc
- ppSelectExists :: Exists -> Doc
- ppJoinType :: JoinType -> Doc
- ppAttrs :: SelectAttrs -> Doc
- nameAs :: (SqlExpr, Maybe SqlColumn) -> Doc
- ppTables :: [(Lateral, Select)] -> Doc
- ppTable_tableAlias :: (Int, (Lateral, Select)) -> Doc
- tableAlias :: Int -> Select -> (TableAlias, Select)
- ppTable :: (TableAlias, Select) -> Doc
- ppGroupBy :: Maybe (NonEmpty SqlExpr) -> Doc
- ppLimit :: Maybe Int -> Doc
- ppOffset :: Maybe Int -> Doc
- ppFor :: Maybe LockStrength -> Doc
- ppValues :: [[SqlExpr]] -> Doc
- ppBinOp :: BinOp -> Doc
- ppInsertReturning :: Returning SqlInsert -> Doc
- ppUpdateReturning :: Returning SqlUpdate -> Doc
- ppDeleteReturning :: Returning SqlDelete -> Doc
- formatAndShowSQL :: ([PrimExpr], PrimQuery' a, Tag) -> Maybe String
Documentation
type TableAlias = String Source #
ppSelectFrom :: From -> Doc Source #
ppSelectJoin :: Join -> Doc Source #
ppSelectSemijoin :: Semijoin -> Doc Source #
ppSelectValues :: Values -> Doc Source #
ppSelectBinary :: Binary -> Doc Source #
ppSelectLabel :: Label -> Doc Source #
ppSelectExists :: Exists -> Doc Source #
ppJoinType :: JoinType -> Doc Source #
ppAttrs :: SelectAttrs -> Doc Source #
tableAlias :: Int -> Select -> (TableAlias, Select) Source #
Bits from Opaleye.Sql. They don't really belong here but I
have to put them somewhere.
formatAndShowSQL :: ([PrimExpr], PrimQuery' a, Tag) -> Maybe String Source #