|
|
string | name |
|
case_insensitive_map_t< unique_ptr< ParsedExpression > > | named_values |
|
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::EXECUTE_STATEMENT |
|
static constexpr const StatementType | TYPE = StatementType::INVALID_STATEMENT |
|
| | ExecuteStatement (const ExecuteStatement &other) |
|
| SQLStatement (const SQLStatement &other)=default |
◆ ExecuteStatement() [1/2]
| duckdb::ExecuteStatement::ExecuteStatement |
( |
| ) |
|
349195 : SQLStatement(StatementType::EXECUTE_STATEMENT) {
349196}
◆ ExecuteStatement() [2/2]
| duckdb::ExecuteStatement::ExecuteStatement |
( |
const ExecuteStatement & | other | ) |
|
|
protected |
349198 : SQLStatement(other), name(other.name) {
349199 for (const auto &item : other.named_values) {
349200 named_values.emplace(std::make_pair(item.first, item.second->Copy()));
349201 }
349202}
◆ Copy()
| unique_ptr< SQLStatement > duckdb::ExecuteStatement::Copy |
( |
| ) |
const |
|
overridevirtual |
◆ ToString()
| string duckdb::ExecuteStatement::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::SQLStatement.
349208 {
349209 string result = "";
349210 result += "EXECUTE";
349211 result += " " + name;
349212 if (!named_values.empty()) {
349213 vector<string> stringified;
349214 for (auto &val : named_values) {
349215 stringified.push_back(
StringUtil::Format(
"\"%s\" := %s", val.first, val.second->ToString()));
349216 }
349218 }
349219 result += ";";
349220 return result;
349221}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497
The documentation for this class was generated from the following file: