Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Convert the simple BigQuery AST to an SQL query, ready to be passed to the odbc package's query/exec functions.
Synopsis
- data Printer
- fromExpression :: Expression -> Printer
- fromSelect :: Select -> Printer
- fromReselect :: Reselect -> Printer
- toBuilderFlat :: Printer -> Builder
- toBuilderPretty :: Printer -> Builder
- toTextPretty :: Printer -> Text
- toTextFlat :: Printer -> Text
- renderBuilderFlat :: Printer -> (Builder, InsOrdHashMap Int TypedValue)
- renderBuilderPretty :: Printer -> (Builder, InsOrdHashMap Int TypedValue)
- paramName :: Int -> Builder
Documentation
SeqPrinter [Printer] | |
SepByPrinter Printer [Printer] | |
NewlinePrinter | |
UnsafeTextPrinter Text | |
IndentPrinter Int Printer | |
ValuePrinter TypedValue |
fromExpression :: Expression -> Printer Source #
fromSelect :: Select -> Printer Source #
fromReselect :: Reselect -> Printer Source #
toBuilderFlat :: Printer -> Builder Source #
toBuilderPretty :: Printer -> Builder Source #
toTextPretty :: Printer -> Text Source #
toTextFlat :: Printer -> Text Source #
renderBuilderFlat :: Printer -> (Builder, InsOrdHashMap Int TypedValue) Source #
Produces a query with holes, and a mapping for each
renderBuilderPretty :: Printer -> (Builder, InsOrdHashMap Int TypedValue) Source #
Produces a query with holes, and a mapping for each
Orphan instances
ToJSON Expression Source # | |
toJSON :: Expression -> Value Source # toEncoding :: Expression -> Encoding Source # toJSONList :: [Expression] -> Value Source # toEncodingList :: [Expression] -> Encoding Source # |