About ruby mysql (need help)
-
Hello! After some searching I found a ruby-mysql module. At first I used mysql.so http://rubylearning.com/blog/2007/05/14/ruby-mysql-tutorial/, but it seems that it have some errors and things don't go as smooth as should be: I've got server time out errors and sketchup was freezing. Finally I have decided to use Ruby DBI Module http://www.kitebird.com/articles/ruby-dbi.html.
Using the first option (mysql.so) in sketchup was easy. I figured out what directory to copy in Plugins folder and how to make the requirements. Now, for dbi is not so simple... I really don't know how to integrate it in sketchup's ruby interpreter.Please if somebody can give me a hint it would be much than appreciated.
P.S.
To install Ruby DBI Module download the appropriate ruby-dbi (database interface - this is the same for all database types) and ruby-dbd (database driver - this specific for each database type), then run ruby setup.rb for each one.
Advertisement