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::TransactionLogType Class Reference
Inheritance diagram for duckdb::TransactionLogType:
Collaboration diagram for duckdb::TransactionLogType:

Public Member Functions

 TransactionLogType ()
 Construct the log type.
Public Member Functions inherited from duckdb::LogType
 LogType (const string &name_p, const LogLevel &level_p)
 Construct an unstructured type.
 LogType (const string &name_p, const LogLevel &level_p, LogicalType structured_type)
 Construct a structured type.

Static Public Member Functions

static LogicalType GetLogType ()
static string ConstructLogMessage (const AttachedDatabase &db, const char *log_type, transaction_t transaction_id=MAX_TRANSACTION_ID)

Static Public Attributes

static constexpr const char * NAME = "Transaction"
static constexpr LogLevel LEVEL = LogLevel::LOG_DEBUG

Additional Inherited Members

Public Attributes inherited from duckdb::LogType
string name
LogLevel level
bool is_structured
LogicalType type

Constructor & Destructor Documentation

◆ TransactionLogType()

duckdb::TransactionLogType::TransactionLogType ( )

Construct the log type.

260904 : LogType(NAME, LEVEL, GetLogType()) {
260905}
LogType(const string &name_p, const LogLevel &level_p)
Construct an unstructured type.
Definition duckdb.hpp:39081
Here is the call graph for this function:

Member Function Documentation

◆ GetLogType()

LogicalType duckdb::TransactionLogType::GetLogType ( )
static
260907 {
260908 child_list_t<LogicalType> child_list = {
260909 {"database", LogicalType::VARCHAR},
260910 {"type", LogicalType::VARCHAR},
260911 {"transaction_id", LogicalType::UBIGINT},
260912 };
260913 return LogicalType::STRUCT(child_list);
260914}

◆ ConstructLogMessage()

string duckdb::TransactionLogType::ConstructLogMessage ( const AttachedDatabase & db,
const char * log_type,
transaction_t transaction_id = MAX_TRANSACTION_ID )
static
260917 {
260918 child_list_t<Value> child_list = {
260919 {"database", db.name},
260920 {"type", log_type},
260921 {"transaction_id", transaction_id == MAX_TRANSACTION_ID ? Value() : Value::UBIGINT(transaction_id)},
260922 };
260923
260924 return Value::STRUCT(std::move(child_list)).ToString();
260925}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318
static DUCKDB_API Value STRUCT(child_list_t< Value > values)
Create a struct value with given list of entries.
Definition duckdb.cpp:132434
db

The documentation for this class was generated from the following files: