302529 {
302531
302533
302534 bool encrypted_db_attached = false;
302535 for (
auto &database :
db->GetDatabaseManager().GetDatabases()) {
302536 if (database->HasStorageManager() && database->GetStorageManager().IsEncrypted() &&
302537 !database->IsReadOnly()) {
302538 encrypted_db_attached = true;
302539 break;
302540 };
302541 };
302542
302543 if (encrypted_db_attached) {
302544
302546 throw InvalidConfigurationException("Failed to autoload HTTPFS. Cannot disable MbedTLS, HTTPFS "
302547 "extension is required to write encrypted databases.");
302548 };
302549 }
302550 }
302551}
static DUCKDB_API bool TryAutoLoadExtension(DatabaseInstance &db, const string &extension_name) noexcept
Autoload an extension (depending on config, potentially a nop. Returns false on failure).
Definition duckdb.cpp:278501
bool force_mbedtls
Enable mbedtls explicitly (overrides OpenSSL if available).
Definition duckdb.hpp:40024
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090