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#![feature(duration_millis_float)]
19
20pub mod cache;
21pub mod cache_invalidator;
22pub mod cluster;
23pub mod datanode;
24pub mod ddl;
25pub mod ddl_manager;
26pub mod distributed_time_constants;
27pub mod error;
28pub mod flow_name;
29pub mod heartbeat;
30pub mod instruction;
31pub mod key;
32pub mod kv_backend;
33pub mod leadership_notifier;
34pub mod lock_key;
35pub mod metrics;
36pub mod node_expiry_listener;
37pub mod node_manager;
38pub mod peer;
39pub mod poison_key;
40pub mod range_stream;
41pub mod region_keeper;
42pub mod region_registry;
43pub mod rpc;
44pub mod sequence;
45pub mod snapshot;
46pub mod state_store;
47#[cfg(any(test, feature = "testing"))]
48pub mod test_util;
49pub mod util;
50pub mod wal_options_allocator;
51
52// The id of the datanode.
53pub type DatanodeId = u64;
54// The id of the flownode.
55pub type FlownodeId = u64;
56
57/// Schema options.
58pub type SchemaOptions = key::schema_name::SchemaNameValue;
59
60pub use instruction::RegionIdent;