Comments (9)
I think this is a SQLite thing. We have no code regarding these files, it all happens in SQLite. On https://www.sqlite.org/wal.html it says that "the wal-index backing file is deleted when the last database connection disconnects" which is exactly what happens on my system: If I have multiple instances of our application with the same file opened, I can close any of them and the files stay where they are. If I close the last one though, they are deleted.
from sqlitebrowser.
Oh I see. I do notice that when I open the sqlite file again those shm and wal files reappear. Thanks for your answer!
from sqlitebrowser.
Thanks for the feedback. Glad I could help 😃
from sqlitebrowser.
Stupid question, but is there a way to open WAL files directly? I have a .db-wal file I was looking to browse apart from my .db.
Thanks!
from sqlitebrowser.
.db-wal is a temporary file created by the sqlite3 code/library, you cannot directly open such file.
There should be a corresponding sqlite3 db file.
from sqlitebrowser.
Thanks so much for the help, Peinthor! Indeed there is, would this main db reflect the data in the Write-Ahead log before the commit to purge it? If not, is there any way at all to see what this data is before it has been added to the main db?
from sqlitebrowser.
well, kinda. I don't know the implementation details, but I think this WAL file has checkpoints and uncommitted data.
But for details you should read the sqlite3 documentation:
https://www.sqlite.org/wal.html
from sqlitebrowser.
@sammarcus wrote 'stupid question'. With the sole exception of the unasked there is no such thing as a 'stupid question'. Stupid answers however there are unfortunately too many...
Back on-topic: like someone said: by opening more than one session (e.g. more TerminalTabs) one can easily have more WA-L and/or SHM-files and investigate them with any tool/language (Perl is an easy example) capable of handling binary files. With the help of SQLite's doc you're able to analyze them and search for nugs and other reasons of corrupted databases.
"In bocca al lupo",
Klaas
from sqlitebrowser.
@rp- thanks so much for that documentation! I had seen it before but gave it another reread, made some new discoveries. appreciate the link!
@Z4us thank you as well!! I'm just starting out so I always like to preface my beginner questions with that disclaimer but the git community has been so friendly. I got it all figured out.. thanks again!
from sqlitebrowser.
Related Issues (20)
- [Feature]: Option to change # of recently-used files list HOT 4
- [Bug]: Export to CSV HOT 2
- [Feature]: Visualize JSONB as JSON HOT 1
- [Feature]: SQL Query Runing Number Format
- [Bug]: sqlcipher.dll is broken in nightly installer HOT 11
- [Bug]: Popup position of submenus
- [Feature]: Dark Mode support HOT 1
- Execution finished with errors. Result: near "(": syntax error At line 1: HOT 1
- Vewteck HOT 2
- [Bug]: Timezone / UTC HOT 3
- [Feature]: Cursor key handling of selected row
- [Bug]: Export with quotes does not work HOT 2
- [Feature]: Dark Mode HOT 1
- [Feature]: Save plot as SVG
- Error in error log; (21) API called with NULL prepared statement HOT 2
- [Bug]: Changing the display format of a column destroys its sort order HOT 2
- [Bug]: Pin To Taskbar Windows10
- [Bug]: Some UI text don't scale according to font size settings. HOT 3
- [Bug]: Exact filter on COUNT() column doesn't work HOT 10
- [Bug]: Assertion [cpMax <= pdoc->Length()] failed at ../scintilla/src/Editor.cpp 6096 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlitebrowser.