Get the latest tech news

Big Endian's Guide to SQLite Storage


I wanted to learn how databases like SQLite store data under the hood, so Idecided to write some code to inspect the database file. SQLitefamously stores the...

We create a tiny test database and dump all its internal state with hexdump and a small program I wrote called rsqlite. Hexdump is smart enough to avoid duplicate null rows with a single* and make the output readable, so we can share the whole contents inline right here. The blog briefly covers the various types of btree pages in the “Growing a tree” section, but my favorite is when Ben asks “OK, But Why?” and follows up with some simple answers.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Guide

Guide

Photo of sqlite storage

sqlite storage

Photo of big endian

big endian

Related news:

News photo

Deploying Containers on NixOS: A Guide

News photo

A gadget lover’s guide to the great outdoors

News photo

A Guide to Server-Side Rendering