Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Implement excision. (#21) #766

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,21 @@ sqlcipher = ["rusqlite/sqlcipher", "mentat_db/sqlcipher"]
syncable = ["mentat_tolstoy", "mentat_db/syncable"]

[workspace]
members = ["tools/cli", "ffi"]
members = [
"tools/cli",
"ffi",
"core",
"db",
"edn",
"query",
"query-algebrizer",
"query-projector",
"query-pull",
"query-sql",
"query-translator",
"sql",
"tolstoy",
]

[build-dependencies]
rustc_version = "0.2"
Expand Down
14 changes: 13 additions & 1 deletion db/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,15 @@ lazy_static! {
]
};

static ref V1_CORE_SCHEMA: [(symbols::Keyword); 16] = {
static ref V1_CORE_SCHEMA: [(symbols::Keyword); 20] = {
[(ns_keyword!("db", "ident")),
(ns_keyword!("db.install", "partition")),
(ns_keyword!("db.install", "valueType")),
(ns_keyword!("db.install", "attribute")),
(ns_keyword!("db", "excise")),
(ns_keyword!("db.excise", "attrs")),
(ns_keyword!("db.excise", "beforeT")),
(ns_keyword!("db.excise", "before")),
(ns_keyword!("db", "txInstant")),
(ns_keyword!("db", "valueType")),
(ns_keyword!("db", "cardinality")),
Expand Down Expand Up @@ -124,6 +128,14 @@ lazy_static! {
:db/cardinality :db.cardinality/many}
:db.install/attribute {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many}
:db/excise {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many}
:db.excise/attrs {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many}
:db.excise/beforeT {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one}
:db.excise/before {:db/valueType :db.type/instant
:db/cardinality :db.cardinality/one}
;; TODO: support user-specified functions in the future.
;; :db.install/function {:db/valueType :db.type/ref
;; :db/cardinality :db.cardinality/many}
Expand Down
Loading