aboutsummaryrefslogtreecommitdiff
path: root/_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-databas...
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-14 12:04:56 -0300
committerEuAndreh <eu@euandre.org>2020-11-14 13:51:05 -0300
commit0fd1625d5cc9dab03ccd4df50d525ee8c0231f53 (patch)
treeb0602db2384facf7a2cca902fa32521447bd53ca /_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md
parentUse "eu_categories" frontmatter attribute (diff)
downloadeuandre.org-0fd1625d5cc9dab03ccd4df50d525ee8c0231f53.tar.gz
euandre.org-0fd1625d5cc9dab03ccd4df50d525ee8c0231f53.tar.xz
building a database article: Use :db/root over null value
Diffstat (limited to '_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md')
-rw-r--r--_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md b/_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md
index 6e51575..8825c7f 100644
--- a/_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md
+++ b/_articles/2020-11-12-durable-persistent-trees-and-parser-combinators-building-a-database.md
@@ -4,6 +4,8 @@ title: Durable persistent trees and parser combinators - building a database
date: 2020-11-12
+updated_at: 2020-11-14
+
layout: post
lang: en
@@ -48,11 +50,11 @@ writers, and I chose to do it by making the log not a list, but a
directed acyclic graph (DAG):
```clojure
-[[person :likes "pizza" 0 true]
- [0 :parent null 0 true]
- [person :likes "bread" 1 true]
- [person :likes "pizza" 1 false]
- [1 :parent 0 1 true]]
+[[person :likes "pizza" 0 true]
+ [0 :parent :db/root 0 true]
+ [person :likes "bread" 1 true]
+ [person :likes "pizza" 1 false]
+ [1 :parent 0 1 true]]
```
The extra datoms above add more information to build the directionality to the