storage/shared/
mod.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5// These pragmas need to be set once
6pub const DB_INIT_PRAGMAS: [&str; 2] =
7    ["PRAGMA journal_mode = WAL;", "PRAGMA encoding = 'UTF-16';"];
8
9// These pragmas need to be run once per connection.
10pub const DB_PRAGMAS: [&str; 4] = [
11    "PRAGMA synchronous = NORMAL;",
12    "PRAGMA journal_size_limit = 67108864 -- 64 megabytes;",
13    "PRAGMA mmap_size = 67108864 -- 64 megabytes;",
14    "PRAGMA cache_size = 2000;",
15];