共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > ironruby-dbi |
ironruby-dbi
|
0 | 0 | 15 |
贡献者 | 讨论 | 代码提交 |
A DBI implementation for ADO.NET on IronRuby
This project tries to unify the interface you use to interact with databases. It does so by delegating everything to the providers for each specific RDBMS implemented on top of ADO.NET.
To test it you could use the following code.
start a console
require 'dbi'
conn = DBI.connect('DBI:ADONET:MSSQL:data source=(local);initial catalog=MyDatabase;user id=user;password=password')
statement = conn.execute "Select * from Users"
while row=statement.fetch
puts row
end
statement.finish