Repository: duckdb/duckdb
File: src/include/duckdb/main/settings.hpp (C++)

Code before:
	static void OnSet(SettingCallbackInfo &info, Value &input);
};

struct ThreadsSetting {
	using RETURN_TYPE = int64_t;
	static constexpr const char *Name = "threads";
	static constexpr const char *Description = "The number of total threads used by the system.";
	static constexpr const char *InputType = "BIGINT";
	static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value &parameter);
	static void ResetGlobal(DatabaseInstance *db, DBConfig &config);
	static Value GetSetting(const ClientContext &context);
};

struct UsernameSetting {
	using RETURN_TYPE = string;
	static constexpr const char *Name = "username";
	static constexpr const char *Description = "The username to use. Ignored for legacy compatibility.";
	static constexpr const char *InputType = "VARCHAR";
	static constexpr const char *DefaultValue = "";
	static constexpr SettingScopeTarget Scope = SettingScopeTarget::GLOBAL_DEFAULT;
	static constexpr idx_t SettingIndex = 84;
};

struct UsingKeySyntaxSetting {
	using RETURN_TYPE = UsingKeySyntax;
	static constexpr const char *Name = "using_key_syntax";
	static constexpr const char *Description = "Configures the use of the deprecated union syntax for USING KEY CTEs.";
	static constexpr const char *InputType = "VARCHAR";
	static constexpr const char *DefaultValue = "DEFAULT";
	static constexpr SettingScopeTarget Scope = SettingScopeTarget::LOCAL_DEFAULT;
	static constexpr idx_t SettingIndex = 85;
	static void OnSet(SettingCallbackInfo &info, Value &input);
};

struct ValidateExternalFileCacheSetting {
	using RETURN_TYPE = CacheValidationMode;
	static constexpr const char *Name = "validate_external_file_cache";
	static constexpr const char *Description =
	    "Cache validation mode: VALIDATE_ALL (default, validate all cache entries), VALIDATE_REMOTE (validate only "
	    "remote cache entries), or NO_VALIDATION (disable cache validation).";
	static constexpr const char *InputType = "VARCHAR";
	static constexpr const char *DefaultValue = "VALIDATE_ALL";
	static constexpr SettingScopeTarget Scope = SettingScopeTarget::GLOBAL_DEFAULT;
	static constexpr idx_t SettingIndex = 86;
	static void OnSet(SettingCallbackInfo &info, Value &input);
};

struct VariantMinimumShreddingSizeSetting {
	using RETURN_TYPE = int64_t;
	static constexpr const char *Name = "variant_minimum_shredding_size";
	static constexpr const char *Description = "Minimum size of a rowgroup to enable VARIANT shredding, or set to -1 "

Review comment (suggestion):
Maybe we want to call this `deprecated_using_key_syntax` to signal to users that this is a setting that will be removed going forward

Code after:
	static constexpr idx_t SettingIndex = 85;
	static void OnSet(SettingCallbackInfo &info, Value &input);
};

struct StorageCompatibilityVersionSetting {
	using RETURN_TYPE = string;
	static constexpr const char *Name = "storage_compatibility_version";
	static constexpr const char *Description = "Serialize on checkpoint with compatibility for a given duckdb version";
	static constexpr const char *InputType = "VARCHAR";
	static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value &parameter);
	static void ResetGlobal(DatabaseInstance *db, DBConfig &config);
	static Value GetSetting(const ClientContext &context);
};

struct StreamingBufferSizeSetting {
	using RETURN_TYPE = string;
	static constexpr const char *Name = "streaming_buffer_size";
	static constexpr const char *Description =
	    "The maximum memory to buffer between fetching from a streaming result (e.g. 1GB)";
	static constexpr const char *InputType = "VARCHAR";
	static void SetLocal(ClientContext &context, const Value &parameter);
	static void ResetLocal(ClientContext &context);
	static Value GetSetting(const ClientContext &context);
};

struct TempDirectorySetting {
	using RETURN_TYPE = string;
	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";
	static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value &parameter);
	static void ResetGlobal(DatabaseInstance *db, DBConfig &config);
	static Value GetSetting(const ClientContext &context);
};

struct TempFileEncryptionSetting {
	using RETURN_TYPE = bool;
	static constexpr const char *Name = "temp_file_encryption";
	static constexpr const char *Description = "Encrypt all temporary files if database is encrypted";
	static constexpr const char *InputType = "BOOLEAN";
	static constexpr const char *DefaultValue = "false";
	static constexpr SettingScopeTarget Scope = SettingScopeTarget::GLOBAL_ONLY;
	static constexpr idx_t SettingIndex = 86;
	static void OnSet(SettingCallbackInfo &info, Value &input);
};

struct ThreadsSetting {
	using RETURN_TYPE = int64_t;
	static constexpr const char *Name = "threads";
	static constexpr const char *Description = "The number of total threads used by the system.";
	static constexpr const char *InputType = "BIGINT";