fix(core): preserve adapter command contracts
This commit is contained in:
@@ -14,7 +14,10 @@ def build_dwh(cfg: Config) -> DwhAdapter:
|
||||
resource = cfg.dwh
|
||||
match resource.type:
|
||||
case "postgres_direct":
|
||||
return PostgresDwhAdapter(resource.connection)
|
||||
return PostgresDwhAdapter(
|
||||
resource.connection,
|
||||
statement_timeout_ms=cfg.execution.statement_timeout_ms,
|
||||
)
|
||||
case "thoth_rest":
|
||||
return ThothRestDwhAdapter(resource.database, resource.endpoint)
|
||||
case other: # pragma: no cover - Pydantic's discriminator rejects this first.
|
||||
|
||||
Reference in New Issue
Block a user