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

Public Member Functions

 ExportStatement (unique_ptr< CopyInfo > info)
unique_ptr< SQLStatement > Copy () const override
 Create a copy of this SelectStatement.
string ToString () const override
Public Member Functions inherited from duckdb::SQLStatement
 SQLStatement (StatementType type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

unique_ptr< CopyInfo > info
string database
Public Attributes inherited from duckdb::SQLStatement
StatementType type
 The statement type.
idx_t stmt_location = 0
 The statement location within the query string.
idx_t stmt_length = 0
 The statement length within the query string.
case_insensitive_map_t< idx_t > named_param_map
 The map of named parameter to param index.
string query
 The query text that corresponds to this SQL statement.

Static Public Attributes

static constexpr const StatementType TYPE = StatementType::EXPORT_STATEMENT
Static Public Attributes inherited from duckdb::SQLStatement
static constexpr const StatementType TYPE = StatementType::INVALID_STATEMENT

Protected Member Functions

 ExportStatement (const ExportStatement &other)
Protected Member Functions inherited from duckdb::SQLStatement
 SQLStatement (const SQLStatement &other)=default

Constructor & Destructor Documentation

◆ ExportStatement() [1/2]

duckdb::ExportStatement::ExportStatement ( unique_ptr< CopyInfo > info)
explicit
349281 : SQLStatement(StatementType::EXPORT_STATEMENT), info(std::move(info)) {
349282}

◆ ExportStatement() [2/2]

duckdb::ExportStatement::ExportStatement ( const ExportStatement & other)
protected
349285 : SQLStatement(other), info(other.info->Copy()), database(other.database) {
349286}

Member Function Documentation

◆ Copy()

unique_ptr< SQLStatement > duckdb::ExportStatement::Copy ( ) const
overridevirtual

Create a copy of this SelectStatement.

Implements duckdb::SQLStatement.

349288 {
349289 return unique_ptr<ExportStatement>(new ExportStatement(*this));
349290}

◆ ToString()

string duckdb::ExportStatement::ToString ( ) const
overridevirtual

Implements duckdb::SQLStatement.

349292 {
349293 string result = "";
349294 result += "EXPORT DATABASE";
349295 if (!database.empty()) {
349296 result += " " + database + " TO";
349297 }
349298 auto &path = info->file_path;
349299 D_ASSERT(info->is_from == false);
349300 result += StringUtil::Format(" '%s'", path);
349301 result += info->CopyOptionsToString();
349302 result += ";";
349303 return result;
349304}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

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