WCDB v1.0.4 Release Notes
Release Date: 2017-09-14 // over 6 years ago-
Repair Kit
- โ Add
sqliterk_cancel
function to cancel ongoing output operations. - โ Add corresponding Java interface to cancel operations on Android.
๐ iOS/macOS
- ๐ Builtin
WCTColumnCoding
supports allid<NSCoding>
objects now. - Compatible with iOS 11.
- 0๏ธโฃ
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.
- โ Add