|
|
string | new_view_name |
| | Relation new name.
|
|
AlterViewType | alter_view_type |
|
AlterType | type |
|
OnEntryNotFound | if_not_found |
| | if exists
|
|
string | catalog |
| | Catalog name to alter.
|
|
string | schema |
| | Schema name to alter.
|
|
string | name |
| | Entry name to alter.
|
|
bool | allow_internal |
| | Allow altering internal entries.
|
|
unique_ptr< LogicalDependencyList > | new_dependencies |
| | New dependencies for the altered entry (set during binding).
|
|
ParseInfoType | info_type |
|
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::ALTER_INFO |
| | AlterViewInfo (AlterViewType type) |
| | AlterInfo (AlterType type) |
◆ RenameViewInfo() [1/2]
| duckdb::RenameViewInfo::RenameViewInfo |
( |
AlterEntryData | data, |
|
|
string | new_name ) |
338769 : AlterViewInfo(AlterViewType::RENAME_VIEW, std::move(data)),
new_view_name(std::move(new_name_p)) {
338770}
string new_view_name
Relation new name.
Definition duckdb.hpp:28849
◆ ~RenameViewInfo()
| duckdb::RenameViewInfo::~RenameViewInfo |
( |
| ) |
|
|
override |
◆ RenameViewInfo() [2/2]
| duckdb::RenameViewInfo::RenameViewInfo |
( |
| ) |
|
|
private |
338766 : AlterViewInfo(AlterViewType::RENAME_VIEW) {
338767}
◆ Copy()
◆ ToString()
| string duckdb::RenameViewInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338778 {
338779 string result = "";
338780 result += "ALTER VIEW ";
338782 result += " IF EXISTS";
338783 }
338785 result += " RENAME TO ";
338787 result += ";";
338788 return result;
338789}
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
string catalog
Catalog name to alter.
Definition duckdb.hpp:28312
OnEntryNotFound if_not_found
if exists
Definition duckdb.hpp:28310
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314
◆ Serialize()
| void duckdb::RenameViewInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterViewInfo.
418480 {
418481 AlterViewInfo::Serialize(serializer);
418482 serializer.WritePropertyWithDefault<
string>(400,
"new_view_name",
new_view_name);
418483}
◆ Deserialize()
418485 {
418486 auto result = duckdb::unique_ptr<RenameViewInfo>(new RenameViewInfo());
418487 deserializer.ReadPropertyWithDefault<string>(400, "new_view_name", result->new_view_name);
418488 return std::move(result);
418489}
The documentation for this struct was generated from the following files: