On Sunday, March 16, 2014 7:20:40 AM UTC-7, Ricardo E. Berdejo Mora wrote:
>
> Hi there guys, how are you.
>
> I'm working on a personal project and I need to import some data from a 
> .mdb file.
>
> This is a class that I have inside a module in lib/ folder
>
> module Importer
>   class ExcelImporter
>     def initialize(path)
>       @DB = 
> Sequel.ado(:conn_string=>"Provider=Microsoft.ACE.OLEDB.12.0;Data 
> Source=#{path}")
>     end
>   end
> end
>
> I read in the docs that this will work only on Windows. I'm using Ubuntu.
>

The ado adapter depends on the win32ole library that ships with ruby and I 
don't believe builds on Linux.  The only way I think you'll be able to get 
this to work is using the odbc adapter with unixODBC and the ODBC driver in 
mdbtools, but I've never used either of those.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to