mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #5297 from mvdbeek/db_shell_doc_update
Mention how to specify the config file location
This commit is contained in:
+4
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user