PostgresConn
class PostgresConn(
uri: str,
credentials: UserPasswordCredentials | None = None,
enforce_connection_params: bool = True,
cx_src_configs_postgres: dict | None = None,
cx_dst_configs_postgres: dict | None = None,
)
Bases: Conn
Categories: connections
Represents a connection configuration to Postgres.
Initialize a PostgresConn instance.
Parameters
uriThe URI of the Postgres database.
credentialsCredentials for authenticating with the database.
enforce_connection_paramsWhether to enforce connection parameters for the Postgres connection. Applicable only for a connection to a Postgres Destination. Defaults to True.
cx_src_configs_postgresSource-specific configuration parameters for the Postgres connection. Defaults to None.
cx_dst_configs_postgresDestination-specific configuration parameters for the Postgres connection. Defaults to None.
Raises
ConnectionConfigurationError: If any connection configurations are invalid.
Properties
credentialsUserPasswordCredentials | NoneThe credentials required to access the Postgres database. If no credentials were provided, it will return None.
cx_dst_configs_postgresdictDestination-specific configuration parameters for the Postgres connection.
cx_src_configs_postgresdictSource-specific configuration parameters for the Postgres connection.
enforce_connection_paramsboolWhether to enforce connection parameters for the Postgres connection.
uristrThe URI of the database where the data is located.