|
|
string | from_database |
|
string | to_database |
|
CopyDatabaseType | copy_type |
|
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 constexpr const StatementType | TYPE = StatementType::COPY_DATABASE_STATEMENT |
|
static constexpr const StatementType | TYPE = StatementType::INVALID_STATEMENT |
|
| | CopyDatabaseStatement (const CopyDatabaseStatement &other) |
|
| SQLStatement (const SQLStatement &other)=default |
◆ 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}
◆ Copy()
| unique_ptr< SQLStatement > duckdb::CopyDatabaseStatement::Copy |
( |
| ) |
const |
|
overridevirtual |
◆ ToString()
| string duckdb::CopyDatabaseStatement::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::SQLStatement.
348999 {
349000 string result;
349001 result = "COPY FROM DATABASE ";
349003 result += " TO ";
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: