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

Public Types

using RETURN_TYPE = string

Static Public Member Functions

static void SetGlobal (DatabaseInstance *db, DBConfig &config, const Value &parameter)
static void ResetGlobal (DatabaseInstance *db, DBConfig &config)
static Value GetSetting (const ClientContext &context)

Static Public Attributes

static constexpr const char * Name = "checkpoint_threshold"
static constexpr const char * Description
static constexpr const char * InputType = "VARCHAR"

Member Function Documentation

◆ SetGlobal()

void duckdb::CheckpointThresholdSetting::SetGlobal ( DatabaseInstance * db,
DBConfig & config,
const Value & parameter )
static
301648 {
301649 idx_t new_limit = DBConfig::ParseMemoryLimit(input.ToString());
301650 config.options.checkpoint_wal_size = new_limit;
301651}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
idx_t checkpoint_wal_size
Checkpoint when WAL reaches this size (default: 16MiB).
Definition duckdb.hpp:39994
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090

◆ ResetGlobal()

void duckdb::CheckpointThresholdSetting::ResetGlobal ( DatabaseInstance * db,
DBConfig & config )
static
301188 {
301189 config.options.checkpoint_wal_size = DBConfigOptions().checkpoint_wal_size;
301190}

◆ GetSetting()

Value duckdb::CheckpointThresholdSetting::GetSetting ( const ClientContext & context)
static
301653 {
301654 auto &config = DBConfig::GetConfig(context);
301655 return Value(StringUtil::BytesToHumanReadableString(config.options.checkpoint_wal_size));
301656}
static DUCKDB_API string BytesToHumanReadableString(idx_t bytes, idx_t multiplier=1024)
Return a string that formats the give number of bytes.
Definition duckdb.cpp:109517

Member Data Documentation

◆ Description

const char* duckdb::CheckpointThresholdSetting::Description
staticconstexpr
Initial value:
=
"The WAL size threshold at which to automatically trigger a checkpoint (e.g. 1GB)"

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