Skip to content

SQLiteCreatable

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

##Overview SQLiteCreatable exposes an interface for inserting rows into the table associated with the model.

####New Inserts a new row into the database associated with the model and updates the cache.
Executes on current thread and on background thread respectively.

static func new(setters: [Setter], relationshipSetters: [RelationshipSetter]) throws -> Self
static func newInBackground(setters: [Setter], relationshipSetters: [RelationshipSetter], completion: ((Self?, SQLiteModelError?) -> Void)?)

public protocol SQLiteCreatable {
    static func new(setters: [Setter], relationshipSetters: [RelationshipSetter]) throws -> Self
    static func newInBackground(setters: [Setter], relationshipSetters: [RelationshipSetter], completion: ((Self?, SQLiteModelError?) -> Void)?)
}

Clone this wiki locally