talira

Small. Fast. Reliable. Choose any three.

open sourceblessingself-hostablefree

SQLite is an embedded SQL database engine: a library linked into the application that reads and writes an ordinary file, with no separate server process and no configuration. A whole database (tables, indexes, triggers, views) is one cross-platform file, and transactions are ACID even after power loss. It is the most widely deployed database engine, built into phones, browsers and operating systems, and its source is in the public domain.

Ways to install

Problems it solves

  • I need a database for a small app and don't want to run a server
  • store data in a single file I can copy, email or back up
  • a local database inside my desktop or mobile app
  • my CLI tool needs to keep structured state between runs
  • run SQL queries over data without setting up Postgres
  • a file format for app data that will still open in 30 years
  • tests need a database that starts instantly with no setup
  • a database that runs in the browser with WebAssembly
  • cache data on an embedded device or IoT box with very little memory
  • use SQL instead of a pile of JSON files for my app's data
  • a database I can ship inside a commercial product with no licence to worry about

Features

  • single-file database
  • no server process
  • zero configuration
  • ACID transactions
  • full SQL
  • stable cross-platform file format
  • WebAssembly build
  • command-line shell

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Forks

  • libSQL Open source, open contribution fork of SQLite by Turso. Its own project since 2022.

Alternatives

The same job

These do what SQLite does.

  1. PGlite Embeddable Postgres: run a full Postgres database locally in WASM with reactivity and live sync
  2. PostgreSQL A powerful, open source object-relational database system
  3. DuckDB An in-process analytical SQL database that queries CSV, JSON, Parquet and Iceberg files directly, from a laptop to a large server.
  4. libSQL Open source, open contribution fork of SQLite by Turso
  5. MySQL The world's most popular open source database
  6. Turso Database An in-process SQL database written in Rust, compatible with SQLite, now with a Postgres frontend too

Compare SQLite with the top 3