destinations.impl.postgres.factory
postgres Objects
class postgres(Destination[PostgresClientConfiguration, "PostgresClient"])
__init__
def __init__(credentials: t.Union[PostgresCredentials, t.Dict[str, t.Any],
str] = None,
create_indexes: bool = True,
destination_name: t.Optional[str] = None,
environment: t.Optional[str] = None,
**kwargs: t.Any) -> None
Configure the Postgres destination to use in a pipeline.
All arguments provided here supersede other configuration sources such as environment variables and dlt config files.
Arguments:
credentials
- Credentials to connect to the postgres database. Can be an instance ofPostgresCredentials
or a connection string in the formatpostgres://user:password@host:port/database
create_indexes
- Should unique indexes be created**kwargs
- Additional arguments passed to the destination config