ruby mysqlplus 适配器生产就绪了吗
ruby mysqlplus 适配器生产准备好了吗?
可以选择:
1. tmtm 的 mysql 库(有纯 ruby 和 c 版本)
2. mysqlplus http://github.com/oldmoe/mysqlplus/
3. 数据对象(使用我的数据映射器 ORM)
4. em-mysql
目前使用C版本的mysql gem,这是最古老和最流行的选项。 事件编程是困难的、侵入性的,并且是一种范式转变,因此排除了 em-mysql :-)
dataobjects 和 mysqlplus 有多成熟,由于它的并发驱动程序,我对 mysqlplus 更感兴趣。
is the ruby mysqlplus adapter production ready?
have a choice between:
1. mysql library by tmtm (has a pure ruby and c version)
2. mysqlplus by http://github.com/oldmoe/mysqlplus/
3. dataobjects (used my datamapper ORM)
4. em-mysql
Currently using the C version of the mysql gem, that is the oldest and most popular option.
Evented programming is hard, invasive and is a paradigm-shift so that rules out em-mysql :-)
How mature are dataobjects and mysqlplus, was more interested in mysqlplus due to its concurrent driver.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是 DataMapper 的维护者,多年来我们一直在幕后使用 DataObjects。
它已准备好生产。在许多方面,它比大多数其他 Ruby 驱动程序都走得更远。它支持 MRI、JRuby 甚至 Rubinius。它很早就拥有完整的 Ruby 1.9 编码支持。它适用于 Ruby 1.8.6 至 1.9.2。它具有非阻塞支持。它无需任何中间步骤即可处理值的类型转换(因此数据不会以字符串的形式强制转换为另一个 ruby 类型;它会直接作为类型返回)。它在它支持的所有数据库驱动程序之间拥有统一的 API(目前是 sqlite、mysql、postgresql、oracle、sqlserver、h2、hsql 和 derby)。
实际上,有一个 rubysoc 项目可以将 AR/ARel 移植到 DO 中,并且它有可能成为 ActiveRecord 的默认驱动程序。
I am the maintainer of DataMapper, and we've been using DataObjects under the hood for several years.
It is production ready. In many ways it is further along than most of other ruby drivers. It supports MRI, JRuby and even Rubinius. It had full Ruby 1.9 coding support very early on. It works with Ruby 1.8.6 to 1.9.2. It has non-blocking support. It handles typecasting of values without any intermediary steps (so the data doesn't come out as a String to be coerced into another ruby type; it comes back as the type directly). It has a unified API between all the DB drivers it supports (currently sqlite, mysql, postgresql, oracle, sqlserver, h2, hsql and derby).
Actually there's a rubysoc project to port AR/ARel to work with DO, and there's a chance it could become the default driver for ActiveRecord.