-
Website
http://blog.new-bamboo.co.uk -
Original page
http://blog.new-bamboo.co.uk/2008/04/09/life-on-the-edge-with-merb-datamapper-rspec-part-1 -
Subscribe
All Comments -
Community
-
Top Commenters
-
coupde
1 comment · 1 points
-
TomK32
1 comment · 1 points
-
prateekdayal
1 comment · 1 points
-
andycroll
1 comment · 1 points
-
drnic
1 comment · 6 points
-
-
Popular Threads
i'd particularly like to use datamapper, but it appears to be some way off yet - does anybody know differently ?
SQL Server support really isn't that far off, but you have to either be willing to accept the same drawbacks as AR+ADO (through WIN32OLE) (read: poor NVARCHAR support, please correct me if this has been resolved), or know a little C to write a DataObjects driver for ADODB's VC6 interface.
It's really not as brutal as it sounds. Checkout the MySQL driver: http://github.com/sam/do/tree/master/do_mysql/e...
725 lines and a very large portion of those is declarations, Ruby bindings and type-casting code that's mostly copy/paste/tweak-a-few-lines between the different drivers. You could start with that code as a basis and the final SQL Server driver probably wouldn't be more than 200 lines difference.
So a day's worth of work perhaps. If no one in the Microsoft community steps forward to make a DataObjects::SqlServer driver then the DataMapper team will in the not too distant future.
It's my goal to add native DB2, Oracle and MS SQL Server support to DataObjects as soon as I can steal enough time away from other efforts.