I have no idea how I would set up a BerkelyDB database in a Ruby or Rails project.
Does anyone have any experience configuring one, that they could talk about?
Maybe using ActiveRecord or Datamapper?
I have no idea how I would set up a BerkelyDB database in a Ruby or Rails project.
Does anyone have any experience configuring one, that they could talk about?
Maybe using ActiveRecord or Datamapper?
i think you can use MySQL and use the BerkeleyDB storage engine and use ActiveRecord or DataMapper as usual. Will be cool to use BDB that way. try this: http://dev.mysql.com/doc/refman/5.0/en/bdb-storage-engine.html
You can't use it with ActiveRecord or DataMapper (unless you're using MySQL with BerkeleyDB as the storage engine, as auvi said), but you can use the BDB library. Here is some basic example code.
I don't know if there's a specific reason you need BerkeleyDB, but chances are that you don't. Unless all you need is to store one big huge hash table, I'd stick to SQLite or, even better, MySQL or PostgreSQL. Berkeley doesn't give you any relational functionality such as joins, so you have to write those yourself (not to mention the API is kind of messy).