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

Public Types

using RETURN_TYPE = OrderType

Static Public Member Functions

static void OnSet (SettingCallbackInfo &info, Value &input)

Static Public Attributes

static constexpr const char * Name = "default_order"
static constexpr const char * Description = "The order type used when none is specified (ASC or DESC)"
static constexpr const char * InputType = "VARCHAR"
static constexpr const char * DefaultValue = "ASCENDING"
static constexpr SettingScopeTarget Scope = SettingScopeTarget::GLOBAL_DEFAULT
static constexpr idx_t SettingIndex = 31

Member Function Documentation

◆ OnSet()

void duckdb::DefaultOrderSetting::OnSet ( SettingCallbackInfo & info,
Value & input )
static
301910 {
301911 auto parameter = StringUtil::Lower(input.ToString());
301912 if (parameter == "ascending" || parameter == "asc") {
301913 input = Value("ASC");
301914 } else if (parameter == "descending" || parameter == "desc") {
301915 input = Value("DESC");
301916 } else {
301917 throw InvalidInputException("Unrecognized parameter for option DEFAULT_ORDER \"%s\". Expected ASC or DESC.",
301918 parameter);
301919 }
301920}
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318

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