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 procedure_executor;
41pub mod range_stream;
42pub mod reconciliation;
43pub mod region_keeper;
44pub mod region_registry;
45pub mod rpc;
46pub mod sequence;
47pub mod snapshot;
48pub mod state_store;
49pub mod stats;
50#[cfg(any(test, feature = "testing"))]
51pub mod test_util;
52pub mod util;
53pub mod wal_options_allocator;
54
55// The id of the datanode.
56pub type DatanodeId = u64;
57// The id of the flownode.
58pub type FlownodeId = u64;
59
60/// Schema options.
61pub type SchemaOptions = key::schema_name::SchemaNameValue;
62
63pub use instruction::RegionIdent;