mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 21:47:10 +00:00
cql3: statements/create_type: expose create_type()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user