cql3: statements/create_type: expose create_type()

This commit is contained in:
Botond Dénes
2021-08-31 13:23:55 +03:00
parent 6b224b76b9
commit 68f5277e52
2 changed files with 4 additions and 1 deletions

View File

@@ -122,7 +122,7 @@ const sstring& create_type_statement::keyspace() const
return _name.get_keyspace();
}
inline user_type create_type_statement::create_type(database& db) const
user_type create_type_statement::create_type(database& db) const
{
std::vector<bytes> field_names;
std::vector<data_type> field_types;

View File

@@ -73,8 +73,11 @@ public:
virtual std::unique_ptr<prepared_statement> prepare(database& db, cql_stats& stats) override;
static void check_for_duplicate_names(user_type type);
private:
bool type_exists_in(::keyspace& ks) const;
public:
user_type create_type(database& db) const;
};