twisted.test.test_adbapi.DummyConnectionPool(ConnectionPool)
class documentationtwisted.test.test_adbapi
(View In Hierarchy)
A testable ConnectionPool
;
Method | __init__ | Don't forward init call. |
Inherited from ConnectionPool:
Instance Variable | connectionFactory | factory for connections, default to Connection . (type: any callable.) |
Instance Variable | transactionFactory | factory for transactions, default to Transaction . (type: any callable) |
Instance Variable | shutdownID | None
or a handle on the shutdown event trigger which will be used to stop the
connection pool workers when the reactor stops. |
Method | start | Start the connection pool. |
Method | runWithConnection | Execute a function with a database connection and return the result. |
Method | runInteraction | Interact with the database and return the result. |
Method | runQuery | Execute an SQL query and return the result. |
Method | runOperation | Execute an SQL query and return None . |
Method | close | Close all pool connections and shutdown the pool. |
Method | finalClose | This should only be called by the shutdown trigger. |
Method | connect | Return a database connection when one becomes available. |
Method | disconnect | Disconnect a database connection associated with this pool. |
Method | __getstate__ | Undocumented |
Method | __setstate__ | Undocumented |
Instance Variable | _reactor | The reactor which will be used to schedule startup and shutdown events. (type: IReactorCore
provider) |
Method | _start | Undocumented |
Method | _runWithConnection | Undocumented |
Method | _close | Undocumented |
Method | _runInteraction | Undocumented |
Method | _runQuery | Undocumented |
Method | _runOperation | Undocumented |