Inner Types
kyotsu.config.databases._types
¶
This module contains types that are used for kyotsu.config.databases mixins and models.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ConnType |
TypeVar that used for generic
|
| CLASS | DESCRIPTION |
|---|---|
AmqpQueryParams |
Represents the set of query params used for AMQP connection. |
OpenSearchConnectionDict |
Represents the dictionary of connection parameters needed for an OpenSearch connection. |
ConnType = TypeVar('ConnType')
module-attribute
¶
Type for CONN_STR in classes inherited from generic DBConnection.
AmqpQueryParams
¶
Bases: TypedDict
This TypedDict subclass represents the set of query parameters that can be used on an AMQP connection.
These parameters include detailed AMQP client configurations, such as backpressure detection, retry delay, socket timeout and many others.
This dict should be used as the QUERY_PARAMS attribute of an AmqpConnection instance.
See more details at: pika.connection.URLParameters
Source code in src/kyotsu/config/databases/_types.py
OpenSearchConnectionDict
¶
Bases: TypedDict
This TypedDict subclass represents the dictionary of connection parameters needed for an OpenSearch connection.
It is used in the CONN_DICT attribute of an OpenSearchNoCertConnection instance after being processed in
assemble_conn_dict method.
This dict establishes details about hosts, authentication, scheme, port, and SSL context, which all will be used to configure and establish the OpenSearch connection.