Skip to content

SQLiteScalarQueryable

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

##Overview SQLiteScalarQueryable exposes an interface for scalar (aggregate) queries.

####Count Returns the number of rows in the table associated with the model.
Executes on current thread and on background thread respectively.

static func count() throws -> Int
static func countInBackground(completion: (Int, SQLiteModelError?) -> Void)

public protocol SQLiteScalarQueryable {
    static func count() throws -> Int
    static func countInBackground(completion: (Int, SQLiteModelError?) -> Void)
}
Clone this wiki locally