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

Public Types

using RETURN_TYPE = bool

Static Public Member Functions

static void SetLocal (ClientContext &context, const Value &parameter)
static void ResetLocal (ClientContext &context)
static bool OnLocalSet (ClientContext &context, const Value &input)
static bool OnLocalReset (ClientContext &context)
static Value GetSetting (const ClientContext &context)

Static Public Attributes

static constexpr const char * Name = "enable_progress_bar"
static constexpr const char * Description
static constexpr const char * InputType = "BOOLEAN"

Member Function Documentation

◆ SetLocal()

void duckdb::EnableProgressBarSetting::SetLocal ( ClientContext & context,
const Value & parameter )
static
301255 {
301256 if (!OnLocalSet(context, input)) {
301257 return;
301258 }
301259 auto &config = ClientConfig::GetConfig(context);
301260 config.enable_progress_bar = input.GetValue<bool>();
301261}

◆ ResetLocal()

void duckdb::EnableProgressBarSetting::ResetLocal ( ClientContext & context)
static
301263 {
301264 if (!OnLocalReset(context)) {
301265 return;
301266 }
301267 ClientConfig::GetConfig(context).enable_progress_bar = ClientConfig().enable_progress_bar;
301268}

◆ OnLocalSet()

bool duckdb::EnableProgressBarSetting::OnLocalSet ( ClientContext & context,
const Value & input )
static
302426 {
302427 auto &config = ClientConfig::GetConfig(context);
302428 ProgressBar::SystemOverrideCheck(config);
302429 return true;
302430}

◆ OnLocalReset()

bool duckdb::EnableProgressBarSetting::OnLocalReset ( ClientContext & context)
static
302432 {
302433 auto &config = ClientConfig::GetConfig(context);
302434 ProgressBar::SystemOverrideCheck(config);
302435 return true;
302436}

◆ GetSetting()

Value duckdb::EnableProgressBarSetting::GetSetting ( const ClientContext & context)
static
301270 {
301271 auto &config = ClientConfig::GetConfig(context);
301272 return Value::BOOLEAN(config.enable_progress_bar);
301273}
static DUCKDB_API Value BOOLEAN(bool value)
Create a boolean Value from a specified value.
Definition duckdb.cpp:132118

Member Data Documentation

◆ Description

const char* duckdb::EnableProgressBarSetting::Description
staticconstexpr
Initial value:
=
"Enables the progress bar, printing progress to the terminal for long queries"

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