github.com/matrixorigin/matrixone@v1.2.0/pkg/vm/engine/tae/db/operations.proto (about)

     1  /*
     2   * Copyright 2021 Matrix Origin
     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  package db;
    19  
    20  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
    21  
    22  option (gogoproto.sizer_all)                = false;
    23  option (gogoproto.protosizer_all)           = true;
    24  option (gogoproto.goproto_enum_prefix_all)  = false;
    25  option (gogoproto.goproto_unrecognized_all) = false;
    26  option (gogoproto.goproto_unkeyed_all)      = false;
    27  option (gogoproto.goproto_sizecache_all)    = false;
    28  
    29  message AccessInfo {
    30      option (gogoproto.typedecl) = false;
    31      uint32 AccountID            = 1;
    32      uint32 UserID               = 2;
    33      uint32 RoleID               = 3;
    34  }
    35  
    36  message CreateDatabaseReq {
    37      option (gogoproto.typedecl) = false;
    38      AccessInfo AccessInfo       = 1 [(gogoproto.nullable) = false];
    39      string name                 = 2;
    40      string CreateSql            = 3;
    41      uint64 DatabaseId           = 4;
    42  }
    43  
    44  message FlushTable {
    45      option (gogoproto.typedecl) = false;
    46      AccessInfo AccessInfo       = 1 [(gogoproto.nullable) = false];
    47      uint64 DatabaseID           = 2;
    48      uint64 TableID              = 3;
    49  }
    50  
    51  message Checkpoint {
    52      option (gogoproto.typedecl) = false;
    53      int64 FlushDuration         = 1 [(gogoproto.casttype) = "time.Duration"];
    54  }
    55  
    56  message InterceptCommit {
    57      option (gogoproto.typedecl) = false;
    58      string TableName             = 1;
    59  }
    60  
    61  message InspectTN {
    62      option (gogoproto.typedecl) = false;
    63      AccessInfo AccessInfo       = 1 [(gogoproto.nullable) = false];
    64      string Operation            = 2;
    65  }
    66  
    67  message InspectResp {
    68      option (gogoproto.typedecl) = false;
    69      int32 Typ                   = 1 [(gogoproto.casttype) = "int"];
    70      string Message              = 2;
    71      bytes Payload               = 3;
    72  }
    73  
    74  message CatalogResp {
    75      option (gogoproto.typedecl) = false;
    76      string Item                 = 1;
    77      repeated CatalogResp Sub    = 2;
    78  }
    79  
    80  message FaultPoint {
    81      option (gogoproto.typedecl) = false;
    82      string Name                 = 1;
    83      string Freq                 = 2;
    84      string Action               = 3;
    85      int64 Iarg                  = 4;
    86      string Sarg                 = 5;
    87  }
    88  
    89  message TraceSpan {
    90      option (gogoproto.typedecl) = false;
    91      string cmd                  = 1;
    92      string spans       = 2;
    93      int64 threshold = 3;
    94  }
    95  
    96  message BlockMetaInfo {
    97      option (gogoproto.typedecl)     = false;
    98      repeated uint64 info            = 1;
    99  }
   100  
   101  message CkpMetaInfo {
   102      option (gogoproto.typedecl)     = false;
   103      uint32 version                  =1;
   104      bytes location                 =2;
   105  }
   106  
   107  message StorageUsageResp_V0 {
   108      option (gogoproto.typedecl)     = false;
   109      bool Succeed                    = 1;
   110      repeated CkpMetaInfo CkpEntries = 2;
   111      repeated BlockMetaInfo BlockEntries   = 3;
   112  }
   113  
   114  message StorageUsageReq {
   115      option (gogoproto.typedecl) = false;
   116      repeated int32 AccIds = 1;
   117  }
   118  
   119  message StorageUsageResp {
   120      option (gogoproto.typedecl)     = false;
   121      bool Succeed                    = 1;
   122      repeated int32 AccIds           = 2;
   123      repeated uint64 Sizes            = 3;
   124      uint64 Magic                    = 4;
   125  }