public static void PreLoadDatabase() { if (!DBFileExists) { SQLiteConnection.CreateFile(SqliteDataAccess.LoadDatabaseName()); } SqliteDataAccess.BuildTable(); DirectorySearch(); WriteToDatabase(); }
private static void DatabaseProcessing() { Log.Write.Info("Database update now pending"); Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); Data.UpdatePending = true; SqliteDataAccess.ClearTable(); SqliteDataAccess.BuildTable(); WriteToDatabase(); Data.UpdatePending = false; stopwatch.Stop(); Log.Write.Info($"Database updated [Pending for {stopwatch.Elapsed.Seconds}.{stopwatch.Elapsed.Milliseconds} seconds]"); }