winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

VirtualTableBase.h (1078B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 
      5 namespace AppInstaller::Repository::Microsoft::Schema::V1_0
      6 {
      7     // Since we have multiple manifest columns pointing to same table now(i.e. versions table), and previous assumption
      8     // is manifest table column always has same name as referenced table column (i.e. manifest.version and versions.version),
      9     // we need to differentiate manifest column name and referenced table column name(i.e. manifest.arp_min_version and versions.version)
     10     // An optional ManifestColumnName() is added to virtual table for the above purpose, and can be used in the future if needed.
     11     // To let the template codes better determine virtual tables, the following struct is created.
     12 
     13     // Struct used as the base for virtual tables.
     14     // Future virtual tables reusing an existing table should derive from this and implement
     15     //    static std::string_view ManifestColumnName();
     16     // in addition to regular table info methods.
     17     struct VirtualTableBase
     18     {
     19     };
     20 }