Licence
|
Versions 2.0 and higher of Berkeley DB are available under a dual license. Versions earlier than 2.0 are available under a BSD-like license that has an unusual additional clause similar to the GNU GPL version 2's Section 3.【From Wiki】
Dual License
The Berkeley DB products are available under a dual license model, which offers
great advantages for customers. An open source license permits customers to use
Berkeley DB at no charge under the condition that if a customer uses Berkeley DB
in an application they distribute to a third party, the complete source code for the
application must be available. A commercial software license is also available and
permits the customer to distribute their application without releasing their source
code.【From OTN】
|
Anyone
is free to copy, modify, publish, use, compile, sell, or distribute the
original SQLite code, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.【From sqlite.org】
|
优势
|
首先,由于其应用程序和数据库管理系统运行在相同的进程空间当中,进行数据操作时可以避免繁琐的进程间通信,因此耗费在通信上的开销自然也就降低到了极低程度。其次,Berkeley DB使用简单的函数调用接口来完成所有的数据库操作,而不是在数据库系统中经常用到的SQL语言,避免了对结构化查询语言进行解析和处理所需的开销。
|
SQLite有以下特性:支持ACID事务;零配置;储存在单一磁盘文件中的一个完整的数据库;数据库文件可以在不同字节顺序的机器间自由共享;比目前流行的大多数数据库对数据的操作要快;提供了对事务功能和并发处理的支持;独立,没有额外依赖。
|