aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'log_db/src/lib.rs')
-rw-r--r--log_db/src/lib.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/log_db/src/lib.rs b/log_db/src/lib.rs
index 9f2cac9..f7a7e47 100644
--- a/log_db/src/lib.rs
+++ b/log_db/src/lib.rs
@@ -20,10 +20,11 @@ mod memtable_primary;
mod memtable_secondary;
mod record;
-pub use common::*;
+pub use common::{DBError, DBResult, Type, Value};
pub use config::{ReadConsistency, WriteDurability};
pub use record::Recordable;
+use common::*;
use config::*;
use engine::*;
use log_reader_forward::*;
@@ -198,8 +199,8 @@ mod tests {
impl Recordable for TestInst1 {
type Field = Field;
- fn schema() -> Vec<(Field, ValueType)> {
- vec![(Field::Id, ValueType::int())]
+ fn schema() -> Vec<(Field, Type)> {
+ vec![(Field::Id, Type::int())]
}
fn primary_key() -> Self::Field {
Field::Id
@@ -252,11 +253,8 @@ mod tests {
}
}
- fn schema() -> Vec<(Field, ValueType)> {
- vec![
- (Field::Id, ValueType::int()),
- (Field::Name, ValueType::string()),
- ]
+ fn schema() -> Vec<(Field, Type)> {
+ vec![(Field::Id, Type::int()), (Field::Name, Type::string())]
}
}