Hi all, If anyone is interested, I have knocked up a prototype for an IronRuby wrapper over MySQL Connector/NET (the MySQL ADO.NET driver) that implements the Ruby-MySQL interface. The idea is that this should be able to function as a drop-in replacement for either the native or pure Ruby MySQL drivers, thus allowing you to run things like ActiveRecord without modification. There are still a number of methods that I haven''t yet implemented, but you can at least connect to a database and perform queries. Regards Brian Blackwell -------------- next part -------------- A non-text attachment was scrubbed... Name: mysql-ironruby.rb Type: application/octet-stream Size: 25735 bytes Desc: not available Url : http://rubyforge.org/pipermail/ironruby-core/attachments/20080324/448ce747/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: test-mysql-ironruby.rb Type: application/octet-stream Size: 1165 bytes Desc: not available Url : http://rubyforge.org/pipermail/ironruby-core/attachments/20080324/448ce747/attachment-0003.obj
This looks awesome. Do you know of the ADO.NET driver runs on top of Mono? I know that the SQL Server ADO.NET driver contains a large amount of unmanaged code that prevents it from running on Mono. Thanks, -John> -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Brian Blackwell > Sent: Sunday, March 23, 2008 4:09 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] IronRuby MySQL/ADO.NET wrapper > > Hi all, > > If anyone is interested, I have knocked up a prototype for an IronRuby > wrapper over MySQL Connector/NET (the MySQL ADO.NET driver) that > implements the Ruby-MySQL interface. The idea is that this should be > able to function as a drop-in replacement for either the native or > pure Ruby MySQL drivers, thus allowing you to run things like > ActiveRecord without modification. There are still a number of methods > that I haven''t yet implemented, but you can at least connect to a > database and perform queries. > > Regards > Brian Blackwell
2008/3/25, John Lam (DLR) <jflam at microsoft.com>:> This looks awesome. Do you know of the ADO.NET driver runs on top of Mono? I know that the SQL Server ADO.NET driver contains a large amount of unmanaged code that prevents it from running on Mono.FYI, Mono ships with fully managed ADO.NET provider for PostgreSQL, which runs on MS.NET too. http://www.mono-project.com/PostgreSQL -- Seo Sanghyeon