crossbar.edge.worker.postgresql¶
Classes¶
Module Contents¶
- class PostgresConnectionPool(personality, session)[source]¶
Bases:
object- static check_connection(personality, connection, ignore=[])[source]¶
Check a connection item (such as a PostgreSQL or Oracle database connection pool).
- static check_connections(personality, connections)[source]¶
Connections can be present in controller, router and container processes.
- get_connections(details=None)[source]¶
Get connections currently running within this processs.
- Parameters:
details (instance of
autobahn.wamp.types.CallDetails) – Caller details.- Returns:
List of connections.
- start_connection(id, config, details=None)[source]¶
Starts a connection in this process.
- Parameters:
id (unicode) – The ID for the started connection.
config (dict) – Connection configuration.
details (instance of
autobahn.wamp.types.CallDetails) – Caller details.
- Returns:
The connection.
- stop_connection(id, details=None)[source]¶
Stop a connection currently running within this process.
- Parameters:
id (unicode) – The ID of the connection to stop.
details (instance of
autobahn.wamp.types.CallDetails) – Caller details.
- Returns:
A dict with component start information.