| 1 |
// Copyright 2018-2019 Mozilla |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use |
| 4 |
// this file except in compliance with the License. You may obtain a copy of the |
| 5 |
// License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 |
// Unless required by applicable law or agreed to in writing, software distributed |
| 7 |
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
| 8 |
// CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 9 |
// specific language governing permissions and limitations under the License. |
| 10 |
|
| 11 |
mod common; |
| 12 |
#[cfg(feature = "lmdb")] |
| 13 |
mod impl_lmdb; |
| 14 |
mod impl_safe; |
| 15 |
mod traits; |
| 16 |
|
| 17 |
pub use common::*; |
| 18 |
pub use traits::*; |
| 19 |
|
| 20 |
#[cfg(feature = "lmdb")] |
| 21 |
pub use impl_lmdb::{ |
| 22 |
ArchMigrateError as LmdbArchMigrateError, ArchMigrateResult as LmdbArchMigrateResult, |
| 23 |
ArchMigrator as LmdbArchMigrator, DatabaseFlagsImpl as LmdbDatabaseFlags, |
| 24 |
DatabaseImpl as LmdbDatabase, EnvironmentBuilderImpl as Lmdb, |
| 25 |
EnvironmentFlagsImpl as LmdbEnvironmentFlags, EnvironmentImpl as LmdbEnvironment, |
| 26 |
ErrorImpl as LmdbError, InfoImpl as LmdbInfo, IterImpl as LmdbIter, |
| 27 |
RoCursorImpl as LmdbRoCursor, RoTransactionImpl as LmdbRoTransaction, |
| 28 |
RwCursorImpl as LmdbRwCursor, RwTransactionImpl as LmdbRwTransaction, StatImpl as LmdbStat, |
| 29 |
WriteFlagsImpl as LmdbWriteFlags, |
| 30 |
}; |
| 31 |
|
| 32 |
pub use impl_safe::{ |
| 33 |
DatabaseFlagsImpl as SafeModeDatabaseFlags, DatabaseImpl as SafeModeDatabase, |
| 34 |
EnvironmentBuilderImpl as SafeMode, EnvironmentFlagsImpl as SafeModeEnvironmentFlags, |
| 35 |
EnvironmentImpl as SafeModeEnvironment, ErrorImpl as SafeModeError, InfoImpl as SafeModeInfo, |
| 36 |
IterImpl as SafeModeIter, RoCursorImpl as SafeModeRoCursor, |
| 37 |
RoTransactionImpl as SafeModeRoTransaction, RwCursorImpl as SafeModeRwCursor, |
| 38 |
RwTransactionImpl as SafeModeRwTransaction, StatImpl as SafeModeStat, |
| 39 |
WriteFlagsImpl as SafeModeWriteFlags, |
| 40 |
}; |