class DBTestConnector: (source)
Known subclasses: twisted.test.test_adbapi.FirebirdConnector
, twisted.test.test_adbapi.MySQLConnector
, twisted.test.test_adbapi.PsycopgConnector
, twisted.test.test_adbapi.PyPgSQLConnector
, twisted.test.test_adbapi.PySQLite2Connector
, twisted.test.test_adbapi.SQLite3Connector
A class which knows how to test for the presence of and establish a connection to a relational database.
To enable test cases which use a central, system database, you must create a database named DB_NAME with a user DB_USER and password DB_PASS with full access rights to database DB_NAME.
Method | can |
Return true if this database is present on the system and can be used in a test. |
Method | get |
Return a tuple (args, kw) of list and keyword arguments that need to be passed to ConnectionPool to create a connection to this database. |
Method | make |
Create a connection pool with additional keyword arguments. |
Method | set |
Undocumented |
Method | start |
Take any steps needed to bring database up. |
Method | stop |
Bring database down, if needed. |
Constant | DB |
Undocumented |
Constant | DB |
Undocumented |
Constant | DB |
Undocumented |
Constant | DB |
Undocumented |
Constant | TEST |
Undocumented |
Class Variable | can |
Undocumented |
Class Variable | can |
Undocumented |
Class Variable | early |
Undocumented |
Class Variable | escape |
Undocumented |
Class Variable | nulls |
Undocumented |
Class Variable | num |
Undocumented |
Class Variable | test |
Undocumented |
Class Variable | trailing |
Undocumented |
twisted.test.test_adbapi.FirebirdConnector
, twisted.test.test_adbapi.MySQLConnector
, twisted.test.test_adbapi.PsycopgConnector
, twisted.test.test_adbapi.PyPgSQLConnector
, twisted.test.test_adbapi.PySQLite2Connector
, twisted.test.test_adbapi.SQLite3Connector
Return true if this database is present on the system and can be used in a test.
twisted.test.test_adbapi.FirebirdConnector
, twisted.test.test_adbapi.MySQLConnector
, twisted.test.test_adbapi.PsycopgConnector
, twisted.test.test_adbapi.PyPgSQLConnector
, twisted.test.test_adbapi.PySQLite2Connector
, twisted.test.test_adbapi.SQLite3Connector
Return a tuple (args, kw) of list and keyword arguments that need to be passed to ConnectionPool to create a connection to this database.
twisted.test.test_adbapi.FirebirdConnector
, twisted.test.test_adbapi.PySQLite2Connector
, twisted.test.test_adbapi.SQLite3Connector
Take any steps needed to bring database up.