Automatic SQLite ORM for iOS in Objective-C, built on FMDB
open sourceMITfree
LKDBHelper is an automatic SQLite ORM for iOS, written in Objective-C on top of FMDB. It inserts, queries, updates and deletes model objects automatically, handling properties such as NSArray, NSDictionary, nested model classes, NSDate, NSData, UIColor, UIImage and geometry types. It's thread-safe and avoids recursive deadlocks, can turn on WAL mode and performance PRAGMAs, works with FMDB's SQLCipher build for encryption, and ships an LKDBRecover framework, based on SQLite's recover API, to repair corrupted databases. Its README is mostly in Chinese.
Problems it solves
- save my Objective-C model objects to SQLite on iOS without writing SQL
- repair an iOS app's SQLite database that reports database disk image is malformed
- encrypt the local SQLite database in my iOS app
Features
- automatic insert, query, update and delete of model objects
- property types from NSArray and NSDictionary to UIImage and CGRect
- thread-safe without recursive deadlocks
- SQLCipher encryption through FMDB
- LKDBRecover for repairing corrupted databases
- WAL mode and performance PRAGMA switches
