19 std::unique_ptr<parser::ParsedExpression> defaultExpr)
20 :
Property{std::move(name), std::move(dataType), std::move(defaultExpr),
21 common::INVALID_PROPERTY_ID, common::INVALID_COLUMN_ID, common::INVALID_TABLE_ID} {}
25 : name{std::move(name)}, defaultExpr{std::move(defaultExpr)}, dataType{std::move(dataType)},
26 propertyID{propertyID}, columnID{columnID}, tableID{tableID} {}
29 std::string
getName()
const {
return name; }
38 void rename(std::string newName) { name = std::move(newName); }
43 static std::string
toCypher(
const std::vector<Property>& properties);
47 : name{other.name}, defaultExpr{other.defaultExpr->copy()}, dataType{other.dataType.copy()},
48 propertyID{other.propertyID}, columnID{other.columnID}, tableID{other.tableID} {}
52 std::unique_ptr<parser::ParsedExpression> defaultExpr;
static Property deserialize(common::Deserializer &deserializer)
std::string getName() const
Definition property.h:29
const common::LogicalType & getDataType() const
Definition property.h:32
common::table_id_t getTableID() const
Definition property.h:35
common::column_id_t getColumnID() const
Definition property.h:34
Property(std::string name, common::LogicalType dataType, std::unique_ptr< parser::ParsedExpression > defaultExpr, common::property_id_t propertyID, common::column_id_t columnID, common::table_id_t tableID)
Definition property.h:22
Property(std::string name, common::LogicalType dataType, std::unique_ptr< parser::ParsedExpression > defaultExpr)
Definition property.h:18
const parser::ParsedExpression * getDefaultExpr() const
Definition property.h:36
void serialize(common::Serializer &serializer) const
void rename(std::string newName)
Definition property.h:38
static std::string toCypher(const std::vector< Property > &properties)
EXPLICIT_COPY_DEFAULT_MOVE(Property)
common::property_id_t getPropertyID() const
Definition property.h:33
void setColumnID(common::column_id_t columnID)
Definition property.h:31
Definition deserializer.h:15
Definition serializer.h:15
Definition parsed_expression.h:29
property_id_t column_id_t
Definition types.h:36
uint32_t property_id_t
Definition types.h:34
uint64_t table_id_t
Definition internal_id_t.h:14
Definition alter_type.h:5