|
15 | 15 | #include <mutex>
|
16 | 16 |
|
17 | 17 | #include "catalog/catalog_defaults.h"
|
| 18 | +#include "catalog/column_catalog.h" |
18 | 19 | #include "function/functions.h"
|
19 | 20 |
|
20 | 21 | namespace peloton {
|
@@ -176,6 +177,30 @@ class Catalog {
|
176 | 177 | std::shared_ptr<TableCatalogObject> GetTableObject(
|
177 | 178 | oid_t database_oid, oid_t table_oid,
|
178 | 179 | concurrency::TransactionContext *txn);
|
| 180 | + |
| 181 | + //===--------------------------------------------------------------------===// |
| 182 | + // ALTER TABLE |
| 183 | + //===--------------------------------------------------------------------===// |
| 184 | + ResultType AlterTable(oid_t database_oid, oid_t table_oid, |
| 185 | + std::unique_ptr<catalog::Schema> new_schema, |
| 186 | + concurrency::TransactionContext *txn); |
| 187 | + |
| 188 | + ResultType AddColumn(const std::string &database_name, |
| 189 | + const std::string &table_name, |
| 190 | + const std::vector<Column> &columns, |
| 191 | + concurrency::TransactionContext *txn); |
| 192 | + |
| 193 | + ResultType DropColumn(const std::string &database_name, |
| 194 | + const std::string &table_name, |
| 195 | + const std::vector<Column> &columns, |
| 196 | + concurrency::TransactionContext *txn); |
| 197 | + |
| 198 | + ResultType ChangeColumnName(const std::string &database_name, |
| 199 | + const std::string &table_name, |
| 200 | + const std::vector<Column> &old_columns, |
| 201 | + const std::vector<std::string> &names, |
| 202 | + concurrency::TransactionContext *txn); |
| 203 | + |
179 | 204 | //===--------------------------------------------------------------------===//
|
180 | 205 | // DEPRECATED FUNCTIONS
|
181 | 206 | //===--------------------------------------------------------------------===//
|
|
0 commit comments