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