Expunge hard-deletes the book from the database
(db *DB)
| 153 | |
| 154 | // Expunge hard-deletes the book from the database |
| 155 | func (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 | } |