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

栏目: 软件资讯 · 发布时间: 8年前

内容简介:WCDB 1.0.4 已发布,WCDB 是腾讯开源的一个高效、完整、易用的移动数据库框架,基于 SQLCipher ,支持 iOS、macOS 和 Android 。 更新内容: Repair Kit Add sqliterk_cancel function to cancel ongoing ou...

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 ANDOR operators in FTS3/4.

  • Use CancellationSignal for canceling BackupKitRecoverKit 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.

下载地址请查看发行列表


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《WCDB 1.0.4 发布,腾讯开源的移动数据库框架》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

PWA实战

PWA实战

[美]Dean Alan Hume / 郑丰彧 / 电子工业出版社 / 2018-6 / 69

Progressive Web App(PWA)是由谷歌提出的一整套技术解决方案,它致力于为 Web 提供出色的用户体验,并完美体现了渐进增强原则。作为为数不多的实战入门用书,《PWA 实战:面向下一代的Progressive Web App》旨在通过大量清晰示例来介绍 PWA 的主要特性。全书一共由五个部分组成:第一部分介绍 PWA 的概念及解锁 PWA 应用的关键—Service Worker......一起来看看 《PWA实战》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具