-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9653c0
commit 67dba6c
Showing
68 changed files
with
4,828 additions
and
3,486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#pragma once | ||
|
||
#include "bound_ddl.h" | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
class BoundAddProperty : public BoundDDL { | ||
public: | ||
explicit BoundAddProperty(table_id_t tableID, string propertyName, DataType dataType, | ||
shared_ptr<Expression> defaultValue, string tableName) | ||
: BoundDDL{StatementType::ADD_PROPERTY, std::move(tableName)}, tableID{tableID}, | ||
propertyName{std::move(propertyName)}, dataType{std::move(dataType)}, defaultValue{ | ||
defaultValue} {} | ||
|
||
inline table_id_t getTableID() const { return tableID; } | ||
|
||
inline string getPropertyName() const { return propertyName; } | ||
|
||
inline DataType getDataType() const { return dataType; } | ||
|
||
inline shared_ptr<Expression> getDefaultValue() const { return defaultValue; } | ||
|
||
private: | ||
table_id_t tableID; | ||
string propertyName; | ||
DataType dataType; | ||
shared_ptr<Expression> defaultValue; | ||
}; | ||
|
||
} // namespace binder | ||
} // namespace kuzu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#pragma once | ||
|
||
#include "common/types/types.h" | ||
#include "parser/ddl/ddl.h" | ||
#include "parser/expression/parsed_expression.h" | ||
|
||
namespace kuzu { | ||
namespace parser { | ||
|
||
using namespace std; | ||
|
||
class AddProperty : public DDL { | ||
public: | ||
explicit AddProperty(string tableName, string propertyName, string dataType, | ||
unique_ptr<ParsedExpression> defaultValue) | ||
: DDL{StatementType::ADD_PROPERTY, std::move(tableName)}, propertyName{std::move( | ||
propertyName)}, | ||
dataType{std::move(dataType)}, defaultValue{std::move(defaultValue)} {} | ||
|
||
inline string getPropertyName() const { return propertyName; } | ||
|
||
inline string getDataType() const { return dataType; } | ||
|
||
inline ParsedExpression* getDefaultValue() const { return defaultValue.get(); } | ||
|
||
private: | ||
string propertyName; | ||
string dataType; | ||
unique_ptr<ParsedExpression> defaultValue; | ||
}; | ||
|
||
} // namespace parser | ||
} // namespace kuzu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.