|
|
CatalogType | entry_catalog_type |
|
Value | comment_value |
|
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 |
| | AlterInfo (AlterType type) |
◆ SetCommentInfo() [1/2]
| duckdb::SetCommentInfo::SetCommentInfo |
( |
CatalogType | entry_catalog_type, |
|
|
string | entry_catalog, |
|
|
string | entry_schema, |
|
|
string | entry_name, |
|
|
Value | new_comment_value_p, |
|
|
OnEntryNotFound | if_not_found ) |
338274 : AlterInfo(AlterType::SET_COMMENT, std::move(entry_catalog_p), std::move(entry_schema_p), std::move(entry_name_p),
338276 entry_catalog_type(entry_catalog_type), comment_value(std::move(new_comment_value_p)) {
338277}
OnEntryNotFound if_not_found
if exists
Definition duckdb.hpp:28310
◆ SetCommentInfo() [2/2]
| duckdb::SetCommentInfo::SetCommentInfo |
( |
| ) |
|
|
explicit |
338302 : AlterInfo(AlterType::SET_COMMENT) {
338303}
◆ GetCatalogType()
| CatalogType duckdb::SetCommentInfo::GetCatalogType |
( |
| ) |
const |
|
overridevirtual |
◆ Copy()
| unique_ptr< AlterInfo > duckdb::SetCommentInfo::Copy |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338283 {
338284 return make_uniq_base<AlterInfo, SetCommentInfo>(entry_catalog_type,
catalog,
schema,
name, comment_value,
338286}
string catalog
Catalog name to alter.
Definition duckdb.hpp:28312
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314
◆ ToString()
| string duckdb::SetCommentInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338288 {
338289 string result = "";
338290
338291 result += "COMMENT ON ";
338292 result += ParseInfo::TypeToString(entry_catalog_type);
338293 result += " ";
338295 result += " IS ";
338296 result += comment_value.ToSQLString();
338297
338298 result += ";";
338299 return result;
338300}
◆ Serialize()
| void duckdb::SetCommentInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterInfo.
418517 {
418518 AlterInfo::Serialize(serializer);
418519 serializer.WriteProperty<CatalogType>(300, "entry_catalog_type", entry_catalog_type);
418520 serializer.WriteProperty<Value>(301, "comment_value", comment_value);
418521}
◆ Deserialize()
418523 {
418524 auto result = duckdb::unique_ptr<SetCommentInfo>(new SetCommentInfo());
418525 deserializer.ReadProperty<CatalogType>(300, "entry_catalog_type", result->entry_catalog_type);
418526 deserializer.ReadProperty<Value>(301, "comment_value", result->comment_value);
418527 return std::move(result);
418528}
The documentation for this struct was generated from the following files: