MCPcopy Index your code
hub / github.com/dnote/dnote / Expunge

Method Expunge

pkg/cli/database/models.go:155–162  ·  view source on GitHub ↗

Expunge hard-deletes the book from the database

(db *DB)

Source from the content-addressed store, hash-verified

153
154// Expunge hard-deletes the book from the database
155func (b Book) Expunge(db *DB) error {
156 _, err := db.Exec("DELETE FROM books WHERE uuid = ?", b.UUID)
157 if err != nil {
158 return errors.Wrap(err, "expunging a book locally")
159 }
160
161 return nil
162}

Callers 3

TestBookExpungeFunction · 0.95
cleanLocalBooksFunction · 0.95
sendBooksFunction · 0.95

Calls 1

ExecMethod · 0.65

Tested by 1

TestBookExpungeFunction · 0.76