clef.db¶
Database connection functions
-
class
clef.db.Session¶ sqlalchemy.orm.session.Sessionconnected to the MAS databaseconnect()must be called before creating any new sessions
-
clef.db.connect(url='postgresql://clef.nci.org.au:5432/postgres', user=None, debug=False)[source]¶ Connect to the MAS 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