fukamachi / caveman

Lightweight web application framework for Common Lisp.
http://8arrow.org/caveman/
776 stars 62 forks source link

How to access database? #19

Open vityok opened 10 years ago

vityok commented 10 years ago

Readme and documentation in general miss information on how to access database using the CLSQL/Clack middleware.

vityok commented 10 years ago

The problem seems to be that Caveman creates its own database connection in the environment of the request, but it is not readily available for development in SLIME. Documentation lacks information how to access the CLSQL database object that is used in the Caveman.

This object is required for different reasons including configuration (like sql stream recording) purposes.

josrr commented 9 years ago

How about this:

CL-USER> (app.db:db :maindb)

DBD.MYSQL:<DBD-MYSQL-CONNECTION {100A34C0B3}>

CL-USER>