Write FROM on the queries.
This commit is contained in:
parent
670eebbc96
commit
979ea1c6d1
@ -222,7 +222,8 @@ uncommas' xs =
|
||||
|
||||
|
||||
makeFrom :: Escape -> [FromClause] -> TLB.Builder
|
||||
makeFrom esc = uncommas . map mk
|
||||
makeFrom _ [] = mempty
|
||||
makeFrom esc fs = "\nFROM " <> uncommas (map mk fs)
|
||||
where
|
||||
mk (From (I i) def) = esc (entityDB def) <> (" AS " <> i)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user