li6185377 / LKDBHelper-SQLite-ORM

全自动的插入,查询,更新,删除, an automatic database operation thread-safe and not afraid of recursive deadlock
MIT License
1.21k stars 288 forks source link

该ORM框架支持的缓存数据类型已经很多了,但是现在用到了CMTime、CMTimeRange这种结构体,缓存后的数据无效 #140

Closed RICHYANGER closed 5 years ago

li6185377 commented 5 years ago

目前不支持这一类的数据,该属性要自己转义下存储

/***
 *  @brief      overwrite in your models,return insert sqlite table data
 *
 *
 *  @return     property the data after conversion
 */
- (nullable id)userGetValueForModel:(LKDBProperty *)property;

/***
 *  @brief  overwrite in your models,return insert sqlite table data
 *
 *  @param  property        will set property
 *  @param  value           sqlite value (NSString(NSData UTF8 Coding) or NSData)
 */
- (void)userSetValueForModel:(LKDBProperty *)property value:(nullable id)value;