summaryrefslogtreecommitdiff
path: root/src/content/blog/2021/04
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/blog/2021/04')
-rw-r--r--src/content/blog/2021/04/29/relational-review.adoc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content/blog/2021/04/29/relational-review.adoc b/src/content/blog/2021/04/29/relational-review.adoc
index cb552c3..4b53737 100644
--- a/src/content/blog/2021/04/29/relational-review.adoc
+++ b/src/content/blog/2021/04/29/relational-review.adoc
@@ -89,6 +89,7 @@ FROM people employees
INNER JOIN people managers ON employees.manager_id = managers.id;
----
+[source,clojure]
----
;; create schema
#{{:db/ident :person/id
@@ -126,11 +127,12 @@ Both "Foo" and "Bar" are employees, and the data is normalized. SQL represents
data as tables, and Datomic as datoms, but relations could be derived from both,
which we could view as:
-....
+[source,sql]
+----
employee_name | manager_name
----------------------------
"Foo" | "Bar"
-....
+----
== Conclusion