clef.db¶
Database connection functions
-
class
clef.db.
Session
¶ sqlalchemy.orm.session.Session
connected to the clef.nci.org.au databaseconnect()
must be called before creating any new sessions
-
clef.db.
connect
(url='postgresql://clef.nci.org.au:5432/clef', user=None, debug=False)[source]¶ Connect to the local database and sets up the session
Parameters: - url – Database URL
- user – Username (password will be prompted via
getpass
) - debug – Print debugging information
Returns: sqlalchemy.engine.Engine