Your application is small enough that a database server feels like overkill, yet the tutorials stop long before the problems start: locked errors under load, foreign keys that were never enforced, a write-ahead log that grows without end, and a backup that will not restore. This book is an operating manual for running a single file in production. It shows how to design strict schemas, configure every connection correctly, use write-ahead logging, arrange readers and writers around the one-writer rule, migrate safely, and back up and restore a live database. A worked example follows a fictional small shop from its first decision to the day it outgrows the file. You finish with checklists, a troubleshooting table and a clear rule for when one file is enough.
Your application is small enough that a database server feels like overkill, yet the tutorials stop long before the problems start: locked errors under load, foreign keys that were never enforced, a write-ahead log that grows without end, and a backup that will not restore. This book is an operat...