1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add compile-time options SQLITE_DEFAULT_SYNCHRONOUS and

SQLITE_DEFAULT_WAL_SYNCHRONOUS used to specify the default synchronous
settings for all database connections.

FossilOrigin-Name: 1fefa967aa93372d232b96b1e0232b7b855d6d00
This commit is contained in:
drh
2016-03-08 14:40:11 +00:00
parent 6702f761ea
commit 50a1a5aaca
6 changed files with 26 additions and 13 deletions

View File

@@ -2878,7 +2878,7 @@ static int openDatabase(
** database it is OFF. This matches the pager layer defaults.
*/
db->aDb[0].zName = "main";
db->aDb[0].safety_level = PAGER_SYNCHRONOUS_FULL;
db->aDb[0].safety_level = SQLITE_DEFAULT_SYNCHRONOUS;
db->aDb[1].zName = "temp";
db->aDb[1].safety_level = PAGER_SYNCHRONOUS_OFF;