MCPcopy Create free account
hub / github.com/PostHog/duckgres / shouldInstallExtension

Function shouldInstallExtension

server/server.go:1407–1414  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

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.
1415func 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")

Callers 1

loadExtensionsWithFunction · 0.85

Calls 1

Tested by

no test coverage detected