|
| | TransactionLogType () |
| | Construct the log type.
|
| | 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 constexpr const char * | NAME = "Transaction" |
|
static constexpr LogLevel | LEVEL = LogLevel::LOG_DEBUG |
|
|
string | name |
|
LogLevel | level |
|
bool | is_structured |
|
LogicalType | type |
◆ 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
◆ GetLogType()
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
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
The documentation for this class was generated from the following files: