Bohdan
02/03/2022, 12:01 AMkpgalligan
02/03/2022, 12:10 AMappDb
and appDb-wal
, though. When modifying the db, the *-wal file is updated (“wal” stands for “write ahead log”). Any tool you’re using to read the db file should be using the sqlite process under the hood, and understand how to look at the core db file and the wal.kpgalligan
02/03/2022, 12:11 AMappDb
is where the db data lives, but db data mods are written to the appDb-wal
file until a threshold is reached and they are copied into the main file. This happens for reasons related to transactions, etc. https://sqlite.org/wal.htmlkpgalligan
02/03/2022, 12:12 AMkpgalligan
02/03/2022, 12:12 AMappDb
Bohdan
02/03/2022, 12:52 AMkpgalligan
02/03/2022, 1:34 PMBohdan
02/03/2022, 1:38 PMkpgalligan
02/03/2022, 1:42 PMBohdan
02/03/2022, 1:47 PMkpgalligan
02/03/2022, 1:48 PMSo i need to close connection to db after transaction ?Definitely not
kpgalligan
02/03/2022, 1:49 PMkpgalligan
02/03/2022, 1:50 PMkpgalligan
02/03/2022, 1:51 PMkgalligan@Kevins-MacBook-Pro databases % ls -lA
total 136
-rw-r--r-- 1 kgalligan staff 4096 Feb 3 08:50 KampkitDb
-rw-r--r-- 1 kgalligan staff 32768 Feb 3 08:50 KampkitDb-shm
-rw-r--r-- 1 kgalligan staff 28872 Feb 3 08:50 KampkitDb-wal
kgalligan@Kevins-MacBook-Pro databases % sqlite3 KampkitDb
SQLite version 3.32.3 2020-06-18 14:16:19
Enter ".help" for usage hints.
sqlite> select * from Breed limit 2;
1|affenpinscher|0
2|african|0
sqlite> .exit
kgalligan@Kevins-MacBook-Pro databases % ls -lA
total 96
-rw-r--r-- 1 kgalligan staff 16384 Feb 3 08:51 KampkitDb
-rw-r--r-- 1 kgalligan staff 32768 Feb 3 08:51 KampkitDb-shm
-rw-r--r-- 1 kgalligan staff 0 Feb 3 08:51 KampkitDb-wal
kgalligan@Kevins-MacBook-Pro databases %
kpgalligan
02/03/2022, 1:52 PMkpgalligan
02/03/2022, 1:53 PMsqlite3 KampkitDb
. It sees all of the data in the wal as well. It’s not weird that the data is in the wal, but you open the main db file.Bohdan
02/03/2022, 1:54 PMkpgalligan
02/03/2022, 1:54 PMBohdan
02/03/2022, 1:55 PMkpgalligan
02/03/2022, 1:57 PMkpgalligan
02/03/2022, 1:58 PMkpgalligan
02/03/2022, 1:59 PMBohdan
02/03/2022, 1:59 PMkpgalligan
02/03/2022, 2:00 PMkpgalligan
02/03/2022, 2:00 PM