你如何从Ruby或Ruby on Rails与BerkeleyDB数据库交谈?

时间:2022-08-07 15:16:10

I have no idea how I would set up a BerkelyDB database in a Ruby or Rails project.

我不知道如何在Ruby或Rails项目中设置BerkelyDB数据库。

Does anyone have any experience configuring one, that they could talk about?

有没有人有任何配置经验,他们可以谈论?

Maybe using ActiveRecord or Datamapper?

也许使用ActiveRecord或Datamapper?

2 个解决方案

#1


I would use Moneta, which provides a unified interface for key/value stores: https://github.com/minad/moneta

我会使用Moneta,它为键/值存储提供统一的接口:https://github.com/minad/moneta

#2


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

我认为您可以使用MySQL并使用BerkeleyDB存储引擎并像往常一样使用ActiveRecord或DataMapper。以这种方式使用BDB会很酷。试试这个:http://dev.mysql.com/doc/refman/5.0/en/bdb-storage-engine.html

#1


I would use Moneta, which provides a unified interface for key/value stores: https://github.com/minad/moneta

我会使用Moneta,它为键/值存储提供统一的接口:https://github.com/minad/moneta

#2


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

我认为您可以使用MySQL并使用BerkeleyDB存储引擎并像往常一样使用ActiveRecord或DataMapper。以这种方式使用BDB会很酷。试试这个:http://dev.mysql.com/doc/refman/5.0/en/bdb-storage-engine.html