summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-11-29 08:01:00 +0200
committerThanos Apollo <[email protected]>2023-11-29 08:01:00 +0200
commit692c30c29cb76c8f71ab4d226fc7d901996b0eb9 (patch)
treea03b75233c28384146e0e23071fe5896aac483a7 /gnosis.el
parent4aba7f53215eb83ca983ee1b2225bb72e377fb7e (diff)
Add gnosis--drop-table
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index ba3196e..7757e07 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -46,6 +46,10 @@
"Create TABLE-NAME for VALUES."
(emacsql gnosis-db `[:create-table ,table-name ,values]))
+(cl-defun gnosis--drop-table (table)
+ "Drop TABLE from gnosis-db."
+ (emacsql gnosis-db `[:drop-table ,table]))
+
(cl-defun gnosis--insert-into (table-name values)
"Insert VALUES to TABLE-NAME."
(emacsql gnosis-db `[:insert :into ,table-name :values ,values]))