-
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.
Merge pull request #1169 from kuzudb/drop-col
add support for deleting property
- Loading branch information
Showing
66 changed files
with
3,462 additions
and
3,060 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
#include "bound_statement_result.h" | ||
#include "common/statement_type.h" | ||
|
||
|
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
File renamed without changes.
File renamed without changes.
11 changes: 4 additions & 7 deletions
11
src/include/binder/bind/bound_create_table.h → src/include/binder/ddl/bound_create_table.h
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,21 @@ | ||
#pragma once | ||
|
||
#include "binder/bound_statement.h" | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
class BoundDDL : public BoundStatement { | ||
public: | ||
explicit BoundDDL(StatementType statementType, string tableName) | ||
: BoundStatement{statementType, BoundStatementResult::createSingleStringColumnResult()}, | ||
tableName{std::move(tableName)} {} | ||
|
||
inline string getTableName() const { return tableName; } | ||
|
||
private: | ||
string tableName; | ||
}; | ||
|
||
} // 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "bound_ddl.h" | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
class BoundDropProperty : public BoundDDL { | ||
public: | ||
explicit BoundDropProperty(table_id_t tableID, property_id_t propertyID, string tableName) | ||
: BoundDDL{StatementType::DROP_PROPERTY, std::move(tableName)}, tableID{tableID}, | ||
propertyID{propertyID} {} | ||
|
||
inline table_id_t getTableID() const { return tableID; } | ||
|
||
inline property_id_t getPropertyID() const { return propertyID; } | ||
|
||
private: | ||
table_id_t tableID; | ||
property_id_t propertyID; | ||
}; | ||
|
||
} // 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include "bound_ddl.h" | ||
|
||
namespace kuzu { | ||
namespace binder { | ||
|
||
class BoundDropTable : public BoundDDL { | ||
public: | ||
explicit BoundDropTable(table_id_t tableID, string tableName) | ||
: BoundDDL{StatementType::DROP_TABLE, std::move(tableName)}, tableID{tableID} {} | ||
|
||
inline table_id_t getTableID() const { return tableID; } | ||
|
||
private: | ||
table_id_t tableID; | ||
}; | ||
|
||
} // 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
Oops, something went wrong.