Mercurial > prosody-hg
comparison plugins/mod_storage_sql.lua @ 13969:1b300c5a79d7
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 30 Sep 2025 18:20:17 +0200 |
| parents | 758d5d4e83ca b7714c28442f |
| children | f82be93b61a5 |
comparison
equal
deleted
inserted
replaced
| 13968:52e214142ac2 | 13969:1b300c5a79d7 |
|---|---|
| 993 end | 993 end |
| 994 engine:execute("PRAGMA synchronous=EXTRA;") | 994 engine:execute("PRAGMA synchronous=EXTRA;") |
| 995 engine:execute("PRAGMA fullfsync=1;") | 995 engine:execute("PRAGMA fullfsync=1;") |
| 996 end | 996 end |
| 997 | 997 |
| 998 engine:execute(("PRAGMA busy_timeout=%d;"):format(module:get_option_integer("sqlite_busy_timeout_ms", 1000, 0))); | |
| 999 | |
| 998 for row in engine:select[[PRAGMA journal_mode;]] do | 1000 for row in engine:select[[PRAGMA journal_mode;]] do |
| 999 journal_mode = row[1]; | 1001 journal_mode = row[1]; |
| 1000 end | 1002 end |
| 1001 | 1003 |
| 1002 module:log("debug", "SQLite3 database %q operating with journal_mode=%s", engine.params.database, journal_mode); | 1004 module:log("debug", "SQLite3 database %q operating with journal_mode=%s", engine.params.database, journal_mode); |
