Embedded databases are lightweight, stand-alone libraries, no server components, no management, a small code size, and limited resource requirements. There are several embedded databases that you can use in your mobile application. Let's take a look at these most popular databases.
Database |
Data type Storage |
License |
Support Platform |
BerkeleyDB |
Relational,objects,key-value pairs,documents |
AGPL 3.0 |
Android,ios |
Couchbase Lite |
Documents |
Apache 2.0 |
Android,ios |
LevelDB |
Key-value pairs |
New BSD |
Android,ios |
Sqlite |
Relational |
Public Domain |
Android,ios,windows Phone,blackberry |
Unqlite |
Key-value pairs,documents |
BSD 2-clause |
Android,ios,windows Phone |
Berkeley DB
Berkeley DB is a set of open source embedded database management systems (acquired by Oracle) developed by the United States Sleepycat software, which provides scalable, high-performance, transaction-protected data management services for applications.
Berkeley DB (BDB) is an efficient embedded database programming library that has APIs for C, C + +, Java, Perl, Python, Tcl, and many other languages. Berkeley db can hold any type of key/value pair (Key/value pair), and you can save multiple data for one key. Berkeley DB enables thousands of of concurrent threads to operate the database at the same time, supporting up to 256TB of data, widely used in various operating systems, including most Unix-like operating systems, Windows operating systems, and real-time operating systems.
Couchbase Lite
Couchbase Lite is an ultra-lightweight, reliable, and secure JSON database developed for online and offline mobile applications. Even under the most uncertain network conditions, you can provide a productive and reliable reputation for your mobile applications. In addition, the ' Sync Portal ' feature can also provide collaboration, social interaction, or user updates.
Highlights of the Couchbase mobile platform:
1.JSON Anywhere: Use a flexible data model designed for object-oriented mobile apps to instantly adapt to your application needs without having to drastically alter your application.
2. Easy synchronization (Easy synchronization): Only a few lines of code can be synchronized, so that developers can focus more on the application development itself, rather than synchronization issues.
3. Native APIs: Manage mobile databases with APIs optimized for iOS and Android.
4.REST APIs: REST APIs provide an alternative approach to access based on your development needs.
LevelDB
Leveldb is a Google open source Key/value storage engine, which is written in C + + and supports high concurrent access and writing, especially for high write business environments.
For an overview of LEVELDB can refer to the data analysis and processing of the second (Leveldb implementation principle) to leveldb a description, the plot of this article is more leveldb a realization layer of entanglement, version Leveldb 1.7.02.
LEVELDB storage is mainly divided into sstable and Memtable, the former is immutable and stored on the persistent device, the latter is in memory and variable (there are two memtable in Leveldb, one for the current write memtable, The other is immutable memtable waiting for persistence). First, we look at the implementation layer analysis of sstable.
Sqlite
SQLite is an open-source, embedded relational database that implements a self-contained, 0 configuration, transactional SQL database engine. It is characterized by its high portability, ease of use, compact structure, high efficiency and reliability. Unlike other database management systems, SQLite is very simple to install and run, in most cases-just make sure that sqlite binaries exist to start creating, connecting, and using the database. If you are looking for an embedded database project or solution, SQLite is definitely worth considering.
Unqlite
Unqlite is an embedded C-language software library produced by Symisc Systems, which implements a self-contained, server-free, 0-config, transactional NoSQL database engine. Unqlite is a document store database, similar to MongoDB, Redis, Couchdb, and so on. At the same time, it is also a standard key/value storage, similar to BerkeleyDB and LEVELDB.
Unqlite is an embedded NoSQL (key/value store and document store) database engine. Unlike most other NoSQL databases, Unqlite does not have a separate server process. Unqlite directly read/write plain disk files. A complete database containing multiple datasets, stored in a single disk file. The database file format is cross-platform and allows you to freely copy a database between 32-bit and 64-bit systems or big-and small-end architectures.
Friendship recommendation: IntelliJ Idea Tutorial Andriod project development. HPE offers andriod professional development Ide--intellij idea (the current year-end event to enjoy the benefits). Also have the discount wish, oneself want how to discount on how to discount. "The peak of the year-end promotion" Hui "?" Iphone?6? Plus, Iphone?6, IPad? Air is full to send, not quickly buy buy buy!
Inventory the 5 most popular databases in mobile development