You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
556 B
Scheme
14 lines
556 B
Scheme
(use test)
|
|
(import ssql)
|
|
|
|
(test-group "composition"
|
|
(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))))) |