# HG changeset patch # User Kim Alvefur # Date 1689673992 -7200 # Node ID cb6a17eaa0e6b0394931ede23af337b5b64c2433 # Parent 2a9ce229efac66ead387fa54b804d6dd184d1f6f mod_storage_sql: Use config enum for 'sqlite_tune' diff -r 2a9ce229efac -r cb6a17eaa0e6 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Mon Jul 17 04:52:50 2023 +0200 +++ b/plugins/mod_storage_sql.lua Tue Jul 18 11:53:12 2023 +0200 @@ -935,7 +935,7 @@ -- Note: These things can't be changed with in a transaction. LuaDBI -- opens a transaction automatically for every statement(?), so this -- will not work there. - local tune = module:get_option_string("sqlite_tune", "default"); + local tune = module:get_option_enum("sqlite_tune", "default", "normal", "fast", "safe"); if tune == "normal" then if journal_mode ~= "wal" then engine:execute("PRAGMA journal_mode=WAL;");