mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 02:50:33 +00:00
Instead of lengthy blurbs, switch to single-line, machine-readable standardized (https://spdx.dev) license identifiers. The Linux kernel switched long ago, so there is strong precedent. Three cases are handled: AGPL-only, Apache-only, and dual licensed. For the latter case, I chose (AGPL-3.0-or-later and Apache-2.0), reasoning that our changes are extensive enough to apply our license. The changes we applied mechanically with a script, except to licenses/README.md. Closes #9937
51 lines
908 B
C++
51 lines
908 B
C++
/*
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*
|
|
* Modified by ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/shared_ptr.hh>
|
|
#include <seastar/core/sstring.hh>
|
|
#include "seastarx.hh"
|
|
#include "bytes.hh"
|
|
|
|
#include <optional>
|
|
|
|
namespace cql3 {
|
|
|
|
class column_identifier;
|
|
|
|
class ut_name final {
|
|
std::optional<sstring> _ks_name;
|
|
::shared_ptr<column_identifier> _ut_name;
|
|
public:
|
|
ut_name(shared_ptr<column_identifier> ks_name, ::shared_ptr<column_identifier> ut_name);
|
|
|
|
bool has_keyspace() const;
|
|
|
|
void set_keyspace(sstring keyspace);
|
|
|
|
const sstring& get_keyspace() const;
|
|
|
|
bytes get_user_type_name() const;
|
|
|
|
sstring get_string_type_name() const;
|
|
|
|
sstring to_string() const;
|
|
|
|
friend std::ostream& operator<<(std::ostream& os, const ut_name& n) {
|
|
return os << n.to_string();
|
|
}
|
|
};
|
|
|
|
}
|