summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-11-28 15:24:44 +0200
committerThanos Apollo <[email protected]>2023-11-28 15:24:44 +0200
commit6ae90f432a37bbe831814b328c6567bb58a597a1 (patch)
tree43f59eb85618188c0a7e8722208381b3e88e2240 /gnosis.el
parent2b601039210dfa661cec3cf4c4552d17b8cedd47 (diff)
Add gnosis-init
Function to initialize gnosis-db tables Currently under heavy testing
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 0923422..16b1987 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -128,4 +128,14 @@ use it like this:
(gnosis-review 1)
(gnosis-mode)))
+(defun gnosis-init ()
+ "Create notes content table."
+ (gnosis--create-table 'notes '([(question_id integer :primary-key)
+ type
+ question
+ choices
+ answer
+ rev_log
+ rev_score])))
+
;;; gnosis.el ends here