DISQUS

OLD Bamboo Blog: Merb and DataMapper Book (Part 1)

  • jesse · 1 year ago
    Nice intro, and I'm psyched to read more. I'm getting ready to build an upload-intensive app and was going to use Rails, but decided I wanted it all in one framework. Merb + DataMapper seems like a really solid choice.
  • jesse · 1 year ago
    Nice intro, and I'm psyched to read more. I'm getting ready to build an upload-intensive app and was going to use Rails, but decided I wanted it all in one framework. Merb + DataMapper seems like a really solid choice.
  • Steve Tooke · 1 year ago
    Great work! Really looking forward to reading more as it develops.
  • jaigouk · 1 year ago
    I really appreciate your work. I'm new to merb and couldn't find any help videos.(I hope peepcode will release it soon). RoR was good to me at first, but deploying it was so painful and slow. Thank you for your work.
  • phantom · 1 year ago
    i've been doing a fair bit of research and it seems that activerecord is the only orm that's available on windows for sqlserver.

    i'd particularly like to use datamapper, but it appears to be some way off yet - does anybody know differently ?
  • Sam Smoot · 1 year ago
    @phantom:

    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.