Psycopg 3 API¶

This sections is a reference for all the public objects exposed by the psycopg module. For a more conceptual description you can take a look at Getting started with Psycopg 3 and More advanced topics.

Contents:

  • The psycopg module
  • Connection classes
    • The Connection class
    • The AsyncConnection class
    • Connection support objects
  • Cursor classes
    • The Cursor class
    • The ServerCursor class
    • The AsyncCursor class
    • The AsyncServerCursor class
    • The description Column object
    • COPY-related objects
  • sql – SQL string composition
    • Module usage
    • sql objects
    • Utility functions
  • rows – row factory implementations
    • Formal rows protocols
  • errors – Package exceptions
    • DB-API exceptions
    • Error diagnostics
    • SQLSTATE exceptions
  • conninfo – manipulate connection strings
  • adapt – Types adaptation
    • Dumpers and loaders
    • Other objects used in adaptations
  • types – Types information and adapters
    • Types information
    • JSON adapters
  • abc – Psycopg abstract classes
  • pq – libpq wrapper module
    • pq module implementations
    • Module content
    • Objects wrapping libpq structures and functions
    • Enumerations
  • psycopg_pool – Connection pool implementations
    • The ConnectionPool class
    • Pool exceptions
    • The AsyncConnectionPool class
  • _dns – DNS resolution utilities

psycopg

Navigation

  • Getting started with Psycopg 3
  • More advanced topics
  • Psycopg 3 API
    • The psycopg module
    • Connection classes
    • Cursor classes
    • sql – SQL string composition
    • rows – row factory implementations
    • errors – Package exceptions
    • conninfo – manipulate connection strings
    • adapt – Types adaptation
    • types – Types information and adapters
    • abc – Psycopg abstract classes
    • pq – libpq wrapper module
    • psycopg_pool – Connection pool implementations
    • _dns – DNS resolution utilities
  • Release notes

Related Topics

  • Documentation overview
    • Previous: Prepared statements
    • Next: The psycopg module

Quick search

©2020-2022, Daniele Varrazzo and The Psycopg Team. | Powered by Sphinx 4.5.0 & Alabaster 0.7.12 | Page source