Next: , Previous: , Up: Database   [Contents]

12.3 SSQL (experimental)

The concept of SSQL is very easy. Write SQL in S-expr.

Usage:

(->sql sql-statement)
(where #:key val ... [literal string])
(having #:key val ... [literal string])
(/or conds ...)
(/and conds ...)

For example:

(->sql select * from 'Persons (where #:city "Shenzhen"))
(->sql select '(age name) from 'Persons (where "age < 30"))