(name string)
| 1405 | // httpfs (DuckLake auto-loads it on the first S3 touch). See |
| 1406 | // applyHTTPFSRetryBudget for why this can't run in ConfigureMainDB. |
| 1407 | applyHTTPFSRetryBudget(db) |
| 1408 | applyParquetPrefetchPolicy(db, cfg.DisableParquetPrefetching) |
| 1409 | |
| 1410 | return nil |
| 1411 | } |
| 1412 | |
| 1413 | // ActivateDBConnection applies tenant-specific DuckLake runtime to an already |
| 1414 | // initialized generic DuckDB connection used by a shared warm worker. |
| 1415 | func ActivateDBConnection(db *sql.DB, cfg Config, duckLakeSem chan struct{}, username string) error { |
| 1416 | if cfg.DuckLake.MetadataStore == "" { |
| 1417 | return fmt.Errorf("tenant activation requires a ducklake metadata_store") |
no test coverage detected