Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Db Console

Db Console

Ever tried using ‘psql’ or ‘mysql’ on the command-line to connect to your Rails database, only to find you forgot all those ‘-u’ and ‘-h’ parameters?

This plugin provides handy rake tasks for running DB console programs for the various databases in your database.yml. It supports postgresql, mysql, sqlite and sqlite3 connections.

The plugin’s home on the web is here:

http://www.sanityinc.com/                             - articles and news
http://git.sanityinc.com/?p=db_console.git;a=summary  - code and downloads

Send feedback or patches by email to steve@sanityinc.com

Examples

% rake db:console # Connect to your RAILS_ENV database % rake db:console:production # Connect to the production database % rake db:console:test # Connect to the test database % rake db:console:some_other_db # Connect to some_other_db defined in database.yml % RAILS_ENV=test rake db:console # Connect to the test database

Copyright© 2007 Steve Purcell, released under the MIT license

Thanks to Larry Baltz.

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'