Remove usage of global imports in db module. Fixes #251. r=nalexander (#253)

This commit is contained in:
Jordan Santell 2017-02-10 09:09:13 -08:00 committed by GitHub
parent 49f91b05b0
commit 1deed24f42
3 changed files with 3 additions and 7 deletions

View file

@ -12,9 +12,9 @@
use ::{to_namespaced_keyword};
use edn;
use errors::{ErrorKind, Result};
use edn::types::Value;
use entids;
use errors::*;
use db::TypedSQLValue;
use mentat_tx::entities::Entity;
use mentat_tx_parser;

View file

@ -23,10 +23,10 @@ use ::{repeat_values, to_namespaced_keyword};
use bootstrap;
use edn::types::Value;
use entids;
use errors::*;
use mentat_tx::entities as entmod;
use mentat_tx::entities::{Entity, OpType};
use types::*;
use errors::{ErrorKind, Result, ResultExt};
use types::{Attribute, DB, Entid, IdentMap, Partition, PartitionMap, Schema, TypedValue, ValueType};
pub fn new_connection<T>(uri: T) -> rusqlite::Result<rusqlite::Connection> where T: AsRef<Path> {
let conn = match uri.as_ref().to_string_lossy().len() {

View file

@ -26,10 +26,6 @@ extern crate mentat_tx_parser;
use itertools::Itertools;
use std::iter::repeat;
pub use errors::*;
pub use schema::*;
pub use types::*;
pub mod db;
mod bootstrap;
mod debug;