common_datasource/
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(type_alias_impl_trait)]
17
18pub mod buffered_writer;
19pub mod compression;
20pub mod error;
21pub mod file_format;
22pub mod lister;
23pub mod object_store;
24pub mod share_buffer;
25#[cfg(test)]
26pub mod test_util;
27#[cfg(test)]
28pub mod tests;
29pub mod util;
30
31use common_base::readable_size::ReadableSize;
32
33/// Default write buffer size, it should be greater than the default minimum upload part of S3 (5mb).
34pub const DEFAULT_WRITE_BUFFER_SIZE: ReadableSize = ReadableSize::mb(8);