fix(data): probe PRAGMA compile_options next to the SQLite version check

BRIEF §6.2 asks for the probe at startup. The options are read once per process
from an in-memory connection, logged with the library version and added to the
desktop diagnostics bundle; nothing depends on them (no FTS or JSON use).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 09:58:26 +00:00
1 parent 61e61702c6
commit 61d913baa9
3 files changed
+70 -2

No files matched your search

@@ -8,6 +8,7 @@ using Titano.Core.Export;
using Titano.Core.Model;
using Titano.Core.Windows.Codecs;
using Titano.Data;
using Titano.Data.Sqlite;
namespace Titano.App.Infrastructure;
@@ -73,8 +74,15 @@ public static class DiagnosticsBundle
return sb.ToString();
}
private static string DatabaseLine(TitanoDatabase? database) =>
database is null ? "Index not open\n" : string.Create(CultureInfo.InvariantCulture, $"Index schema {database.SchemaVersion}\n");
private static string DatabaseLine(TitanoDatabase? database)
{
if (database is null) return "Index not open\n";
var line = string.Create(CultureInfo.InvariantCulture, $"Index schema {database.SchemaVersion}\n");
// The SQLite build's options (BRIEF §6.2) explain behaviour differences between Windows versions.
return database.Database is SqliteDatabase
? line + $"SQLite {SqliteDatabase.LibraryVersion}; compile options: {string.Join(' ', SqliteDatabase.CompileOptions)}\n"
: line;
}
/// <summary>Graphics adapter, video encoders, WIC decoders per format and missing Store extensions.</summary>
private static string Codecs(IEncoderInventory encoders)