See what ’ s going on in Racket DB

:: racket

I’m investigating “racquel”, a package that provides: “an object/relational mapper for Racket.”

It generates SQL in the background in order to persist (and recover) Racket objects. And I want to see what this is. The connection? objects returned by mysql-connect and other ...-connect functions have a debug method upon them. This sets a DEBUG? flag which causes debug to be printed out on the current error port:

(require db)
(define db (mysql-connect ...))
(send db debug #t)
db now prints plenty of debug for your perusal.