Something new that I wrote in Objective-C is SimpleDB. This is a key / value repository and can be found here: http://github.com/AaronBratcher/SimpleDB
Since the stored values ββmust be JSON, sorting can be performed, and specific pieces of data can be returned.
Special functions
- Very easy to use - NO SQL query!
- Auto-Delete option for records after a specified date
- Direct interaction with the database is not required to use the class - all this does
- All methods are class-level methods, so no instance of the class is required.
- Ceiling protection
API
+(BOOL) hasKey:(NSString*) key inTable:(NSString*) table; +(NSArray*) keysInTable:(NSString*) table; +(NSArray*) keysInTable:(NSString*) table orderByJSONValueForKey:(NSString*)jsonOrderKey passingTest:(BOOL (^)(NSString* key, NSString* value, NSDate* dateAdded, NSDate* dateModified)); +(NSString*) valueForKey:(NSString*) key inTable:(NSString*) table; +(NSDictionary*) dictionaryValueForKey:(NSString*) key inTable:(NSString*) table; +(id) jsonValueForKey:(NSString*) jsonKey tableKey:(NSString*) key inTable:(NSString*) table; +(void) setValue:(NSString*) value forKey:(NSString*) key inTable:(NSString*) table; +(void) setValue:(NSString*) value forKey:(NSString*) key inTable:(NSString*) table autoDeleteAfter:(NSDate*) date; +(void) deleteForKey:(NSString*) key inTable:(NSString*) table; +(void) dropTable:(NSString*) table; +(dbStatus) status; +(NSString*) guid;
Aaron Bratcher Oct 10 '13 at 19:33 2013-10-10 19:33
source share