# SQLite

SQLite SQL database with documented deployment, data preservation and task\-specific substitution limits\.

ID: Q129 · Revision: 113

Type: software · License: Public\-domain dedication for deliverable library and documentation[^sqlite-license] · Status: active

Website: https://www.sqlite.org/



SQLite is an embedded SQL database engine for local application data\. Applications call the library directly rather than sending SQL to a separate database\-server process\. Its architecture therefore differs from shared client\-server systems, even when both expose familiar SQL operations\.[^sqlite-quirks]

## Local storage and concurrency

SQLite supports multiple readers but only one writer at a time for each database file\. Short writes can take turns, making that design useful for many applications\. It is less suitable when independent writers cannot queue, or when several computers access the same database file directly across a network filesystem\. An application server using a local SQLite file is a different arrangement from directly sharing that file\.[^sqlite-use]

## SQL and type portability

Default SQLite tables use flexible typing, while STRICT tables offer a more restrictive option\. Foreign\-key enforcement is off by default unless enabled through the relevant runtime or build setting\. These choices can expose migration surprises when a prototype moves to another engine: accepting a value locally is not evidence that the same schema and data will satisfy the destination's type and constraint rules\.[^sqlite-quirks]

## Consistent backup

The Online Backup API copies database contents into another database and can work incrementally, locking the source only during read intervals rather than throughout a long external file copy\. Its completed output is a consistent snapshot\. This supported mechanism matters when an application remains active: the convenience of a single\-file database does not make every unsynchronized operating\-system copy a valid backup\.[^sqlite-backup]

## Distribution and licensing

SQLite's deliverable library and documentation are dedicated to the public domain\. The copyright page distinguishes those deliverables from some build scripts that have separate open\-source licenses\. This statement describes the engine's own distribution; applications embedding it can have their own licenses, proprietary features and file formats that go beyond the SQLite component\.[^sqlite-license]

## Substitution considerations

SQLite can substitute for [PostgreSQL](/postgresql) for application\-local structured storage when a separate server and high write concurrency are unnecessary\. That is an architectural change, not a drop\-in server replacement\. SQL differences, connection code and data constraints require adaptation\. Where applications instead depend on shared multi\-user access or server\-specific features, the limited local\-storage comparison does not establish suitability\.[^sqlite-use][^sqlite-quirks]

## Capabilities and substitutions

### Embedded SQL storage — supported

Runs inside the application without a separate database server\.[^sqlite-quirks]

Use case: SQL data storage and querying · Platforms: Embedded applications, Desktop, Mobile, Local application servers · Region: Deployment, version, engine and application compatibility apply

### Concurrent writes — limited

One writer at a time per database file; direct multi\-computer network\-file access is discouraged\.[^sqlite-use]

Use case: SQL data storage and querying · Platforms: Embedded applications, Desktop, Mobile, Local application servers · Region: Deployment, version, engine and application compatibility apply

### [Substitute for PostgreSQL](/postgresql) — limited

Assessment: can replace an unnecessary server for local data with queueable writes; requires application and SQL adaptation and does not cover shared\-server features\.[^sqlite-use][^sqlite-quirks]

Use case: Application\-local structured storage · Platforms: Embedded applications, Desktop, Mobile, Local application servers · Region: Deployment, version, engine and application compatibility apply

## References

[^sqlite-license]: [SQLite public\-domain dedication](<https://www.sqlite.org/copyright.html>) — Deliverable library and documentation versus separately licensed build scripts (vendor; retrieved 2026-10-07T02:11:48Z)

[^sqlite-use]: [Appropriate uses for SQLite](<https://www.sqlite.org/whentouse.html>) — Local storage, single writer and direct network filesystem caveats (vendor; retrieved 2026-10-07T02:11:32Z)

[^sqlite-quirks]: [SQLite quirks and portability](<https://www.sqlite.org/quirks.html>) — Embedded architecture, flexible typing, STRICT tables and foreign key defaults (vendor; retrieved 2026-10-07T02:11:32Z)

[^sqlite-backup]: [SQLite Online Backup API](<https://www.sqlite.org/backup.html>) — Incremental consistent snapshot and locking constraints (vendor; retrieved 2026-10-07T02:11:48Z)

Source revision: https://substitutefor.net/entities/Q129?revision=113
