|
|
using | RETURN_TYPE = vector<string> |
|
|
static constexpr const char * | Name = "allowed_directories" |
| static constexpr const char * | Description |
|
static constexpr const char * | InputType = "VARCHAR[]" |
◆ SetGlobal()
301546 {
301547 if (!Settings::Get<EnableExternalAccessSetting>(config)) {
301548 throw InvalidInputException("Cannot change allowed_directories when enable_external_access is disabled");
301549 }
301551 throw InvalidInputException("Cannot change/set allowed_directories before the database is started");
301552 }
301554 auto &list = ListValue::GetChildren(input);
301555 for (auto &val : list) {
301556 config.AddAllowedDirectory(val.GetValue<string>());
301557 }
301558}
set< string > allowed_directories
Directories that are explicitly allowed, even if enable_external_access is false.
Definition duckdb.hpp:40056
unique_ptr< FileSystem > file_system
The FileSystem to use, can be overwritten to allow for injecting custom file systems for testing purp...
Definition duckdb.hpp:40082
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090
◆ ResetGlobal()
301560 {
301561 if (!Settings::Get<EnableExternalAccessSetting>(config)) {
301562 throw InvalidInputException("Cannot change allowed_directories when enable_external_access is disabled");
301563 }
301565}
◆ GetSetting()
301567 {
301568 auto &config = DBConfig::GetConfig(context);
301569 vector<Value> allowed_directories;
301570 for (auto &dir : config.options.allowed_directories) {
301571 allowed_directories.emplace_back(dir);
301572 }
301573 return Value::LIST(LogicalType::VARCHAR, std::move(allowed_directories));
301574}
static DUCKDB_API Value LIST(const LogicalType &child_type, vector< Value > values)
Create a list value with the given entries.
Definition duckdb.cpp:132555
◆ Description
| const char* duckdb::AllowedDirectoriesSetting::Description |
|
staticconstexpr |
Initial value:= "List of directories/prefixes that are ALWAYS allowed to be queried - "
"even when enable_external_access is false"
The documentation for this struct was generated from the following file: