PostgresqlSourceOptions

Connection options for the PostgreSQL source connector.

class scamander.models.source_config.postgresql.PostgresqlSourceOptions(*, driver: str, host: str, port: int, username: str, password: str, database: str)

Bases: BaseModel

Connection options for the PostgreSQL source connector (JDBC).

driver

Fully qualified JDBC driver class name, e.g. "org.postgresql.Driver".

Type:

str

host

PostgreSQL hostname or IP address.

Type:

str

port

TCP port, typically 5432.

Type:

int

username

Login username.

Type:

str

password

Login password.

Type:

str

database

Target database name.

Type:

str

Example:

from scamander.models.source_config.postgresql import PostgresqlSourceOptions

options = PostgresqlSourceOptions(
    driver="org.postgresql.Driver",
    host="db.internal",
    port=5432,
    username="etl_user",
    password="...",
    database="analytics",
)
model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].