Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.36 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.36 KB

SQLite3 Representation

SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world, built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day.

The SQLite file format is stable, cross-platform and backwards compatible, the developers pledge to keep it that way through the year 2050.

All that makes it interesting to peek into their on-disk database file format to understand it for software development objective and troubleshooting reasons, as well as to study format of SQLite databases for academic purposes or regular self-education.

Visual

Available at https://torymur.github.io/sqlite-repr/

Map 🗺️

Parser

  • Table Interior Btree page
  • Table Leaf Btree page
  • Index Interior Btree page
  • Index Leaf Btree page
  • Freelist pages
  • Overflow pages
    • Spilled record values
    • Spilled record headers (rare)
  • Pointer map pages
  • Lock-byte page
  • Freeblock & Fragmented bytes

UI

  • Hybrid, Hex, Text field repr
  • Preloaded example databases, details
  • Page View
  • Tree View
  • Reserved space
  • Add yours
  • Console