Patroni
3.1
Contents:
Introduction
Patroni configuration
Patroni REST API
Replica imaging and bootstrap
Replication modes
Watchdog support
Pause/Resume mode for the cluster
DCS Failsafe Mode
Using Patroni with Kubernetes
Citus support
Convert a Standalone to a Patroni Cluster
Major Upgrade of PostgreSQL Version
Security Considerations
HA multi datacenter
Release notes
Contributing
Contributing guidelines
Patroni API docs
patroni package
Subpackages
Submodules
Module contents
Patroni
»
Contributing
»
patroni
»
patroni package
»
patroni.postgresql package
»
patroni.postgresql.connection module
Edit on GitHub
patroni.postgresql.connection module
¶
class
patroni.postgresql.connection.
Connection
¶
Bases:
object
close
(
)
→
None
¶
cursor
(
)
→
Union
[
cursor
,
Cursor
[
Any
]
]
¶
get
(
)
→
Union
[
connection
,
Connection3
[
Any
]
]
¶
server_version
:
int
¶
set_conn_kwargs
(
conn_kwargs
:
Dict
[
str
,
Any
]
)
→
None
¶
patroni.postgresql.connection.
get_connection_cursor
(
**
kwargs
:
Any
)
→
Iterator
[
Union
[
cursor
,
Cursor
[
Any
]
]
]
¶