Pre: Move ValueTypeSet into core-traits

This commit is contained in:
Grisha Kruglov 2018-08-08 11:44:16 -07:00 committed by Grisha Kruglov
parent 2ae8594d20
commit 9fd198f96a
19 changed files with 27 additions and 31 deletions

View file

@ -73,6 +73,11 @@ use edn::entities::{
};
pub mod values;
mod value_type_set;
pub use value_type_set::{
ValueTypeSet,
};
/// Represents one entid in the entid space.
///

View file

@ -8,11 +8,11 @@
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
use ::enum_set::{
use enum_set::{
EnumSet,
};
use core_traits::{
use ::{
ValueType,
};

View file

@ -61,7 +61,6 @@ pub use cache::{
/// Core types defining a Mentat knowledge base.
mod types;
mod tx_report;
mod value_type_set;
mod sql_types;
pub use tx_report::{
@ -72,10 +71,6 @@ pub use types::{
ValueTypeTag,
};
pub use value_type_set::{
ValueTypeSet,
};
pub use sql_types::{
SQLTypeAffinity,
SQLValueType,

View file

@ -14,16 +14,13 @@ use std::collections::{
use core_traits::{
ValueType,
ValueTypeSet,
};
use types::{
ValueTypeTag,
};
use value_type_set::{
ValueTypeSet,
};
/// Type safe representation of the possible return values from SQLite's `typeof`
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub enum SQLTypeAffinity {

View file

@ -10,6 +10,7 @@
use core_traits::{
ValueType,
ValueTypeSet,
TypedValue,
};
@ -17,7 +18,6 @@ use mentat_core::{
HasSchema,
Schema,
SQLValueType,
ValueTypeSet,
};
use edn::query::{

View file

@ -10,12 +10,12 @@
use core_traits::{
ValueType,
ValueTypeSet,
TypedValue,
};
use mentat_core::{
Schema,
ValueTypeSet,
};
use edn::query::{

View file

@ -29,6 +29,7 @@ use core_traits::{
Entid,
KnownEntid,
ValueType,
ValueTypeSet,
TypedValue,
};
@ -37,7 +38,6 @@ use mentat_core::{
Cloned,
HasSchema,
Schema,
ValueTypeSet,
};
use mentat_core::counter::RcCounter;

View file

@ -93,12 +93,12 @@ mod testing {
use core_traits::{
TypedValue,
ValueType,
ValueTypeSet,
};
use mentat_core::{
Attribute,
Schema,
ValueTypeSet,
};
use edn::query::{

View file

@ -14,7 +14,7 @@ use std::collections::{
BTreeSet,
};
use mentat_core::{
use core_traits::{
ValueTypeSet,
};

View file

@ -12,12 +12,12 @@ use core_traits::{
Entid,
ValueType,
TypedValue,
ValueTypeSet,
};
use mentat_core::{
Cloned,
HasSchema,
ValueTypeSet,
};
use edn::query::{
@ -660,10 +660,12 @@ mod testing {
use std::collections::BTreeSet;
use mentat_core::attribute::Unique;
use core_traits::{
ValueTypeSet,
};
use mentat_core::{
Attribute,
Schema,
ValueTypeSet,
};
use edn::query::{

View file

@ -10,11 +10,11 @@
use core_traits::{
ValueType,
ValueTypeSet,
};
use mentat_core::{
Schema,
ValueTypeSet,
};
use edn::query::{

View file

@ -12,9 +12,6 @@ use std; // To refer to std::result::Result.
use core_traits::{
ValueType,
};
use mentat_core::{
ValueTypeSet,
};

View file

@ -18,11 +18,11 @@ use core_traits::{
Entid,
TypedValue,
ValueType,
ValueTypeSet,
};
use mentat_core::{
ValueRc,
ValueTypeSet,
};
use edn::query::{

View file

@ -18,6 +18,7 @@ mod utils;
use core_traits::{
ValueType,
TypedValue,
ValueTypeSet,
};
use mentat_core::{
@ -25,7 +26,6 @@ use mentat_core::{
DateTime,
Schema,
Utc,
ValueTypeSet,
};
use edn::query::{

View file

@ -10,9 +10,6 @@
use core_traits::{
ValueType,
};
use mentat_core::{
ValueTypeSet,
};

View file

@ -12,7 +12,7 @@ use std; // To refer to std::result::Result.
use rusqlite;
use mentat_core::{
use core_traits::{
ValueTypeSet,
};
use db_traits::errors::DbError;

View file

@ -16,10 +16,13 @@ use indexmap::{
IndexSet,
};
use core_traits::{
ValueTypeSet,
};
use mentat_core::{
SQLValueType,
SQLValueTypeSet,
ValueTypeSet,
};
use mentat_core::util::{

View file

@ -11,6 +11,7 @@
use core_traits::{
TypedValue,
ValueType,
ValueTypeSet,
};
use mentat_core::{
@ -19,7 +20,6 @@ use mentat_core::{
SQLValueType,
SQLValueTypeSet,
ValueTypeTag,
ValueTypeSet,
};
use mentat_core::util::{

View file

@ -30,6 +30,7 @@ use core_traits::{
Entid,
KnownEntid,
ValueType,
ValueTypeSet,
};
use mentat_core::{
@ -37,7 +38,6 @@ use mentat_core::{
HasSchema,
Utc,
Uuid,
ValueTypeSet,
};
use mentat_query_projector::{