Latest 0.5.2
Homepage https://github.com/xmkevinchen/CKCoreDataKit
License MIT
Platforms ios 8.0, requires ARC
Dependencies CocoaLumberjack/Swift
Frameworks CoreData
Authors

This is a CoreData syntax wrapper, written in Swift.
Simplify the usage of CoreData

Usage

pod ‘CKCoreDataKit’, ‘~> 0.5.2’

Classes

Core

  • CKSession
  • CKSessionModel
  • CKFetchRequest
  • CKFetchResult

Extension

  • NSMangedObjectExtentions

Basic Usage

Initialize

let session = CKSession()

Write

session.write {
    // ... transaction

}

Query

let result: CKFetchResult<T> = session
                              .objects(T)
                              .filter("name = %@", "Kevin")
                              .filter(NSPredicate(format: "title = %@", "Dr."))
                              .sort("age", ascending: true)
                              .sort(NSSortDescriptor(key: "salary", ascending: false))
                              .fetch()

Limitation

The CKCoreDataKit just comes out for simplifying the syntax of most regular usage of CoreData, hidden the repeat initialize, fetch, execute code.
In order to accomplish the concurrency programming, use should keep the session as short as possible

Latest podspec

{
    "name": "CKCoreDataKit",
    "version": "0.5.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "summary": "CoreData syntax wrapper written in Swift",
    "homepage": "https://github.com/xmkevinchen/CKCoreDataKit",
    "authors": {
        "Kevin Chen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xmkevinchen/CKCoreDataKit.git",
        "tag": "0.5.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "CKCoreDataKit/CKCoreDataKit.h",
        "CKCoreDataKit/**/*.{h,m,swift}"
    ],
    "public_header_files": [
        "CKCoreDataKit/CKCoreDataKit.h"
    ],
    "requires_arc": true,
    "frameworks": "CoreData",
    "dependencies": {
        "CocoaLumberjack/Swift": []
    }
}

Pin It on Pinterest

Share This