HashVirtualTable.h (835B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include <winget/SQLiteStatementBuilder.h> 5 6 #include <string_view> 7 8 using namespace std::string_view_literals; 9 10 11 namespace AppInstaller::Repository::Microsoft::Schema::V1_3 12 { 13 // A virtual table used to add a direct column onto the manifest table. 14 struct HashVirtualTable 15 { 16 // The id type (which is actually the value for this virtual table) 17 using id_t = SQLite::blob_t; 18 19 // The name of the column. 20 static constexpr std::string_view ValueName() 21 { 22 return "hash"sv; 23 } 24 25 // The value type of the column. 26 static constexpr SQLite::Builder::Type SQLiteType() 27 { 28 return SQLite::Builder::Type::Blob; 29 } 30 }; 31 }