@using TightWiki.Models @model TightWiki.Models.ViewModels.Admin.DatabaseViewModel @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }
Various utilities to assist in management of the SQLite database.
@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {| Name | Version | Size | Action |
| @info.Name | @info.Version | @NTDLS.Helpers.Formatters.FileSize((long)info.DatabaseSize) | @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateSafeLink(GlobalConfiguration.BasePath, "This will optimize the database indexes and structure. Continue?", "Optimize", $"/Admin/Database/Optimize/{info.Name}", Context.Request.Path.Value)) @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateSafeLink(GlobalConfiguration.BasePath, "This will remove empty space from the database, which can free space if a lot of data has been deleted. Continue?", "Vacuum", $"/Admin/Database/Vacuum/{info.Name}", Context.Request.Path.Value)) @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateSafeLink(GlobalConfiguration.BasePath, "This will check the database integrity and validate all foreign keys. Continue?", "Verify", $"/Admin/Database/Verify/{info.Name}", Context.Request.Path.Value)) |