All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

SQLite Database File Format Specification (Version 3.0.0+)

By

whatisabcdefgh

8mo ago· 68 min readenInsight

Summary

This document defines the on-disk database file format used by all releases of SQLite since version 3.0.0 (2004-06-18). It describes the structure of the main database file, the rollback journal used during transactions, and the write-ahead log (WAL) mode. It also covers the concept of "hot journals" which occur when a crash happens before a transaction completes.

Key quotes

· 3 pulled
The complete state of an SQLite database is usually contained in a single file on disk called the 'main database file'.
During a transaction, SQLite stores additional information in a second file called the 'rollback journal', or if SQLite is in WAL mode, a write-ahead log file.
If the application or host computer crashes before the transaction completes, then the rollback journal or write-ahead log contains...
Snippet from the RSS feed
This document describes and defines the on-disk database file format used by all releases of SQLite since version 3.0.0 (2004-06-18).

You might also wanna read