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

Public Types

using RETURN_TYPE = string

Static Public Member Functions

static void SetGlobal (DatabaseInstance *db, DBConfig &config, const Value &parameter)
static void ResetGlobal (DatabaseInstance *db, DBConfig &config)
static Value GetSetting (const ClientContext &context)

Static Public Attributes

static constexpr const char * Name = "temp_directory"
static constexpr const char * Description = "Set the directory to which to write temp files"
static constexpr const char * InputType = "VARCHAR"

Member Function Documentation

◆ SetGlobal()

void duckdb::TempDirectorySetting::SetGlobal ( DatabaseInstance * db,
DBConfig & config,
const Value & parameter )
static
302923 {
302924 if (!Settings::Get<EnableExternalAccessSetting>(config)) {
302925 throw PermissionException("Modifying the temp_directory has been disabled by configuration");
302926 }
302927 config.options.temporary_directory = input.IsNull() ? "" : input.ToString();
302929 if (db) {
302930 auto &buffer_manager = BufferManager::GetBufferManager(*db);
302931 buffer_manager.SetTemporaryDirectory(config.options.temporary_directory);
302932 }
302933}
bool use_temporary_directory
Whether or not to create and use a temporary directory to store intermediates that do not fit in memo...
Definition duckdb.hpp:40006
string temporary_directory
Directory to store temporary structures that do not fit in memory.
Definition duckdb.hpp:40008
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090

◆ ResetGlobal()

void duckdb::TempDirectorySetting::ResetGlobal ( DatabaseInstance * db,
DBConfig & config )
static
302935 {
302936 if (!Settings::Get<EnableExternalAccessSetting>(config)) {
302937 throw PermissionException("Modifying the temp_directory has been disabled by configuration");
302938 }
302939 config.SetDefaultTempDirectory();
302940 config.options.use_temporary_directory = DBConfigOptions().use_temporary_directory;
302941 if (db) {
302942 auto &buffer_manager = BufferManager::GetBufferManager(*db);
302943 buffer_manager.SetTemporaryDirectory(config.options.temporary_directory);
302944 }
302945}

◆ GetSetting()

Value duckdb::TempDirectorySetting::GetSetting ( const ClientContext & context)
static
302947 {
302948 auto &buffer_manager = BufferManager::GetBufferManager(context);
302949 return Value(buffer_manager.GetTemporaryDirectory());
302950}

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