NEW
Also known as: Embedded Database, Lightweight DB
Self-contained, file-based SQL database engine library embedded within applications.
DESCRIPTION
SQLite is a serverless relational database packaged as a C library that stores data in a single file. It supports ACID transactions, standard SQL, and cross-platform portability. Widely used in mobile apps, browsers, embedded devices, and small services, it minimizes operational overhead. Concurrency is limited compared to client-server databases, making it ideal for local persistence and edge scenarios. Its simplicity and reliability make it pervasive in modern software.
ALTERNATIVE DEFINITIONS
SQLite
SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.
Highlights serverless design, reliability, and full SQL support.
Wikipedia
SQLite is a relational database management system (RDBMS) contained in a C library.
Emphasizes its nature as an embedded RDBMS in a C library.
RELATED TERMS
MySQL ACID SQL Relational Database File-based Storage Mobile Storage Object-Relational Mapping Java Database Connectivity
COMPETING TERMS
RELATIONS
- Conforms to: Java Database Connectivity
KNOWLEDGE AREAS
Data Services Data Storage & Operations Platform & Tooling Data Engineering
TARGET AUDIENCE
Software Developer Data Engineer BI Specialist Data Analyst Cloud Architect
EXTERNAL SOURCES
- Wikipedia - SQLite
- SQLite - Comprehensive official documentation
- Android Developers - Using SQLite on Android
- SQLite - Use cases and design philosophy
- PostgreSQL - Contrast with client-server RDBMS
TOP QUESTIONS
Why choose SQLite over client-server databases?
SQLite is zero-dependency, file-based, and fast for local storage. It eliminates ops overhead and suits embedded or mobile applications.
Category: Relevancy
What are the limitations of SQLite?
Concurrency and write scalability are limited. It lacks server-side features like roles and advanced replication.
Category: Risk
Is SQLite ACID compliant?
Yes, it provides atomic, consistent, isolated, and durable transactions via journaling and WAL modes.
Category: Requirements
How is data stored in SQLite?
SQLite stores a complete database in a single cross-platform file. Schema and data are portable across environments.
Category: Example
When is SQLite not a good fit?
High-concurrency, multi-user, and complex access control scenarios. Choose client-server RDBMS for those needs.
Category: Opinion
How to scale beyond SQLite?
Shard by file, use replication at the application layer, or migrate to PostgreSQL/MySQL for robust concurrency.
Category: Alternatives
Is SQLite suitable for analytics?
For small datasets and embedded use, yes. For columnar analytics, DuckDB or data warehouses are better choices.
Category: Opinion
How to secure SQLite databases?
Encrypt files, manage filesystem permissions, and avoid hardcoded secrets. Consider SQLCipher for transparent encryption.
Category: Security
Where to start learning SQLite?
Use official docs, try the CLI, and experiment with schemas, indexes, and WAL. Practice embedding in a sample app.
Category: Getting-Started