ckb_rocksdb/ops/
mod.rs

1// Copyright 2019 Tyler Neely
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
16// PIGMED operations (Put, Iterate, Get, Merge, Delete)
17mod columnfamily;
18mod delete;
19mod get;
20mod get_pinned;
21mod merge;
22mod put;
23mod writebatch;
24
25mod open;
26
27mod checkpoint;
28mod compact;
29mod flush;
30mod ingest_external_file;
31mod iter;
32mod multi_get;
33mod property;
34mod setoptions;
35mod transaction;
36
37pub use self::delete::{Delete, DeleteCF};
38pub use self::get::{Get, GetCF};
39pub use self::get_pinned::{GetPinned, GetPinnedCF};
40pub use self::ingest_external_file::{IngestExternalFile, IngestExternalFileCF};
41pub use self::merge::{Merge, MergeCF};
42pub use self::multi_get::{convert_values, BatchedMultiGetCF, CFAndKey, MultiGet, MultiGetCF};
43pub use self::put::{Put, PutCF};
44pub use self::writebatch::WriteOps;
45
46pub use self::open::{Open, OpenCF};
47
48/// Marker trait for operations that leave DB
49/// state unchanged
50pub trait Read {}
51
52/// Marker trait for operations that mutate
53/// DB state
54pub trait Write {}
55
56pub use self::checkpoint::CreateCheckpointObject;
57pub use self::columnfamily::CreateCF;
58pub use self::columnfamily::DropCF;
59pub use self::columnfamily::GetColumnFamilys;
60pub use self::compact::{CompactRange, CompactRangeCF};
61pub use self::flush::Flush;
62pub use self::iter::{Iterate, IterateCF};
63pub use self::property::{GetProperty, GetPropertyCF};
64pub use self::setoptions::SetOptions;
65pub use self::transaction::TransactionBegin;