fukamachi / mito

An ORM for Common Lisp with migrations, relationships and PostgreSQL support
292 stars 31 forks source link

make-dao-instance => generic #94

Closed zen-wq closed 3 years ago

zen-wq commented 3 years ago

This patch simply makes make-dao-instance generic. I've checked that it never actually gets a class name instead of class object so ensure-class is not needed.

I need it to do special processing of objects retrieved from the DB before returning them to the caller and this function is where all of them are created. I may also need another metaclass for dao, subclassing dao-table-class and if this function is not generic I won't be able to modify its behaviour for the subclass.

fukamachi commented 3 years ago

Thanks!