skozlov/netzke-basepack — pull request #55 by pschyska (2012-02-18 13:10:35+00:00)
Title: Multi orm

Hi there,

this is my work to support multiple orms in netzke (Sequel and DataMapper).
Relevant test runs:
http://travis-ci.org/#!/pschyska/netzke-basepack/builds/696696
(The one failing test in ActiveRecord was green when run on my machine. So I consider it a false negative. This happens occassionally because of some weird js timing issues that I couldn't fix)
Sequel: everything is implemented except searchpanel, which doesn't seem to work atm even when using ActiveRecord
DataMapper: a lot is implemented but I got stuck at ordering by an association's column where the foreign key is nullable, as there is no way currently in DataMapper to do outer joins. My client decided to switch to Sequel so I can't fix this right now. There should be a way to do it with multiple queries, or with direct sql query (projecting only id) and then loading models with ID IN. One would need to find a way to order this though.
If someone is interested in getting DataMapper fully functional, I suggest to drop me a line where I can give a more detailed description.