Skip to content

Scalar Queries

Jeff Hurray edited this page Apr 25, 2016 · 2 revisions

Currently the only scalar query supported is count. This is a quicker operation than fetching all instances of a model and getting the count of the array.

let count = try Movie.count()

In the future I would like to support a larger suite of aggregate functions like min, max, sum, and average.

SQLite.swift supports a variety of scalar queries. More information can be found here

Clone this wiki locally