views:

179

answers:

3

What is the approach to get SQLite-ruby working in IronRuby?

A: 

How are wanting to use sqlite in your ironruby project?

Dylan McClung
With a ruby based ORM such as ActiveRecord
jrhicks
A: 

you won't be able to use activerecord as is.

You can either wrap the ADO.NET provider for SQLite or you can perhaps help with the ironruby-dbi project and provide a dbi adapter that handles sqlite correctly. From then on adding it to rails is easy as it would require replacing the connection with the dbi connection.

It is a work in progress though and at this moment most efforts have been around sql server, but I too would like to get sqlite working properly on IronRuby with rails. link text

Casual Jim
+1  A: 

There's an sqlite3-ironruby gem which was recently released, and it's on gemcutter

The source is here on gitub

Orion Edwards
Appears that you install that gem then use the "normal" sqlite config/database.yml setup style and it works, no changes needed to database.yml from MRI.
rogerdpack