github.com/myafeier/fabric@v1.0.1-0.20170722181825-3a4b1f2bce86/protos/ledger/queryresult/kv_query_result.proto (about)

     1  /*
     2  Copyright IBM Corp. 2017 All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8           http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  syntax = "proto3";
    18  
    19  package queryresult;
    20  
    21  option go_package = "github.com/hyperledger/fabric/protos/ledger/queryresult";
    22  option java_package = "org.hyperledger.fabric.protos.ledger.queryresult";
    23  
    24  import "google/protobuf/timestamp.proto";
    25  
    26  
    27  // KV -- QueryResult for range/execute query. Holds a key and corresponding value.
    28  message KV {
    29      string namespace = 1;
    30      string key = 2;
    31      bytes value = 3;
    32  }
    33  
    34  // KeyModification -- QueryResult for history query. Holds a transaction ID, value,
    35  // timestamp, and delete marker which resulted from a history query.
    36  message KeyModification {
    37      string tx_id = 1;
    38      bytes value = 2;
    39      google.protobuf.Timestamp timestamp = 3;
    40      bool is_delete = 4;
    41  }