risingwave_meta/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright 2024 RisingWave Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![allow(clippy::derive_partial_eq_without_eq)]
#![feature(trait_alias)]
#![feature(type_alias_impl_trait)]
#![feature(map_try_insert)]
#![feature(extract_if)]
#![feature(hash_extract_if)]
#![feature(btree_extract_if)]
#![feature(let_chains)]
#![feature(error_generic_member_access)]
#![feature(assert_matches)]
#![feature(try_blocks)]
#![cfg_attr(coverage, feature(coverage_attribute))]
#![feature(custom_test_frameworks)]
#![test_runner(risingwave_test_runner::test_runner::run_failpont_tests)]
#![feature(impl_trait_in_assoc_type)]
#![feature(const_option)]
#![feature(anonymous_lifetime_in_impl_trait)]
#![feature(duration_millis_float)]
#![feature(iterator_try_reduce)]

pub mod backup_restore;
pub mod barrier;
pub mod controller;
#[cfg(not(madsim))] // no need in simulation test
pub mod dashboard;
pub mod error;
pub mod hummock;
pub mod manager;
pub mod model;
pub mod rpc;
pub mod serving;
pub mod storage;
pub mod stream;
pub mod telemetry;

pub use error::{MetaError, MetaResult};
use risingwave_common::config::MetaStoreConfig;
pub use rpc::{ElectionClient, ElectionMember};

use crate::manager::MetaOpts;

#[derive(Debug)]
pub enum MetaStoreBackend {
    Mem,
    Sql {
        endpoint: String,
        config: MetaStoreConfig,
    },
}