software · Q129
SQLite
SQLite SQL database with documented deployment, data preservation and task-specific substitution limits.
Overview
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.[3]
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.[2]
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.[3]
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.[4]
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.[1]
Substitution considerations
SQLite can substitute for 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.[2][3]
Capabilities & limitations
Embedded SQL storage
supportedRuns inside the application without a separate database server.[3]
SQL data storage and querying · Embedded applications, Desktop, Mobile, Local application servers · Deployment, version, engine and application compatibility apply
1 source · check evidence
Embedded architecture, flexible typing, STRICT tables and foreign key defaults
vendor · checked 2026-10-07Concurrent writes
limitedOne writer at a time per database file; direct multi-computer network-file access is discouraged.[2]
SQL data storage and querying · Embedded applications, Desktop, Mobile, Local application servers · Deployment, version, engine and application compatibility apply
1 source · check evidence
Local storage, single writer and direct network filesystem caveats
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
PostgreSQL for Application-local structured storage
limitedAssessment: can replace an unnecessary server for local data with queueable writes; requires application and SQL adaptation and does not cover shared-server features.[2][3]
Embedded applications, Desktop, Mobile, Local application servers · Deployment, version, engine and application compatibility apply
References
- SQLite public-domain dedication
Deliverable library and documentation versus separately licensed build scripts
vendor · retrieved 2026-10-07 - Appropriate uses for SQLite
Local storage, single writer and direct network filesystem caveats
vendor · retrieved 2026-10-07 - SQLite quirks and portability
Embedded architecture, flexible typing, STRICT tables and foreign key defaults
vendor · retrieved 2026-10-07 - SQLite Online Backup API
Incremental consistent snapshot and locking constraints
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 113 | 2026-10-09 05:17:06 | /* wbeditentity-create-item:0| */ sf:a2e82c60-cae0-483e-ad10-6103a3dd6848:v1 | Add SQLite with cited database workflows, licensing, concurrency and migration boundaries; no installation or testing performed. | attribution: /proposals/a2e82c60-cae0-483e-ad10-6103a3dd6848 |