fukamachi / caveman

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

How to use database correctly #13

Closed rapenne-s closed 11 years ago

rapenne-s commented 11 years ago

I don't understand how to use the db handler defined in the config. At the moment, I created a package "db.lisp" loaded by the controller using a sqlite db, but it leads to some problems when the server is under concurrency (2 or 3 clients sometimes it lead to an error into hunchentoot).

fukamachi commented 11 years ago

I'm sorry but Caveman is a very lightweight framework, so it is almost don't manage database configurations and connections. You should handle them to suit for your each applications.

One of the way is to use Clack.Middleware.DBI.