There have been several SQL-in-sexp libraries over the years. When done
as Racket syntax extension, they can do some compile-type syntax
checking. They also can automatically do escaping of values to avoid
SQL injection attacks. The library I've used most recently is
unfortunately closed source, but there were others for PLT Scheme in the
past; try Googling.
Neil V.
____________________
Racket Users list:
http://lists.racket-lang.org/users