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::HomeDirectorySetting Struct Reference

Public Types

using RETURN_TYPE = string

Static Public Member Functions

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

Static Public Attributes

static constexpr const char * Name = "home_directory"
static constexpr const char * Description = "Sets the home directory used by the system"
static constexpr const char * InputType = "VARCHAR"
static constexpr const char * DefaultValue = ""
static constexpr SettingScopeTarget Scope = SettingScopeTarget::LOCAL_DEFAULT
static constexpr idx_t SettingIndex = 53

Member Function Documentation

◆ OnSet()

void duckdb::HomeDirectorySetting::OnSet ( SettingCallbackInfo & info,
Value & input )
static
302477 {
302478 optional_ptr<FileSystem> fs;
302479 if (info.context) {
302480 fs = FileSystem::GetFileSystem(*info.context);
302481 } else if (info.db) {
302482 fs = FileSystem::GetFileSystem(*info.db);
302483 } else {
302484 fs = info.config.file_system.get();
302485 }
302486 if (fs && !input.IsNull()) {
302487 auto new_home_directory = input.ToString();
302488 if (fs->IsRemoteFile(new_home_directory)) {
302489 throw InvalidInputException("Cannot set the home directory to a remote path");
302490 }
302491 }
302492}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318

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