在Android中哪些类型的数据库有哪些? [英] What types of Databases are available in Android?

查看:227
本文介绍了在Android中哪些类型的数据库有哪些?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好任何人都可以说,我为什么要使用SQLite数据库为我的移动应用程序?是否有任何数据库,而不是我可以使用?

Hi all can anyone say why I should use an SQLite database for my mobile application? Are there any databases instead that I can use?

推荐答案

另一个选择是Berkeley DB的,这就像SQLite是一个轻量级的,快速,可靠的数据库库。你有你如何使用Android上的Berkeley DB的一些不同的选择:

Another option is Berkeley DB, which like SQLite is a lightweight, fast, reliable database library. You have a few different options of how you can use Berkeley DB on Android:


  1. 通过 SQL API 作为升级/替换SQLite的使用Berkeley DB。该BDB SQL API完全兼容的SQLite,所以你的SQLite的应用程序应该能够将其转换为使用Berkeley DB的非常容易。你为什么要使用Berkeley DB,而不是SQLite的?在Android上,它主要是关于并发。 BDB支持并发的读写操作。如果您的Andr​​oid应用程序需要这一点,那么BDB是一个很好的选择。在非Android平台,BDB的可扩展性,高性能,高可用性和企业的支持,使其成为使用SQLite已经或考虑使用它的应用程序要么有吸引力的选择。有OTN上了有益的探讨关于在Android上使用这里

  2. 通过键值API作为一个简单的,本地数据存储使用 Berkeley DB的

  3. 使用通过键值 Berkeley DB Java版中,Java集合或直接持久层API来管理应用程序数据在纯Java环境。这里有一个有趣的博客关于Android上使用的Berkeley DB JE 作品。

  1. Use Berkeley DB via the SQL API as an upgrade/replacement for SQLite. The BDB SQL API is completely SQLite compatible, so your SQLite application should be able to convert to using Berkeley DB very easily. Why would you want to use Berkeley DB instead of SQLite? On Android, it's mostly about concurrency. BDB supports concurrent read and write operations. If your Android application needs that, then BDB is an excellent option. On non-Android platforms, BDB scalability, performance, HA and enterprise Support make it an attractive alternative for applications either using SQLite already or considering using it. There's a useful discussion on OTN about using the BDB SQL API on Android here.
  2. Use Berkeley DB via the key-value API as a simple, local data store.
  3. Use Berkeley DB Java Edition via the key-value, Java Collections or Direct Persistence Layer APIs to manage application data within a pure Java environment. Here's an interesting Blog entry about using Berkeley DB JE on Android.

免责声明:我是Berkeley DB的产品经理。尽管如此,我们认为,SQLite是一个伟大的产品(我们SQLite的联合体的组成部分),我们很高兴看到人们采纳和使用它。有些情况下的Berkeley DB可能是一个更好的选择,因此,我的建议在这里的情况。

Disclaimer: I'm the Product Manager for Berkeley DB. That said, we think that SQLite is a great product (we're part of the SQLite Consortium) and we're happy to see people adopting and using it. There are situations where Berkeley DB may be a better choice, hence my suggestion here.

这篇关于在Android中哪些类型的数据库有哪些?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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