LCOV - code coverage report
Current view: top level - package/prefixdb/api - del.hpp (source / functions) Hit Total Coverage
Test: wfc_prefixdb-coverage.info Lines: 0 2 0.0 %
Date: 2019-06-26 Functions: 0 6 0.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include <prefixdb/api/common_status.hpp>
       4             : #include <prefixdb/api/fields.hpp>
       5             : #include <memory>
       6             : #include <string>
       7             : 
       8             : namespace wamba { namespace prefixdb {
       9             : 
      10             : namespace request
      11             : {
      12           0 :   struct del
      13             :   {
      14             :     bool sync = false;
      15             :     bool nores = true; // < [true] не нужен результат, noval игнорируется
      16             :     bool noval = true; // < [true] если false - вернуть значения удаленных полей
      17             :     std::string prefix;
      18             :     key_list_t fields;
      19             :     // Только для noval=false, пишет в базу, а значение из snapshot_id
      20             :     size_t snapshot = 0;
      21             :     typedef std::unique_ptr<del> ptr;
      22             :   };
      23             : }
      24             : 
      25             : namespace response
      26             : {
      27           0 :   struct del
      28             :   {
      29             :     common_status status = common_status::OK ;
      30             :     std::string prefix;
      31             :     field_list_t fields;
      32             : 
      33             :     typedef std::unique_ptr<del> ptr;
      34             :     typedef std::function< void(ptr) > handler;
      35             :   };
      36             : 
      37             : }
      38             : 
      39             : }}

Generated by: LCOV version 1.10