Since we already have _db.inserIfNotExists(), maybe it would be nice to have a _db.deleteIfExists() that would save us from having to verify if a record is present on the database before deleting it with _db.delete(). If it finds the record, it deletes it. If it doesn't, it doesn't crash, just return some sort of value that indicates the fail, maybe.
Since we already have
_db.inserIfNotExists(), maybe it would be nice to have a_db.deleteIfExists()that would save us from having to verify if a record is present on the database before deleting it with_db.delete(). If it finds the record, it deletes it. If it doesn't, it doesn't crash, just return some sort of value that indicates the fail, maybe.