TechnologyEmbedded database engine

SQLite

Small, self-contained, serverless SQL database engine in the public domain that is embedded in phones, browsers and many other applications.

SQLite is a relational database engine distributed as a C library that applications embed directly, instead of running as a separate server process. An entire database, including tables, indexes and schema, is stored in a single cross-platform file. It requires no configuration or administration, implements most of the SQL standard and provides ACID transactions, so data remains consistent even if a program crashes or power fails mid-write. Its source code is in the public domain.

D. Richard Hipp created SQLite in 2000 while working on software for a US Navy guided-missile destroyer, where he needed a database that would work without a server administrator. It is developed by a small team that does not accept outside code contributions, a policy that keeps the provenance of its public-domain code clear. The project is known for exceptionally thorough testing, with test code far exceeding the library itself in size, and the developers have pledged to support the file format through 2050.

SQLite is likely the most widely deployed database engine in the world: it is built into Android and iOS, major web browsers, operating systems and a vast range of applications that store settings, messages and caches. Its file format is recommended by the US Library of Congress for preserving datasets. It is not designed for many concurrent writers or as a network server, roles better served by systems such as PostgreSQL, but for local and embedded storage it is often the simplest reliable choice.

Key points

  • SQLite stores an entire database in a single file and runs inside the application using it.
  • D. Richard Hipp created SQLite in 2000.
  • Its source code is in the public domain, and the project does not accept outside code contributions.
  • SQLite is built into Android, iOS and major web browsers.

Related entries

Glossary term

Database

Programming

Organized collection of structured data stored electronically and managed by software that lets users store, query and update it reliably.

Glossary term

SQL

Programming

Declarative language for defining, querying and modifying data in relational databases, standardized by ANSI and ISO since the 1980s.

Glossary term

ACID

Programming

Set of four properties, atomicity, consistency, isolation and durability, that guarantee database transactions are processed reliably.

Glossary term

Public Domain

FOSSIdeas and Culture

Body of creative works and knowledge not protected by exclusive intellectual property rights, free for anyone to use without permission.

Technology

PostgreSQL

ProgrammingFOSS

Free and open-source object-relational database system known for reliability, standards compliance and extensibility, descended from Berkeley's POSTGRES.

Technology

C

ProgrammingHardware

General-purpose programming language created by Dennis Ritchie at Bell Labs in the early 1970s, foundational for operating systems and embedded software.

Glossary term

Embedded System

HardwareProgramming

Computer system with a dedicated function built into a larger device, often with limited resources and strict timing or reliability requirements.