Skip to content

SQLiteDeletable

Jeff Hurray edited this page Apr 25, 2016 · 1 revision

##Overview SQLiteDeletable exposes an interface for deleting rows from the database associated with the model.

####Delete All Deletes all rows in the table associated with the model.
Executes on current thread and on background thread respectively.

static func deleteAll() throws -> Void
static func deleteAllInBackground(completion: Completion?) -> Void

####Delete Deletes rows that satisfy the query in the table associated with the model.
Executes on current thread and on background thread respectively.

static func delete(query: QueryType) throws -> Void
static func deleteInBackground(query: QueryType, completion: Completion?) -> Void

public protocol SQLiteDeletable {
    static func deleteAll() throws -> Void
    static func deleteAllInBackground(completion: Completion?) -> Void
    
    static func delete(query: QueryType) throws -> Void
    static func deleteInBackground(query: QueryType, completion: Completion?) -> Void
}

Clone this wiki locally