Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
27 lines
496 B
C++
27 lines
496 B
C++
/*
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <fmt/core.h>
|
|
|
|
namespace db {
|
|
|
|
enum class operation_type : uint8_t {
|
|
read = 0,
|
|
write = 1
|
|
};
|
|
|
|
}
|
|
|
|
template <> struct fmt::formatter<db::operation_type> {
|
|
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
|
|
auto format(db::operation_type, fmt::format_context& ctx) const -> decltype(ctx.out());
|
|
};
|