Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- prettyStatements :: PrettyFlags -> [Statement] -> Text
- prettyQueryExpr :: PrettyFlags -> QueryExpr -> Text
- prettyScalarExpr :: PrettyFlags -> ScalarExpr -> Text
- data PrettyFlags = PrettyFlags {}
- defaultPrettyFlags :: PrettyFlags
- data Dialect = Dialect {
- diName :: String
- diSyntaxFlavour :: SyntaxFlavour
- diCanonicalTypeNames :: [(Text, [Text])]
- diTextTypes :: [Text]
- diDatetimeTypes :: [Text]
- diNumberTypes :: [Text]
- namesForAnsiTypes :: [(Text, Text)]
- diDefaultCatalog :: Catalog
- ansiDialect :: Dialect
Documentation
prettyStatements :: PrettyFlags -> [Statement] -> Text Source #
Convert an ast back to valid SQL source.
prettyQueryExpr :: PrettyFlags -> QueryExpr -> Text Source #
pretty print a query expression
prettyScalarExpr :: PrettyFlags -> ScalarExpr -> Text Source #
pretty print a scalar expression
data PrettyFlags Source #
Instances
Eq PrettyFlags Source # | |
Defined in Database.HsSqlPpp.Internals.PrettyInternal (==) :: PrettyFlags -> PrettyFlags -> Bool # (/=) :: PrettyFlags -> PrettyFlags -> Bool # | |
Show PrettyFlags Source # | |
Defined in Database.HsSqlPpp.Internals.PrettyInternal showsPrec :: Int -> PrettyFlags -> ShowS # show :: PrettyFlags -> String # showList :: [PrettyFlags] -> ShowS # |
Dialect | |
|
Instances
Eq Dialect Source # | |
Data Dialect Source # | |
Defined in Database.HsSqlPpp.Internals.Dialect gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Dialect -> c Dialect # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Dialect # toConstr :: Dialect -> Constr # dataTypeOf :: Dialect -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Dialect) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Dialect) # gmapT :: (forall b. Data b => b -> b) -> Dialect -> Dialect # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Dialect -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Dialect -> r # gmapQ :: (forall d. Data d => d -> u) -> Dialect -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Dialect -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Dialect -> m Dialect # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Dialect -> m Dialect # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Dialect -> m Dialect # | |
Show Dialect Source # | |