I am trying to connect to an sqlite database using Sequel.connect(database_name) It returns the following error:
DEBUG OmlSqlSource: Connecting Sequel
/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': LoadError: cannot load such file -- sequel/adapters/ (Sequel::AdapterNotFound)
I was getting a similar error, but it turned out that I need to include the sqlite3 gem in my Gemfile.
Also, I was using the wrong name for the adapter. I was using sqlite3 to match the gem name, but the name that Sequel expects is just sqlite.
You probably want Sequel.connect('sqlite:///path/to/database.sqlite') or Sequel.sqlite('/path/to/database.sqlite')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With