OracleSourceOptions¶
Connection options for the Oracle source connector.
- class scamander.models.source_config.oracle.OracleSourceOptions(*, driver: str = 'oracle.jdbc.driver.OracleDriver', host: str, port: int = 1521, service_name: str | None = None, sid: str | None = None, username: str, password: str, table: str | None = None, query: str | None = None, fetch_size: int = 10000)¶
Bases:
BaseModelConnection options for the Oracle source connector (JDBC).
- driver¶
Fully qualified JDBC driver class name. Defaults to the standard Oracle JDBC thin driver.
- Type:
str
- host¶
Oracle hostname or IP address.
- Type:
str
- port¶
TCP port. Defaults to
1521.- Type:
int
- service_name¶
Oracle service name (recommended over SID). Either
service_nameorsidmust be provided.- Type:
str | None
- sid¶
Oracle SID (legacy). Use
service_namewhen possible.- Type:
str | None
- username¶
Login username.
- Type:
str
- password¶
Login password.
- Type:
str
- table¶
Source table or view name (used when
queryis not set).- Type:
str | None
- query¶
Custom SQL query to use as the data source instead of a plain table name. Takes precedence over
tablewhen both are set.- Type:
str | None
- fetch_size¶
Number of rows fetched per JDBC round-trip. Defaults to
10000.- Type:
int
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].