Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::EnableExternalAccessSetting Struct Reference

Public Types

using RETURN_TYPE = bool

Static Public Member Functions

static void OnSet (SettingCallbackInfo &info, Value &input)

Static Public Attributes

static constexpr const char * Name = "enable_external_access"
static constexpr const char * Description
static constexpr const char * InputType = "BOOLEAN"
static constexpr const char * DefaultValue = "true"
static constexpr SettingScopeTarget Scope = SettingScopeTarget::GLOBAL_ONLY
static constexpr idx_t SettingIndex = 37

Member Function Documentation

◆ OnSet()

void duckdb::EnableExternalAccessSetting::OnSet ( SettingCallbackInfo & info,
Value & input )
static
302060 {
302061 if (!info.db) {
302062 return;
302063 }
302064 if (input.GetValue<bool>()) {
302065 throw InvalidInputException("Cannot enable external access while database is running");
302066 }
302067 auto &config = info.config;
302068 if (info.db && Settings::Get<EnableExternalAccessSetting>(*info.db)) {
302069 // we are turning off external access - add any already attached databases to the list of accepted paths
302070 auto &db_manager = DatabaseManager::Get(*info.db);
302071 auto attached_paths = db_manager.GetAttachedDatabasePaths();
302072 for (auto &path : attached_paths) {
302073 config.AddAllowedPath(path);
302074 config.AddAllowedPath(path + ".wal");
302075 config.AddAllowedPath(path + ".wal.checkpoint");
302076 config.AddAllowedPath(path + ".wal.recovery");
302077 }
302078 }
302079 if (config.options.use_temporary_directory && !config.options.temporary_directory.empty()) {
302080 // if temp directory is enabled we can also write there
302081 config.AddAllowedDirectory(config.options.temporary_directory);
302082 }
302083}

Member Data Documentation

◆ Description

const char* duckdb::EnableExternalAccessSetting::Description
staticconstexpr
Initial value:
=
"Allow the database to access external state (through e.g. loading/installing modules, COPY TO/FROM, CSV "
"readers, pandas replacement scans, etc)"

The documentation for this struct was generated from the following file: