Add sqlite backend

This commit is contained in:
Jon Staab
2025-09-24 10:32:10 -07:00
parent 9eedeceb6a
commit 91f23cddc9
12 changed files with 556 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
package sqlite
import (
"fiatjaf.com/nostr"
)
func (s *SqliteBackend) DeleteEvent(id nostr.ID) error {
s.Lock()
defer s.Unlock()
_, err := s.db.Exec("DELETE FROM events WHERE id = ?", id.Hex())
return err
}