very basic ssql composition support through the `ssql-compose' procedure
parent
a05efe2ad3
commit
7c27be9b96
@ -0,0 +1,13 @@
|
||||
(use test)
|
||||
(import ssql)
|
||||
|
||||
(test "simple"
|
||||
'(select (columns firstname lastname) (from artists) (where (= firstname "Frank")))
|
||||
(ssql-compose #f
|
||||
'(select (columns firstname lastname) (from artists))
|
||||
'((where (= firstname "Frank")))))
|
||||
|
||||
(test "merge"
|
||||
'(select (columns firstname lastname age) (from artists) (order firstname lastname))
|
||||
(ssql-compose #f '(select (columns firstname lastname) (order firstname))
|
||||
'((columns age) (from artists) (order lastname))))
|
Loading…
Reference in New Issue