1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 WCDB 1.0.4 发布,腾讯开源的移动数据库框架 下载

本帖由 漂亮的石头2017-09-16 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    488,039
    赞:
    47
    WCDB 1.0.4 已发布,WCDB 是腾讯开源的一个高效、完整、易用的移动数据库框架,基于 SQLCipher ,支持 iOS、macOS 和 Android 。

    更新内容:

    Repair Kit


    • Add sqliterk_cancel function to cancel ongoing output operations.


    • Add corresponding Java interface to cancel operations on Android.

    iOS


    • Builtin WCTColumnCoding supports all id<NSCoding> objects now.


    • Compatible with iOS 11.


    • Fullfsync is used by default for data integrity.


    • Add -initWithExistingTag: for WCTDatabase 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(). See CancellationSignal 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 enables AND, OR operators in FTS3/4.


    • Use CancellationSignal for canceling BackupKit, RecoverKit and RepairKit operations. See repair sample for details.


    • Add callback interface for RepairKit to show progress to the users. See RepairKit.Callback and RepairKit.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.

    下载地址请查看发行列表
    WCDB 1.0.4 发布,腾讯开源的移动数据库框架下载地址
     
正在加载...