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

Public Member Functions

 CopyDatabaseStatement (string from_database, string to_database, CopyDatabaseType copy_type)
DUCKDB_API 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

string from_database
string to_database
CopyDatabaseType copy_type
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::COPY_DATABASE_STATEMENT
Static Public Attributes inherited from duckdb::SQLStatement
static constexpr const StatementType TYPE = StatementType::INVALID_STATEMENT

Protected Member Functions

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

Constructor & Destructor Documentation

◆ CopyDatabaseStatement() [1/2]

duckdb::CopyDatabaseStatement::CopyDatabaseStatement ( string from_database,
string to_database,
CopyDatabaseType copy_type )
348986 : SQLStatement(StatementType::COPY_DATABASE_STATEMENT), from_database(std::move(from_database_p)),
348987 to_database(std::move(to_database_p)), copy_type(copy_type) {
348988}

◆ CopyDatabaseStatement() [2/2]

duckdb::CopyDatabaseStatement::CopyDatabaseStatement ( const CopyDatabaseStatement & other)
protected
348991 : SQLStatement(other), from_database(other.from_database), to_database(other.to_database),
348992 copy_type(other.copy_type) {
348993}

Member Function Documentation

◆ Copy()

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

Create a copy of this SelectStatement.

Implements duckdb::SQLStatement.

348995 {
348996 return unique_ptr<CopyDatabaseStatement>(new CopyDatabaseStatement(*this));
348997}

◆ ToString()

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

Implements duckdb::SQLStatement.

348999 {
349000 string result;
349001 result = "COPY FROM DATABASE ";
349002 result += KeywordHelper::WriteOptionallyQuoted(from_database);
349003 result += " TO ";
349004 result += KeywordHelper::WriteOptionallyQuoted(to_database);
349005 result += " (";
349006 switch (copy_type) {
349007 case CopyDatabaseType::COPY_DATA:
349008 result += "DATA";
349009 break;
349010 case CopyDatabaseType::COPY_SCHEMA:
349011 result += "SCHEMA";
349012 break;
349013 default:
349014 throw InternalException("Unsupported CopyDatabaseType");
349015 }
349016 result += ")";
349017 return result;
349018}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034

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