SQLite 3.8.11 发布,数据库服务器
欢迎加入运维网交流群:263444886SQLite 3.8.11 发布,更新内容如下:
[*] Added the experimental RBU extension. (experimental)
[*] Added the experimental FTS5 extension. (experimental)
[*] Added the sqlite3_value_dup() and sqlite3_value_free() interfaces.
[*] Enhance the spellfix1 extension to support ON CONFLICT clauses.
[*] The IS operator is now able to drive indexes.
[*] Enhance the query planner to permit automatic indexing on FROM-clause subqueries that are implemented by co-routine.
[*] Disallow the use of "rowid" in common table expressions.
[*] Added the PRAGMA cell_size_check command for better and earlier detection of database file corruption.
[*] Added the matchinfo 'b' flag to the matchinfo() function in FTS3.
[*] Improved fuzz-testing of database files, with fixes for problems found.
[*] Add the fuzzcheck test program and automatically run this program using both SQL and database test cases on "make test".
[*] Added the SQLITE_MUTEX_STATIC_VFS1 static mutex and use it in theWindows VFS.
[*] The sqlite3_profile() callback is invoked (by sqlite3_reset() or sqlite3_finalize()) for statements that did not run to completion.
[*] Enhance the page cache so that it can preallocate a block of memory to use for the initial set page cache lines. Set the default preallocationto 100 pages. Yields about a 5% performance increase on common workloads.
[*]
Miscellaneous micro-optimizations result in 22.3% more work for the same number of CPU cycles>
[*] Added the sqlite3_result_zeroblob64() and sqlite3_bind_zeroblob64()interfaces.
重要 bug 修复
[*] Fix CREATE TABLE AS so that columns of type TEXT never end up holding an INT value. Ticket f2ad7de056ab1dc9200
[*] Fix CREATE TABLE AS so that it does not leave NULL entries in the sqlite_master table if the SELECT statement on the right-hand side aborts with an error. Ticket 873cae2b6e25b
[*] Fix the skip-scan optimization so that it works correctly when the OR optimization is used on WITHOUT ROWID tables. Ticket 8fd39115d8f46
[*] Fix the sqlite3_memory_used() and sqlite3_memory_highwater() interfacesso that they actually do provide a 64-bit answer.
Hashes:
[*] SQLITE_SOURCE_ID: "2015-07-27 13:49:41 b8e92227a469de677a66da62e4361f099c0b79d0"
[*] SHA1 for sqlite3.c: 719f6891abcd9c459b5460b191d731cd12a3643e
SQLite是遵守ACID的关联式数据库管理系统,它包含在一个相对小的C库中。它是D.RichardHipp建立的公有领域项目。
不像常见的客户-服务器范例,SQLite引擎不是个程序与之通信的独立进程,而是连接到程序中成为它的一个主要部分。所以主要的通信协议是在编程语言内的直接API调用。这在消耗总量、延迟时间和整体简单性上有积极的作用。整个数据库(定义、表、索引和数据本身)都在宿主主机上存储在一个单一的文件中。它的简单的设计是通过在开始一个事务的时候锁定整个数据文件而完成的。
特征
库实现了多数的SQL-92标准,包括事务,就是代表原子性、一致性、隔离性和持久性的(ACID),触发器和多数的复杂查询。不进行类型检查。你可以把字符串插入到整数列中。例如,某些用户发现这是使数据库更加有用的创新,特别是与无类型的脚本语言一起使用的时候。其他用户认为这是主要的缺点。
多个进程或线程可以访问同一个数据而没有问题。可以并行的满足多个读访问。只有在其他访问当前不被服务的时候才能满足写访问;否则写访问失败并带有一个错误代码(也可以在可配置的超时过期之后自动的重试)。
提供了叫做sqlite的一个独立程序用来查询和管理SQLite数据库文件。 它也充当写使用SQLite库的应用的一个例子。
语言绑定
可以从C/C++程序中使用这个库,还可以获得对Tcl和一些其他脚本语言的绑定。
在CPAN的DBD::SQLite上有一个Perl的DBI/DBD模块,它不是到SQLite的接口,而是包括整个SQLite数据库引擎在其中并不需要任何额外的软件。
还有一个Python模块叫做PySQLite。
PHP从PHP5.0开始包含了SQLite,但是自5.1版之后开始成为一个延伸函式库。SQLite能与PHP4一起工作但不包含在其中。
Rails2.0.3将缺省的数据库配置改为了SQLite 3
SQLite管理客户端
SQLite亦可以作为桌面数据库使用,以下为第三方SQLite的GUI软件。例如,
[*] SQLiteMan,使用QT开发的一个SQLite客户端,支持多语言、跨平台。SQLiteMan
[*] SQLite Manager, 以 火狐浏览器的扩展形式提供的SQLite客户端。
[*] SQLite Database Browser, a graphical client to access SQLite databases
[*] SqlPro SQL Client, another graphical client to work with SQLite databases
在线文档:http://www.ostools.net/apidocs/apidoc?api=sqlite
页:
[1]