Commit Graph

24 Commits

Author SHA1 Message Date
needfeed 844ea9c07e Support MySQL SSL in rails dbconsole. 2012-09-10 12:36:49 -07:00
Sam Oliver cdd6d9b53a Fix various bugs with console arguments.
Allow hyphens in environment names again.
2012-05-30 22:23:04 +01:00
Alexey Vakhov 1fed1f14fc Fix `rails db -h` and cosmetic fixes in usage banners
Ruby tries to use '-h' as short version of '--header' by default
https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L1372-1381.
To force `rails db -h` prints an usage message we should add the `-h`
options explicitly.
2012-05-22 08:59:30 +04:00
Alexey Vakhov a060c41ef7 Use relative path to sqlite3 db in `rails db` command
Rails uses sqlit3 db file with a path relative to the rails root. It
allows to execute server not from rails root only. For example you
can fire `./spec/dummy/script/rails s` to start dummy application
server if you develop some engine gem.

Now the `rails db` command uses relative paths also and you can explore
your dummy db via `./spec/dummy/script/rails db` command.
2012-05-22 08:59:25 +04:00
Dmitry Vorotilin 346bb01849 More faster rails dbconsole 2012-05-06 22:53:53 +04:00
Alexey Vakhov 5d685f9db7 Add Rails::DBConsole tests 2012-05-02 08:48:06 +04:00
Rafael Mendonça França 7d26fad384 No need to require psych since require yaml does that. 2012-01-04 14:29:13 -03:00
Rafael Mendonça França 761b049b2e No need to use rescue block to require psych 2012-01-04 13:30:57 -03:00
Dieter Komendera 6cbe2709d6 dbconsole: Use the app's database_configuration instead of duplicating code. 2011-12-14 14:08:41 +01:00
Vijay Dev 4c872c017b Remove the -h option to dbconsole which is the shorter form of --header
This is done since the -h option to dbconsole hides the conventional
-h for help and forces users to use --help to see the usage options for
dbconsole.
2011-11-22 00:05:46 +05:30
4e873ffcda Corrected dbconsole usage message. 2011-04-12 00:59:55 -07:00
Akira Matsuda 8a85f64abf Accept 'postgres' as a PostgreSQL driver name in dbconsole for non-AR ORMs like DataMapper and Sequel
[#6180 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-01 13:20:53 -02:00
Akira Matsuda 2e11213d62 "rails dbconsole t" must not load "production" but "test"
[#6293 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-01-31 19:48:58 -02:00
Aaron Patterson 59f3218463 load and prefer psych as the YAML parser when it is available 2011-01-21 17:53:28 -08:00
Santiago Pastorino bb75c33754 Config is deprecated on 1.8.8 and 1.9.3 use RbConfig 2010-08-23 23:10:36 -03:00
Brian Lopez bf2ee89659 add support for mysql2 adapter to dbconsole
[#4532 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-04 15:47:08 -07:00
unknown e813ad2a42 Make db console work for all versions of ruby on Windows.
[#3999 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-26 10:57:44 -07:00
Edgars Beigarts 0848c862f0 Make script/dbconsole work with oracle (sqlplus <username>[/<password>][@<connect_identifier>])
[#3773 state:resolved]
2010-03-26 15:54:04 +01:00
Sam Granieri 488b4c8c5c Make script/dbconsole work again [#3690 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-01-16 20:55:22 +05:30
David Heinemeier Hansson 8cb594a2e1 Get everyone running on Rails.env and fix the broken environment settings for script/console and script/dbconsole 2010-01-11 14:01:28 -08:00
Carlhuda 530b8ff5ae Have script/* and Rakefile use the application object 2009-11-24 14:36:30 -08:00
Carlhuda a2cb90c0c2 Refactor script/dbconsole into an object 2009-11-24 13:05:21 -08:00
Carl Lerche 2110a524a4 Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root) 2009-10-16 12:51:02 -07:00
Yehuda Katz + Carl Lerche f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00