remove database vrom VC

This commit is contained in:
2021-04-07 07:50:03 +03:00
parent 0bdfcb7399
commit 7f39ed6025
4 changed files with 16 additions and 1 deletions

2
.gitignore vendored
View File

@@ -361,3 +361,5 @@ MigrationBackup/
# Fody - auto-generated XML schema # Fody - auto-generated XML schema
FodyWeavers.xsd FodyWeavers.xsd
/Files/db.db

View File

@@ -83,6 +83,14 @@ namespace Files {
var sameSize = connection.Query<DbRecord>("SELECT name, size, inode FROM files WHERE size = @size", var sameSize = connection.Query<DbRecord>("SELECT name, size, inode FROM files WHERE size = @size",
new { potentialFile.size }).ToList(); new { potentialFile.size }).ToList();
var unporocessable = sameSize
.Where(r => !r.Hash.HasValue);
foreach (var dbRecord in unporocessable)
{
AnsiConsole.MarkupLine($"[red]:cross_mark: NO_ACCESS:[/] :page_facing_up: {dbRecord.Name.Replace("[", "[[").Replace("]", "]]")}");
}
var equalGrouped = sameSize var equalGrouped = sameSize
.Where(r => r.Hash.HasValue) .Where(r => r.Hash.HasValue)
.GroupBy(r=>r.Hash) .GroupBy(r=>r.Hash)

View File

@@ -2,6 +2,11 @@
"profiles": { "profiles": {
"Files": { "Files": {
"commandName": "Project" "commandName": "Project"
},
"WSL 2": {
"commandName": "WSL2",
"environmentVariables": {},
"distributionName": ""
} }
} }
} }

Binary file not shown.