Author: | Neil Wallace (neil@openmolar.com) |
---|---|
Release: | 2.0.906~hg207 |
Date: | April 18, 2013 |
Inherits from OpenmolarDatabase adding some functionality required only by the openmolar admin application.
A very important function is populateDemo() which populates the current database with demo data. This dangerous action is only performed if the database name ends with _demo or _test to prevent random data going into a real database.
Note
If this class is initiated with no arguments, a connection to the openmolar_demo on localhost will be established if possible.
Bases: lib_openmolar.common.qt4.postgres.openmolar_database.OpenmolarDatabase
inherits from lib_openmolar.common.connect.OpenmolarDatabase, which in turn inherits from PyQt4.QSql.QSqlDatabase