v1.0.4
版本发布时间: 2017-09-14 12:33:15
Tencent/wcdb最新发布版本:v2.1.7(2024-08-18 21:23:56)
Repair Kit
- Add
sqliterk_cancel
function to cancel ongoing output operations. - Add corresponding Java interface to cancel operations on Android.
iOS
- Builtin
WCTColumnCoding
supports allid<NSCoding>
objects now. - Compatible with iOS 11.
-
Fullfsync
is used by default for data integrity. - Add
-initWithExistingTag:
forWCTDatabase
to 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()
. SeeCancellationSignal
for details.
CancellationSignal signal = new CancellationSignal();
db.execSQL(longRunningSQL, args, signal);
// on another thread
signal.cancel();
- Enable
SQLITE_ENABLE_FTS3_PARENTHESIS
compilation option on SQLCipher, which enablesAND
,OR
operators in FTS3/4. - Use
CancellationSignal
for cancelingBackupKit
,RecoverKit
andRepairKit
operations. See repair sample for details. - Add callback interface for
RepairKit
to show progress to the users. SeeRepairKit.Callback
andRepairKit.setCallback()
. - Do not load
libwcdb.so
if it's already loaded on the first use. This makes WCDB compatible to Tinker framework. - Various bug fixes.
1、 wcdb-android-1.0.4-debug.aar 3.67MB
2、 wcdb-android-1.0.4-debugSymbols.zip 12.04MB
3、 wcdb-android-1.0.4-release.aar 3.81MB
4、 wcdb-android-1.0.4-symbols.zip 16.53MB
5、 wcdb-ios-1.0.4.zip 26.6MB