|
|
unique_ptr< Constraint > | constraint |
| | The constraint to add.
|
|
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) |
◆ AddConstraintInfo() [1/2]
338798 : AlterTableInfo(AlterTableType::ADD_CONSTRAINT, std::move(data)),
constraint(std::move(constraint_p)) {
338799}
unique_ptr< Constraint > constraint
The constraint to add.
Definition duckdb.hpp:28869
◆ ~AddConstraintInfo()
| duckdb::AddConstraintInfo::~AddConstraintInfo |
( |
| ) |
|
|
override |
◆ AddConstraintInfo() [2/2]
| duckdb::AddConstraintInfo::AddConstraintInfo |
( |
| ) |
|
|
private |
338794 : AlterTableInfo(AlterTableType::ADD_CONSTRAINT) {
338795}
◆ Copy()
Implements duckdb::AlterInfo.
338804 {
338805 return make_uniq_base<AlterInfo, AddConstraintInfo>(GetAlterEntryData(),
constraint->Copy());
338806}
◆ ToString()
| string duckdb::AddConstraintInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338808 {
338809 string result = "ALTER TABLE ";
338811 result += " ADD ";
338813 result += ";";
338814 return result;
338815}
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
◆ Serialize()
| void duckdb::AddConstraintInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::ParseInfo.
418172 {
418173 AlterTableInfo::Serialize(serializer);
418174 serializer.WritePropertyWithDefault<unique_ptr<Constraint>>(400,
"constraint",
constraint);
418175}
◆ Deserialize()
418177 {
418178 auto result = duckdb::unique_ptr<AddConstraintInfo>(new AddConstraintInfo());
418179 deserializer.ReadPropertyWithDefault<unique_ptr<Constraint>>(400, "constraint", result->constraint);
418180 return std::move(result);
418181}
The documentation for this struct was generated from the following files: