class documentation
class DatabaseCreation(BaseDatabaseCreation): (source)
Undocumented
Method | sql |
SQL to append to the end of the test table creation statements. |
Method | _clone |
Internal implementation - duplicate the test db tables. |
Method | _database |
Undocumented |
Method | _execute |
Undocumented |
Method | _get |
Undocumented |
Method | _quote |
Undocumented |
Inherited from BaseDatabaseCreation
:
Method | __init__ |
Undocumented |
Method | clone |
Clone a test database. |
Method | create |
Create a test database, prompting the user for confirmation if the database already exists. Return the name of the test database created. |
Method | deserialize |
Reload the database with data from a string generated by the serialize_db_to_string() method. |
Method | destroy |
Destroy a test database, prompting the user for confirmation if the database already exists. |
Method | get |
Return a modified connection settings dict for the n-th clone of a DB. |
Method | log |
Undocumented |
Method | mark |
Mark tests in Django's test suite which are expected failures on this database and test which should be skipped on this database. |
Method | serialize |
Serialize all data in the database into a JSON string. Designed only for test runner usage; will not handle large amounts of data. |
Method | set |
Set this database up to be used in testing as a mirror of a primary database whose settings are given. |
Method | setup |
Undocumented |
Method | test |
Return a tuple with elements of self.connection.settings_dict (a DATABASES setting value) that uniquely identify a database accordingly to the RDBMS particularities. |
Instance Variable | connection |
Undocumented |
Method | _create |
Internal implementation - create the test db tables. |
Method | _destroy |
Internal implementation - remove the test db tables. |
Method | _get |
Return display string for a database for use in various actions. |
Method | _get |
Internal implementation - return the name of the test DB that will be created. Only useful when called from create_test_db() and _create_test_db() and when no external munging is done with the 'NAME' settings. |
Method | _nodb |
Undocumented |