|
|
string | column_name |
| | The column name to alter.
|
|
AlterTableType | alter_table_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 |
| | AlterTableInfo (AlterTableType type) |
| | AlterInfo (AlterType type) |
◆ SetNotNullInfo() [1/2]
| duckdb::SetNotNullInfo::SetNotNullInfo |
( |
AlterEntryData | data, |
|
|
string | column_name ) |
338667 : AlterTableInfo(AlterTableType::SET_NOT_NULL, std::move(data)),
column_name(std::move(column_name_p)) {
338668}
string column_name
The column name to alter.
Definition duckdb.hpp:28789
◆ ~SetNotNullInfo()
| duckdb::SetNotNullInfo::~SetNotNullInfo |
( |
| ) |
|
|
override |
◆ SetNotNullInfo() [2/2]
| duckdb::SetNotNullInfo::SetNotNullInfo |
( |
| ) |
|
|
private |
338663 : AlterTableInfo(AlterTableType::SET_NOT_NULL) {
338664}
◆ Copy()
◆ ToString()
| string duckdb::SetNotNullInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338676 {
338677 string result = "";
338678 result += "ALTER TABLE ";
338680 result += " IF EXISTS";
338681 }
338683 result += " ALTER COLUMN ";
338685 result += " SET NOT NULL";
338686 result += ";";
338687 return result;
338688}
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::SetNotNullInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418543 {
418544 AlterTableInfo::Serialize(serializer);
418545 serializer.WritePropertyWithDefault<
string>(400,
"column_name",
column_name);
418546}
◆ Deserialize()
418548 {
418549 auto result = duckdb::unique_ptr<SetNotNullInfo>(new SetNotNullInfo());
418550 deserializer.ReadPropertyWithDefault<string>(400, "column_name", result->column_name);
418551 return std::move(result);
418552}
The documentation for this struct was generated from the following files: