如何升级SQLite的版本? [英] How to upgrade SQLite version?

查看:198
本文介绍了如何升级SQLite的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发展我的第一个应用程序,并使用以下code我看到的是我的SQLite版本:

I'm developing my first app and using the following code i see what is my SQLite version:

Cursor cursor = SQLiteDatabase.openOrCreateDatabase(":memory:", null).rawQuery("select sqlite_version() AS sqlite_version", null);
String sqliteVersion = "";
while(cursor.moveToNext())
    sqliteVersion += cursor.getString(0);
Log.e("Version", sqliteVersion);

我的版本是3.7.11。

My version is 3.7.11.

因为我需要使用一些新的功能,如何将其升级到最新版本?

Since i need to use some new functions, how to upgrade it to the latest version?

推荐答案

这是你与 SQLiteDatabase 访问SQLite库的是Android的一部分,无法替代的(除非你重新编译Android上扎根设备)。

The SQLite library that you access with SQLiteDatabase is part of Android and cannot be replaced (unless you recompile Android on a rooted device).

您必须编译您自己的SQLite的副本与NDK 并访问它通过您的自己的包装函数/对象。

You have to compile your own copy of SQLite with the NDK and access it through your own wrapper functions/objects.

这篇关于如何升级SQLite的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆