Add a drop DB function
This commit is contained in:
parent
afe2e12f5f
commit
2a97f2f218
@ -10,7 +10,8 @@
|
||||
:db/del ; del a value from the DB
|
||||
:db/get-by-index ;
|
||||
:db/get-by-partition ;
|
||||
:db-data ;
|
||||
:db/drop-everything ;
|
||||
:db-data ;
|
||||
))
|
||||
(in-package dodb)
|
||||
|
||||
@ -278,3 +279,7 @@
|
||||
(maphash #'(lambda (partition-name fsymbol)
|
||||
(db/partition/update dbpath partition-name fsymbol object file-basename old-object))
|
||||
(db-partitions database))))
|
||||
|
||||
(defun db/drop-everything (database)
|
||||
(osicat:delete-directory-and-files (db-path database))
|
||||
(clrhash (db-data database)))
|
||||
|
Loading…
Reference in New Issue
Block a user