summaryrefslogtreecommitdiff
path: root/src/content/blog/2021/04
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-16 11:20:43 -0300
committerEuAndreh <eu@euandre.org>2025-04-16 11:20:43 -0300
commitd36c2e459a74ec67e523539eb98b78b95b01432a (patch)
treea7099fbfbdab6a21f59b6efe095bffb40ceae646 /src/content/blog/2021/04
parentsrc/content/style.css: Show header on hover only (diff)
downloadeuandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.gz
euandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.xz
src/content/: Normalize [source,$lang] code blocks
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