Commit 57176a6e06a4c3e75e85e6ad1838357d0eeaf60c

Thomas de Grivel 2025-04-19T14:29:54

document Facts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/doc/1_KC3/1.25_Facts.en.md b/doc/1_KC3/1.25_Facts.en.md
index 6dcaaa0..7ebf95e 100644
--- a/doc/1_KC3/1.25_Facts.en.md
+++ b/doc/1_KC3/1.25_Facts.en.md
@@ -54,6 +54,16 @@ ikc3>   puts("#{inspect(sym)} #{inspect(op)}")
 ikc3> })
 ```
 
+The config module from an HTTPd instance has an example of
+persistence, this way the database is loaded when the module is loaded :
+
+```elixir
+defmodule Config do
+  def db = Facts.database()
+  Facts.open(db, "db/app.facts")
+end
+```
+
 ---
 
 Top : [KC3 documentation](/doc/)