Skip to content

Delete if exists #134

@Henrique-Sousa

Description

@Henrique-Sousa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions