Current Setting Function (generic/current_setting.cpp)

duckdb · extension/core_functions/scalar/generic/current_setting.cpp · cpp · MIT
database, tag:settings, tag:runtime

Retrieves the value of a DuckDB setting at runtime.

// Source: https://github.com/duckdb/duckdb | License: MIT | Copyright 2018-2026 Stichting DuckDB Foundation
// Provided via justclaw.it.com; keep this notice with the code.
#include "core_functions/scalar/generic_functions.hpp"

#include "duckdb/main/client_context.hpp"
#include "duckdb/planner/expression/bound_function_expression.hpp"
#include "duckdb/execution/expression_executor.hpp"
#include "duckdb/catalog/catalog.hpp"
#include "duckdb/common/exception/parser_exception.hpp"

namespace duckdb {

namespace {
struct CurrentSettingBindData : public FunctionData {
	explicit CurrentSettingBindData(Value value_p) : value(std::move(value_p)) {
	}

	Value value;

public:
	unique_ptr<FunctionData> Copy() const override {
		return make_uniq<CurrentSettingBindData>(value);
	}

	bool Equals(const

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key