SQLite
Dan Tobias (Talk | contribs) (→Introduction) |
Dan Tobias (Talk | contribs) (→Resources) |
||
Line 15: | Line 15: | ||
* [http://www.sqlite.org/fileformat.html SQLite.org: The SQLite Database File Format] | * [http://www.sqlite.org/fileformat.html SQLite.org: The SQLite Database File Format] | ||
* [http://www.sqlite.org/draft/wal.html Write-Ahead Logging] | * [http://www.sqlite.org/draft/wal.html Write-Ahead Logging] | ||
+ | * [https://www.sqlite.org/howtocorrupt.html How To Corrupt An SQLite Database File] | ||
[[category:File formats with extension .db]] | [[category:File formats with extension .db]] | ||
[[category:SQL]] | [[category:SQL]] |
Revision as of 23:49, 5 October 2013
Introduction
SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. The code for SQLite is in the public domain and is thus free for use for any purpose, commercial or private.
Write-Ahead Logging
Some versions of SQLite use write-ahead logging to store new changes to the database before they are written to the main database file, allowing a rollback of the current set of changes before they are committed. Database access uses both files to get the latest changed version even if part of it is still in the "WAL" file. This file is a separate file from the main database, using -wal at the end of the file extension so that it becomes .db-wal or .sqlite-wal. Also, a shared-memory file is often used for a hash-table index of the write-ahead log, with a .db-shm or .sqlite-shm extension.