Sinatra + Microsoft SQL server ??

After writing the last post I realised that I’d jumped too far into the deep end with Padrino and really needed to understand the underlying Sinatra and Rack frameworks better before commenting any further.I found the opportunity today for doing just that.   I needed to make a demo web application that listed items from a Microsoft SQL Server and demonstrate integration with a third party service.   I had started using MS Visual Web Developer for this task but found it horribly slow to use and difficult to move beyond the boiler plate applications because the c# framework learning curve was as little too steep for a quick and dirty demo.

After spending a couple of days on this, I thought I’d look for an alternative and wondered if sinatra might be useful.  Instinct told me that connecting to the db might be an enormous time sink, but these two articles suggested otherwise:

and indeed it turned out to be just the case.  With JRuby, Sinatra and jTDS I was able to get my little app up and running on Windows within a day.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s