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

Static Public Member Functions

static CacheValidationMode GetCacheValidationMode (const OpenFileInfo &info, optional_ptr< ClientContext > client_context, DatabaseInstance &db)

Member Function Documentation

◆ GetCacheValidationMode()

CacheValidationMode duckdb::ExternalFileCacheUtil::GetCacheValidationMode ( const OpenFileInfo & info,
optional_ptr< ClientContext > client_context,
DatabaseInstance & db )
static

Get the cache validation mode in order of file open info, client context (for client-local settings), or database config.

413437 {
413438 // First check if explicitly set in OpenFileInfo options (per-file override).
413439 if (info.extended_info != nullptr) {
413440 const auto &open_options = info.extended_info->options;
413441 const auto validate_entry = open_options.find("validate_external_file_cache");
413442 if (validate_entry != open_options.end()) {
413443 if (validate_entry->second.IsNull()) {
413444 throw InvalidInputException("Cannot use NULL as argument for validate_external_file_cache");
413445 }
413446 const bool validate_cache = BooleanValue::Get(validate_entry->second);
413447 return validate_cache ? CacheValidationMode::VALIDATE_ALL : CacheValidationMode::NO_VALIDATION;
413448 }
413449 }
413450
413451 // If client context is available, check client-local settings first, then fall back to database config.
413452 if (client_context) {
413453 return Settings::Get<ValidateExternalFileCacheSetting>(*client_context);
413454 }
413455
413456 // No client context, fall back to database config.
413457 return Settings::Get<ValidateExternalFileCacheSetting>(db);
413458}

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