Python representation of a libpq connection.
"""
- __module__ = "psycopg.pq"
__slots__ = (
"_pgconn_ptr",
"notice_handler",
Python representation of a libpq result.
"""
- __module__ = "psycopg.pq"
__slots__ = ("_pgresult_ptr",)
def __init__(self, pgresult_ptr: impl.PGresult_struct):
Created by `PGconn.get_cancel()`.
"""
- __module__ = "psycopg.pq"
__slots__ = ("pgcancel_ptr",)
def __init__(self, pgcancel_ptr: impl.PGcancel_struct):
Utility object to manipulate connection strings.
"""
- __module__ = "psycopg.pq"
-
@classmethod
def get_defaults(cls) -> List[ConninfoOption]:
opts = impl.PQconndefaults()
Utility object to escape strings for SQL interpolation.
"""
- __module__ = "psycopg.pq"
-
def __init__(self, conn: Optional[PGconn] = None):
self.conn = conn