Chris Trott<p>New blog post: Caveats Using Read-only SQLite Databases from the App Bundle</p><p><a href="https://twocentstudios.com/2025/06/07/sql-databases-bundle/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">twocentstudios.com/2025/06/07/</span><span class="invisible">sql-databases-bundle/</span></a></p><p>A quick debugging story where I learned some new things about SQLite's journal mode while building an database export/import feature for Eki Live.</p><p>TLDR:</p><p>- Journal mode is embedded in the sqlite database file itself.<br>- The `backup` command changes the journal mode of the target database to match the source database.<br>- Check the journal mode of a database with `sqlite3 db.sqlite "PRAGMA journal_mode;"`.<br>- Change the journal mode of a database with `sqlite3 db.sqlite "PRAGMA journal_mode=DELETE;"`.</p><p><a href="https://hachyderm.io/tags/sqlite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlite</span></a> <a href="https://hachyderm.io/tags/grdb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>grdb</span></a></p>