diff --git a/scripts/db_shell.py b/scripts/db_shell.py index c896ec04af6..6850dede093 100644 --- a/scripts/db_shell.py +++ b/scripts/db_shell.py @@ -1,12 +1,15 @@ # This script allows easy access to Galaxy's database layer via the # Galaxy models. For example: -# % python -i scripts/db_shell.py +# % python -i scripts/db_shell.py -c config/galaxy.ini # >>> new_user = User("admin@gmail.com") # >>> new_user.set_password # >>> sa_session.add(new_user) # >>> sa_session.commit() # >>> sa_session.query(User).all() # +# If you use ipython use: +# % ipython -i scripts/db_shell.py -- -c config/galaxy.ini +# # You can also use this script as a library, for instance see https://gist.github.com/1979583 # TODO: This script overlaps a lot with manage_db.py and create_db.py, # these should maybe be refactored to remove duplication.