chore: initialize mito2 crate (#1875)

This commit is contained in:
Yingwen
2023-07-04 18:55:00 +09:00
committed by GitHub
parent 2922c25a16
commit 884731a2c8
6 changed files with 53 additions and 0 deletions

4
Cargo.lock generated
View File

@@ -5389,6 +5389,10 @@ dependencies = [
"tokio",
]
[[package]]
name = "mito2"
version = "0.4.0"
[[package]]
name = "moka"
version = "0.9.7"

View File

@@ -33,6 +33,7 @@ members = [
"src/meta-client",
"src/meta-srv",
"src/mito",
"src/mito2",
"src/object-store",
"src/partition",
"src/promql",

7
src/mito2/Cargo.toml Normal file
View File

@@ -0,0 +1,7 @@
[package]
name = "mito2"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]

9
src/mito2/README.md Normal file
View File

@@ -0,0 +1,9 @@
# Mito
Mito is GreptimeDB's default region engine.
## About Mito
The Alfa Romeo [MiTo](https://en.wikipedia.org/wiki/Alfa_Romeo_MiTo) is a front-wheel drive, three-door supermini designed by Centro Stile Alfa Romeo.
> "You can't be a true petrolhead until you've owned an Alfa Romeo."
> <div align="right">-- by Jeremy Clarkson</div>

17
src/mito2/src/engine.rs Normal file
View File

@@ -0,0 +1,17 @@
// Copyright 2023 Greptime Team
//
// 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.
/// Region engine implementation for timeseries data.
#[derive(Clone)]
pub struct MitoEngine {}

15
src/mito2/src/lib.rs Normal file
View File

@@ -0,0 +1,15 @@
// Copyright 2023 Greptime Team
//
// 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.
pub mod engine;