Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purcell/db_console
Defunct Rails plugin (now merged into Rails as script/dbconsole)
https://github.com/purcell/db_console
Last synced: 3 days ago
JSON representation
Defunct Rails plugin (now merged into Rails as script/dbconsole)
- Host: GitHub
- URL: https://github.com/purcell/db_console
- Owner: purcell
- License: mit
- Created: 2008-05-05T08:02:43.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2011-07-06T09:44:31.000Z (over 13 years ago)
- Last Synced: 2024-12-02T18:11:17.439Z (2 months ago)
- Language: Ruby
- Homepage: http://www.sanityinc.com/articles/rails-db-console
- Size: 102 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
DBConsole
=========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 downloadsSend feedback or patches by email to [email protected]
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 databaseCopyright (c) 2007 Steve Purcell, released under the MIT license
Thanks to Larry Baltz.