Skip to content

Instantly share code, notes, and snippets.

@galiak11
galiak11 / Query.swift
Last active September 1, 2016 17:23
Swift CoreData Query API
import Foundation
import CoreData
/**
Query: this is a Swift Query API for CodeData.
Usage example:
// fetch multiple rows
let people = Query("Person").whereEqual( "lastName", lastName ).sort( "name" ).fetch()