Connection

You can connect to a database using the generic connect method.

Generic Connect

  DB = Sequel.connect('mysql://root@localhost/sequel_sandbox');
  DB = Sequel.connect('postgres://user:password@localhost/my_db')

DB Specific

  DB = Sequel.sqlite  # in memory
  DB = Sequel.sqlite('my_blog.db')
  DB = Sequel.mysql('my_db', :user => 'user', :password => 'password', :host => 'localhost')
  DB = Sequel.ado('mydb')

Reference