- SQLite
infobox software
caption =
developer =D. Richard Hipp
latest release version = 3.6.3
latest release date = release date|2008|09|22
latest_preview_version =
latest_preview_date =
operating system =Cross-platform
programming_language = C
genre =database management system
license =Public domain
website = http://sqlite.org/SQLite is a mostly
ACID -compliantrelational database management system contained in a relatively small (~500kB) C programming library.Unlike
client-server database management systems, the SQLite engine is not a standalone process with which the program communicates. Instead, the SQLite library is linked in and thus becomes an integral part of the program. The program uses SQLite's functionality through simple function calls, which reduces latency in database access as function calls are more efficient thaninter-process communication . The entire database (definitions, tables, indices, and the data itself) is stored as a single cross-platform file on a host machine. This simple design is achieved by locking the entire database file at the beginning of a transaction.SQLite was created by
D. Richard Hipp , who sells training, direct technical support contracts and add-ons such as compression and encryption. Thesource code for SQLite is in thepublic domain .Features
SQLite implements most of the
SQL-92 standard forSQL , includingdatabase transaction s that are atomic, isolated, and durable (three of theACID requirements). SQLite supports triggers and most complex queries. SQLite silently ignoresreferential integrity constraints (foreign key constraints) [ [http://www.sqlite.org/omitted.html SQL Features That SQLite Does Not Implement ] ] , so does not satisfy a common consistency requirementFact|date=July 2008.SQLite uses an unusual
type system for an SQL DBMS. Instead of assigning a type to a column as in most SQL database systems, types are assigned to individual values; in language terms it is "dynamically typed". Moreover, it is "weakly typed" in some of the same ways that Perl is: one can insert a string into aninteger column (although SQLite will try to convert the string to an integer first, if the column's preferred type is integer). This adds flexibility to columns, especially when bound to a dynamically typed scripting language. However, the technique is not portable to other SQL databases. The inability to have strictly typed columns, as in typical databases, is a common criticism. The SQLite web site describes a "strict affinity" mode, but this feature has not yet been added. [cite web|url=http://www.sqlite.org/faq.html|title=Sqlite FAQ]Several
computer process es or threads may access the same database without problems. Several read accesses can be satisfied in parallel. A write access can only be satisfied if no other accesses are currently being serviced, otherwise the write access fails with anerror code (or can automatically be retried until a configurable timeout expires). This concurrent access situation would change when dealing with temporary tables.A standalone program called sqlite3 is provided which can be used to create a database, define tables within it, insert and change rows, run queries and manage an SQLite database file. This program is a single executable file on the host machine. It also serves as an example for writing applications that use the SQLite library.
SQLite also has bindings for a large number of
programming language s, includingBASIC , C,C++ ,Common Lisp , Java, C#, Delphi,Curl , Lua,Tcl , R,PHP ,Perl , Ruby,Objective-C (onMac OS X ), Python,newLisp andSmalltalk . There is also a COM (ActiveX ) wrapper making SQLite accessible on Windows to scripted languages such asJavascript andVBScript . This adds database capabilities to HTML Applications (HTA). [cite web|url=http://www.sqlite.org/cvstrac/wiki?p=SqliteWrappers|title=Sqlite Wrappers|work=SQLite CVSTrac]High-profile deployment
SQLite's developers present a case for SQLite being the most widely deployed SQL database based on some of the more widely-deployed products known to be using SQLite. [ [http://sqlite.org/mostdeployed.html SQLite: Most Widely Deployed SQL Database ] ] These include:
* 125 million copies in
Mozilla Firefox .
* 20 millionMac OS X computers, each of which contains multiple copies of SQLite. (InMac OS X v10.4 Apple introduced SQLite as a persistence layer of theCore Data API .)
* 300 million downloads ofSkype . (The Skype service has 100 million registered users.)
* An estimated 20 million Symbian phones with SQLite. (Newer versions of Symbian OS have SQLite built-in.)
* EveryiPhone andiPod touch .ee also
*
List of relational database management systems
*Comparison of relational database management systems
*SQLite Manager
*SQLPro SQL Client Further reading
*
* [http://souptonuts.sourceforge.net/readme_sqlite_tutorial.html SQLite Tutorial] An article exploring the power and simplicity of SQLite.References
External links
* [http://www.sqlite.org/ SQLite home page]
* [http://www.linuxformat.co.uk/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=19 "Linux Format" interview with Richard Hipp]
*
* [http://technology.guardian.co.uk/weekly/story/0,,2107239,00.html "Guardian" interview with Richard Hipp]
* [http://www.twit.tv/floss26 FLOSS Weekly audio interview with Richard Hipp]
Wikimedia Foundation. 2010.