httk.store.backend.postgresql.hooks =================================== .. py:module:: httk.store.backend.postgresql.hooks .. autoapi-nested-parse:: PostgreSQL engine hooks: the per-dialect behavior the neutral SQL engine dispatches to. :mod:`httk.store.backend.sql.engine` keeps only neutral dialect dispatch; the PostgreSQL-specific bodies live here and are imported lazily on first use by the ``_DIALECT_HOOKS`` registry in :mod:`httk.store.backend.sql.engine`. Functions --------- .. autoapisummary:: httk.store.backend.postgresql.hooks.connection_uses_autocommit Module Contents --------------- .. py:function:: connection_uses_autocommit(connection) Return whether the live PostgreSQL DBAPI connection is in autocommit mode. psycopg 3 exposes the live autocommit flag on the DBAPI connection; the transactional-profile validator relies on this to reject a misconfigured AUTOCOMMIT PostgreSQL engine. :param connection: The live PostgreSQL SQLAlchemy connection to inspect. :return: Whether the underlying DBAPI connection is in autocommit mode.