Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

- sequel/adapters/ (Sequel::AdapterNotFound)

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)
like image 794
user2116483 Avatar asked Jun 07 '26 21:06

user2116483


2 Answers

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.

like image 77
Andrew Avatar answered Jun 09 '26 13:06

Andrew


You probably want Sequel.connect('sqlite:///path/to/database.sqlite') or Sequel.sqlite('/path/to/database.sqlite')

like image 45
Jeremy Evans Avatar answered Jun 09 '26 13:06

Jeremy Evans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!