Web apps & software

What is SQLite?

SQLite is a lightweight SQL database engine that runs inside your application and keeps everything in a single file, so there is no separate database server to install, secure or manage.

Where it shines

SQLite sits inside every Android and iOS device, in web browsers and in countless desktop programs. A mobile app uses it to store trips, drafts and cached data for offline use. It also suits tests, prototypes, small internal tools and configuration storage.

Where it does not fit

Only one writer can change the file at a time, and there is no built-in network access. A busy web application with many concurrent users editing data belongs on PostgreSQL or MySQL. Putting the file on a shared network drive is asking for corruption.

Handy facts

  • Backups can be as simple as copying the file while idle or using the backup command.
  • Write-ahead logging mode improves concurrent reads during writes.
  • Developers often test against SQLite and deploy on PostgreSQL, which can hide differences in behavior, so test on the real engine before release.

Questions, answered

For single-user apps, embedded devices and low-write sites, yes. For multi-user servers choose a client-server database.

Yes, most of standard SQL, with a few quirks such as flexible column typing.

By the Stegnor team · Updated