From 6ae90f432a37bbe831814b328c6567bb58a597a1 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 28 Nov 2023 15:24:44 +0200 Subject: Add gnosis-init Function to initialize gnosis-db tables Currently under heavy testing --- gnosis.el | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3