common_meta/
lib.rs

1// Copyright 2023 Greptime Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![feature(assert_matches)]
16#![feature(btree_extract_if)]
17#![feature(let_chains)]
18
19pub mod cache;
20pub mod cache_invalidator;
21pub mod cluster;
22pub mod datanode;
23pub mod ddl;
24pub mod ddl_manager;
25pub mod distributed_time_constants;
26pub mod error;
27pub mod flow_name;
28pub mod heartbeat;
29pub mod instruction;
30pub mod key;
31pub mod kv_backend;
32pub mod leadership_notifier;
33pub mod lock_key;
34pub mod metrics;
35pub mod node_expiry_listener;
36pub mod node_manager;
37pub mod peer;
38pub mod poison_key;
39pub mod range_stream;
40pub mod region_keeper;
41pub mod region_registry;
42pub mod rpc;
43pub mod sequence;
44pub mod state_store;
45#[cfg(any(test, feature = "testing"))]
46pub mod test_util;
47pub mod util;
48pub mod wal_options_allocator;
49
50// The id of the datanode.
51pub type DatanodeId = u64;
52// The id of the flownode.
53pub type FlownodeId = u64;
54
55/// Schema options.
56pub type SchemaOptions = key::schema_name::SchemaNameValue;
57
58pub use instruction::RegionIdent;