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/
35 lines
654 B
C++
35 lines
654 B
C++
/*
|
|
* Copyright (C) 2018-present ScyllaDB
|
|
*
|
|
* Modified by ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.0 and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sstring.hh>
|
|
#include "consistency_level_type.hh"
|
|
|
|
#include "seastarx.hh"
|
|
|
|
class schema;
|
|
|
|
namespace db {
|
|
|
|
void validate_for_read(consistency_level cl);
|
|
|
|
void validate_for_write(consistency_level cl);
|
|
|
|
bool is_serial_consistency(consistency_level cl);
|
|
|
|
void validate_for_cas(consistency_level cl);
|
|
|
|
void validate_for_cas_learn(consistency_level cl, const sstring& keyspace);
|
|
|
|
void validate_counter_for_write(const schema& s, consistency_level cl);
|
|
|
|
}
|