|
|
CatalogType | catalog_entry_type |
| | The resolved Catalog Type.
|
|
string | column_name |
| | name of the column to comment on
|
|
Value | comment_value |
| | The comment, can be NULL or a string.
|
|
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::COMMENT_ON_COLUMN_INFO |
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::ALTER_INFO |
◆ SetColumnCommentInfo() [1/2]
| duckdb::SetColumnCommentInfo::SetColumnCommentInfo |
( |
| ) |
|
339024 : AlterInfo(AlterType::SET_COLUMN_COMMENT, INVALID_CATALOG, INVALID_SCHEMA, "", OnEntryNotFound::THROW_EXCEPTION),
339026}
◆ SetColumnCommentInfo() [2/2]
| duckdb::SetColumnCommentInfo::SetColumnCommentInfo |
( |
string | catalog, |
|
|
string | schema, |
|
|
string | name, |
|
|
string | column_name, |
|
|
Value | comment_value, |
|
|
OnEntryNotFound | if_not_found ) |
339033}
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
◆ TryResolveCatalogEntry()
339053 {
339054 EntryLookupInfo lookup_info(CatalogType::TABLE_ENTRY,
name);
339056
339057 if (entry) {
339059 return entry;
339060 }
339061
339062 return nullptr;
339063}
◆ Copy()
| unique_ptr< AlterInfo > duckdb::SetColumnCommentInfo::Copy |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
339035 {
339037 result->type = type;
339038 return std::move(result);
339039}
◆ GetCatalogType()
| CatalogType duckdb::SetColumnCommentInfo::GetCatalogType |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
339067 {
339069 throw InternalException("Attempted to access unresolved ");
339070 }
339072}
◆ ToString()
| string duckdb::SetColumnCommentInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
339041 {
339042 string result = "";
339043
339045 result += "COMMENT ON COLUMN ";
339047 result += " IS ";
339049 result += ";";
339050 return result;
339051}
◆ Serialize()
| void duckdb::SetColumnCommentInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterInfo.
418502 {
418503 AlterInfo::Serialize(serializer);
418504 serializer.WriteProperty<CatalogType>(300,
"catalog_entry_type",
catalog_entry_type);
418505 serializer.WriteProperty<Value>(301,
"comment_value",
comment_value);
418506 serializer.WritePropertyWithDefault<
string>(302,
"column_name",
column_name);
418507}
◆ Deserialize()
418509 {
418510 auto result = duckdb::unique_ptr<SetColumnCommentInfo>(new SetColumnCommentInfo());
418511 deserializer.ReadProperty<CatalogType>(300, "catalog_entry_type", result->catalog_entry_type);
418512 deserializer.ReadProperty<Value>(301, "comment_value", result->comment_value);
418513 deserializer.ReadPropertyWithDefault<string>(302, "column_name", result->column_name);
418514 return std::move(result);
418515}
The documentation for this struct was generated from the following file: