**SQLite特性:
**
- 事务是原子的,一致的,独立的,持久的(ACID),即使在使系统崩溃或掉电之后。
- 零配置——无需安装或管理。
- 实现了SQL92标准的绝大部分。(未能支持的特性)
- 将一个完整的数据库存储在一个单一的跨平台磁盘文件上。
- 支持TB级的数据库和GB级的字符串和二进制大对象。(请见limits.html)
- 代码轻巧:完全配置小于350KB;省略部分特性,可小于200KB。
- 对大部分常见的操作,快于流行的C/S数据库引擎。
- API简单,易用。
- 用ANSI-C所写。与命令行工具相结合。对其他语言的支持单独可用。
- 源代码良好注释,分支测试覆盖率达100%。
- 单一的ANSI-C形式的源代码可用,可以简单地拖放到其他项目当中。
- 自包含:没有外部依赖。
- 跨平台:直接支持Unix (Linux and Mac OS X), OS/2, 和Windows (Win32 and WinCE);可以很容易地移植到其他操作系统。
- 源代码在公共知识域中,可用于任何目的。(不过“May you do good and not evil. ”——愿你做好事,不要做坏事。)
- 附带一个独立的命令行界面客户端,可用于管理SQLite引擎。
**SQLite建议应用场合:
**
- 作为应用文件格式。在应用中使用SQLite,而不是使用fopen()来生成XML文件或某些专有格式的文件来存储数据。这样你将避免额外写一个问题重重的分析器,你的数据将变得更加容易访问,更加跨平台,更新操作将具备事务性。
- 作为小电子器件的数据库。SQLite是手机、PDA、MP3、机顶盒以其其他小电子器件常用的数据库引擎。SQLite代码轻巧,能充分利用内存空间、磁盘空间以及带宽;高度可靠,并且无需数据库管理的维护。
- 作为网站数据库。因为它无需配置,将信息存储在磁盘文件上,SQLite是支撑中小型网站数据存储受欢迎的选择。
- 企业RDBMS的代用品。SQLite常被用作用于演示与测试目的的企业RDBMS的借用品。SQLite速度快,无需配置,使得它为测试省去很多事,也很容易搭建演示系统。
转载请注明:Linux人社区> 英文资讯翻译专版.编译
英文原文:
Features Of SQLite
- Transactions are atomic, consistent, isolated, and durable (ACID) even after system crashes and power failures.
- Zero-configuration - no setup or administration needed.
- Implements most of SQL92. (Features not supported)
- A complete database is stored in a single cross-platform disk file.
- Supports terabyte-sized databases and gigabyte-sized strings and blobs. (See limits.html.)
- Small code footprint: less than 350KiB fully configured or less than 200KiB with optional features omitted.
- Faster than popular client/server database engines for most common operations.
- Simple, easy to use API.
- Written in ANSI-C. TCL bindings included. Bindings for dozens of other languages available separately.
- Well-commented source code with 100% branch test coverage.
- Available as a single ANSI-C source-code file that you can easily drop into another project.
- Self-contained: no external dependencies.
- Cross-platform: Unix (Linux and Mac OS X), OS/2, and Windows (Win32 and WinCE) are supported out of the box. Easy to port to other systems.
- Sources are in the public domain. Use for any purpose.
- Comes with a standalone command-line interface (CLI) client that can be used to administer SQLite databases.
Suggested Uses For SQLite:
- **Application File Format.**Rather than using fopen() to write XML or some proprietary format intodisk files used by your application, use an SQLite database instead.You'll avoid having to write and troubleshoot a parser, your data will be more easily accessible and cross-platform, and your updates will be transactional.
- **Database For Gadgets.**SQLite is popular choice for the database engine in cellphones,PDAs, MP3 players, set-top boxes, and other electronic gadgets.SQLite has a small code footprint, makes efficient use of memory,disk space, and disk bandwidth, is highly reliable, and requiresno maintenance from a Database Administrator.
- **Website Database.**Because it requires no configuration and stores information in ordinarydisk files, SQLite is a popular choice as the database to back smallto medium-sized websites.
- **Stand-in For An Enterprise RDBMS.**SQLite is often used as a surrogate for an enterprise RDBMS for demonstration purposes or for testing. SQLite is fast and requires no setup, which takes a lot of the hassle out of testing and which makes demos perky and easy to launch.