1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "sql/sql_features.h"
7 namespace sql::features {
9 // When enabled, the `Database::is_open()` method return false for poisoned
11 // TODO(https://crbug.com/1441955): Remove this flag eventually.
12 BASE_FEATURE(kConsiderPoisonedDatabasesClosed,
13 "ConsiderPoisonedDatabasesClosed",
14 base::FEATURE_ENABLED_BY_DEFAULT);
16 // Enable WAL mode for all SQLite databases.
17 BASE_FEATURE(kEnableWALModeByDefault,
18 "EnableWALModeByDefault",
19 base::FEATURE_DISABLED_BY_DEFAULT);
21 // When enabled, `sql::BuiltInRecovery` can be used if it's supported. See
22 // https://crbug.com/1385500.
24 // This is an overarching kill switch which overrides any database-specific
25 // flag. See `sql::BuiltInRecovery::RecoverIfPossible()` for more context.
26 BASE_FEATURE(kUseBuiltInRecoveryIfSupported,
27 "UseBuiltInRecoveryIfSupported",
28 base::FEATURE_ENABLED_BY_DEFAULT);
30 } // namespace sql::features