
Linuxeden 开源社区 --
WCDB 1.0.4 已发布,WCDB 是腾讯开源的一个高效、完整、易用的移动数据库框架,基于 SQLCipher ,支持 iOS、macOS 和 Android 。
更新内容:
Repair Kit
- Add
sqliterk_cancelfunction to cancel ongoing output operations. - Add corresponding Java interface to cancel operations on Android.
iOS
- Builtin
WCTColumnCodingsupports allid<NSCoding>objects now. - Compatible with iOS 11.
Fullfsyncis used by default for data integrity.- Add
-initWithExistingTag:forWCTDatabaseto get existing database without path.
WCTDatabase* database = [WCTDatabase [alloc] initWithPath:path]; database.tag = 123; WCTDatabase* withoutPath = [[WCTDatabase alloc] initWithExistingTag:123];
- Some minor bug fixes, performance improvement and code refactor.
Android
- Add asynchronous checkpointing support and custom checkpointing callback. This can
improve performance in WAL mode.
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabaseInWalMode(...);
// Use asynchronous checkpointing.
db.setAsyncCheckpointEnabled(true);
// OR use custom checkpointer.
SQLiteCheckpointListener callback = new SQLiteCheckpointListener() {
//...
};
db.setCheckpointCallback(callback);
- Add
SQLiteTrace.onConnectionObtained(...)interface to trace concurrency performance. - Add cancelable version of
SQLiteDatabase.execSQL(). SeeCancellationSignalfor details.
CancellationSignal signal = new CancellationSignal(); db.execSQL(longRunningSQL, args, signal); // on another thread signal.cancel();
- Enable
SQLITE_ENABLE_FTS3_PARENTHESIScompilation option on SQLCipher, which enablesAND,ORoperators in FTS3/4. - Use
CancellationSignalfor cancelingBackupKit,RecoverKitandRepairKitoperations. See repair sample for details. - Add callback interface for
RepairKitto show progress to the users. SeeRepairKit.CallbackandRepairKit.setCallback(). - Do not load
libwcdb.soif it’s already loaded on the first use. This makes WCDB compatible to Tinker framework. - Various bug fixes.
下载地址请查看 发行列表
转自 http://ift.tt/2fpzWgm
The post WCDB 1.0.4 发布,腾讯开源的移动数据库框架 appeared first on Linuxeden开源社区.
http://ift.tt/2vZadS0
没有评论:
发表评论