hasCacheHTTPFS checks if cache_httpfs is in the extensions list.
(extensions []string)
| 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. |
| 1514 | func 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 |