ruby on rails - `require': LoadError: cannot load such file -- sequel/adapters/sqlite3 (Sequel::AdapterNotFound) -
i using sequel in rails application instead of active record.
how configure , connect database? using
db = sequel.connect(env['database_url'])
but getting errors:
/home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:379:in `require': loaderror: cannot load such file -- sequel/adapters/sqlite3 (sequel::adapternotfound) /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:379:in `block in tsk_require' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:100:in `block in check_requiring_thread' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:97:in `synchronize' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:97:in `check_requiring_thread' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:379:in `tsk_require' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/database/connecting.rb:25:in `adapter_class' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/database/connecting.rb:55:in `connect' /home/aaditya/downloads/ruby-bench-suite/rails/vendor/bundle/ruby/2.3.0/gems/sequel-3.40.0/lib/sequel/core.rb:147:in `connect' benchmarks/bm_sequel_create_string_columns.rb:4:in `<main>'
when puts env['database_url']
following output:
sqlite3::memory:
what correct way?
the adapter called sqlite
, not sqlite3
when using sequel gem.
Comments
Post a Comment