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

Function hasCacheHTTPFS

server/server.go:1508–1516  ·  view source on GitHub ↗

hasCacheHTTPFS checks if cache_httpfs is in the extensions list.

(extensions []string)

Source from the content-addressed store, hash-verified

1506}
1507
1508// LoadExtensions installs and loads DuckDB extensions.
1509// This is a standalone function so it can be reused by control plane workers.
1510// Extension strings can include a source, e.g. "cache_httpfs FROM community".
1511// INSTALL uses the full string; LOAD uses just the extension name.
1512//
1513// NOTE: Extension names come from trusted server config, not user input.
1514func LoadExtensions(db *sql.DB, extensions []string) error {
1515 return loadExtensionsWith(db, extensions)
1516}
1517
1518// loadExtensionsWith is LoadExtensions over a duckLakeSQLExecer so the
1519// catalog-attachment paths can run INSTALL/LOAD under per-step deadlines via

Callers 2

ConfigureMainDBFunction · 0.85
TestHasCacheHTTPFSFunction · 0.85

Calls 1

parseExtensionNameFunction · 0.85

Tested by 1

TestHasCacheHTTPFSFunction · 0.68