-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add system entities to temporal index per default * Remove dev literals * add sys attributes in history test * add context info for meta-db-test counts, fix gc-test counts
- Loading branch information
Showing
4 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(ns datahike.test.attribute-refs.temporal-search | ||
(:require | ||
#?(:cljs [cljs.test :as t :refer-macros [is deftest testing]] | ||
:clj [clojure.test :refer [is deftest]]) | ||
[datahike.api :as d])) | ||
|
||
(deftest q-with-history-should-contain-sys-attributes | ||
(let [cfg {:store {:backend :mem | ||
:id "attr-refs-test.temporal-serach"} | ||
:attribute-refs? true | ||
:keep-history? true | ||
:schema-flexibility :write} | ||
conn (do (d/delete-database cfg) | ||
(d/create-database cfg) | ||
(d/connect cfg)) | ||
query '[:find ?e ?a ?v ?t ?s | ||
:where [?e ?a ?v ?t ?s]]] | ||
(is (= (d/q query @conn) | ||
(d/q query (d/history @conn)))) | ||
(is (< 1 | ||
(count (d/q query (d/history @conn))))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters