On Thu, Jan 21, 2010 at 10:26 AM, kolargol <[email protected]> wrote:
>
> Is there some reference manual for console/dbconsole?
>

Actually, they are both part of the framework, Rails.

script/dbconsole is just a wrapper that reads the database name, username,
password etc from the configuration file and launches a SQL console.

script/console establishes a standard interactive Ruby (irb) console with
the application loaded. This means you can access all classes and objects
available in the application and play with them directly. Us Rails people
use it in situations where the web GUI doesn't expose the functionality
needed to achieve something while still letting the application handle
states and callbacks etc. For instance, deleting an object usually involve
updating/deleting related objects from the database, which would not happen
if you enter raw SQL queries. By using the console, the application behaves
just like it would otherwise, so you don't wind up with bad data in the
system.

Cheers,
- Marius
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to