Ruby Database Admin

A gem based on Sinatra and Sequel. You can use it to manage multiple databases at the same time.

Rails user can also use it because it is just a gem. Here are some demo pictures.

Demo home

Demo operations

Demo hover

Installation

$ gem install db_admin

Or modify Gemfile as below, then $ bundle install.

group :development do 
  # A Web UI for database admin. Run `$ db_admin` and then
  # visit http://localhost:4567
  gem 'db_admin', require: false
end

Make sure you have installed database driver gem.

E.g: gem install pg, gem install sqlite3 or gem install mysql2, etc.

$ db_admin # Run this command to start a Sinatra Web.

Visit http://localhost:4567

Customizing

If you want to change some code for your own purpose, please

$ git clone [email protected]:gazeldx/db_admin.git
$ ruby db_admin/lib/db_admin.rb # Then visit http://localhost:4567 

Debugging

You need to restart Web Server when you made a change.

Uncomment the below line in ./lib/db_admin.rb to auto-reload changed files.

require 'sinatra/reloader' if development? # `$ gem install sinatra-reloader` first.