1module Rel8.Statement.Using
11import Text.PrettyPrint ( Doc, (<+>), parens, text )
14import Rel8.Query ( Query )
15import Rel8.Schema.Table ( TableSchema(..), ppTable )
16import Rel8.Statement.Select ( Optimized(..), ppPrimSelect )
19ppFrom :: Query a -> Maybe (Doc, a)
23ppUsing :: Query a -> Maybe (Doc, a)
24ppUsing = ppJoin "USING"
27ppJoin :: String -> Query a -> Maybe (Doc, a)
28ppJoin clause join = do
32 Optimized doc -> Just $ text clause <+> parens doc <+> ppTable alias
35 alias = TableSchema {name = "T1", schema = Nothing, columns = ()}
36 (ofrom, a) = ppPrimSelect join
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list