pg_catalog.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. package NYql.NProto;
  2. option java_package = "ru.yandex.yql.proto";
  3. import "yql/essentials/protos/pg_ext.proto";
  4. message TPgType {
  5. optional uint32 TypeId = 1;
  6. optional string Name = 2;
  7. optional uint32 ExtensionIndex = 3;
  8. optional uint32 ArrayTypeId = 4;
  9. optional uint32 Category = 5;
  10. optional int32 TypeLen = 6;
  11. optional bool PassByValue = 7;
  12. optional uint32 TypeAlign = 8;
  13. optional uint32 ElementTypeId = 9;
  14. optional uint32 InFuncId = 10;
  15. optional uint32 OutFuncId = 11;
  16. optional uint32 SendFuncId = 12;
  17. optional uint32 ReceiveFuncId = 13;
  18. optional uint32 TypeModInFuncId = 14;
  19. optional uint32 TypeModOutFuncId = 15;
  20. optional uint32 TypeSubscriptFuncId = 16;
  21. optional uint32 LessProcId = 17;
  22. optional uint32 EqualProcId = 18;
  23. optional uint32 CompareProcId = 19;
  24. optional uint32 HashProcId = 20;
  25. }
  26. message TPgProc {
  27. optional uint32 ProcId = 1;
  28. optional string Name = 2;
  29. optional uint32 ExtensionIndex = 3;
  30. optional string Src = 4;
  31. repeated uint32 ArgType = 5;
  32. repeated uint32 OutputArgType = 6;
  33. optional uint32 VariadicType = 7;
  34. optional uint32 VariadicArgType = 8;
  35. repeated bool DefaultArgNull = 9;
  36. repeated string DefaultArgValue = 10;
  37. repeated string InputArgName = 11;
  38. repeated string OutputArgName = 12;
  39. optional string VariadicArgName = 13;
  40. optional bool IsStrict = 14;
  41. optional uint32 Lang = 15;
  42. optional uint32 ResultType = 16;
  43. optional bool ReturnSet = 17;
  44. optional uint32 Kind = 18;
  45. }
  46. message TPgTable {
  47. optional uint32 Oid = 1;
  48. optional string Schema = 2;
  49. optional string Name = 3;
  50. optional uint32 ExtensionIndex = 4;
  51. repeated string Column = 5;
  52. repeated string UdtType = 6;
  53. repeated string DataValue = 7;
  54. repeated bool DataNull = 8;
  55. }
  56. message TPgCast {
  57. optional uint32 Id = 1;
  58. optional uint32 SourceId = 2;
  59. optional uint32 TargetId = 3;
  60. optional uint32 ExtensionIndex = 4;
  61. optional uint32 Method = 5;
  62. optional uint32 FunctionId = 6;
  63. optional uint32 CoercionCode = 7;
  64. }
  65. message TPgOper {
  66. optional uint32 OperId = 1;
  67. optional string Name = 2;
  68. optional uint32 ExtensionIndex = 3;
  69. optional uint32 LeftType = 4;
  70. optional uint32 RightType = 5;
  71. optional uint32 Kind = 6;
  72. optional uint32 ProcId = 7;
  73. optional uint32 ResultType = 8;
  74. optional uint32 ComId = 9;
  75. optional uint32 NegateId = 10;
  76. }
  77. message TPgAggregation {
  78. optional uint32 AggId = 1;
  79. optional string Name = 2;
  80. optional uint32 ExtensionIndex = 3;
  81. repeated uint32 ArgType = 4;
  82. optional uint32 Kind = 5;
  83. optional uint32 TransTypeId = 6;
  84. optional uint32 TransFuncId = 7;
  85. optional uint32 FinalFuncId = 8;
  86. optional uint32 CombineFuncId = 9;
  87. optional uint32 SerializeFuncId = 10;
  88. optional uint32 DeserializeFuncId = 11;
  89. optional string InitValue = 12;
  90. optional bool FinalExtra = 13;
  91. optional uint32 NumDirectArgs = 14;
  92. }
  93. message TPgOpClassFamily {
  94. optional uint32 FamilyId = 1;
  95. optional string Name = 2;
  96. optional uint32 ExtensionIndex = 3;
  97. }
  98. message TPgOpClass {
  99. optional uint32 Method = 1;
  100. optional uint32 TypeId = 2;
  101. optional uint32 ExtensionIndex = 3;
  102. optional string Name = 4;
  103. optional uint32 FamilyId = 5;
  104. }
  105. message TPgAmOp {
  106. optional uint32 FamilyId = 1;
  107. optional uint32 Strategy = 2;
  108. optional uint32 LeftType = 3;
  109. optional uint32 RightType = 4;
  110. optional uint32 OperId = 5;
  111. optional uint32 ExtensionIndex = 6;
  112. }
  113. message TPgAmProc {
  114. optional uint32 FamilyId = 1;
  115. optional uint32 ProcNum = 2;
  116. optional uint32 LeftType = 3;
  117. optional uint32 RightType = 4;
  118. optional uint32 ProcId = 5;
  119. optional uint32 ExtensionIndex = 6;
  120. }
  121. message TPgCatalog {
  122. repeated TPgExtension Extension = 1;
  123. repeated TPgType Type = 2;
  124. repeated TPgProc Proc = 3;
  125. repeated TPgTable Table = 4;
  126. repeated TPgCast Cast = 5;
  127. repeated TPgOper Oper = 6;
  128. repeated TPgAggregation Aggregation = 7;
  129. repeated TPgOpClassFamily OpClassFamily = 8;
  130. repeated TPgOpClass OpClass = 9;
  131. repeated TPgAmOp AmOp = 10;
  132. repeated TPgAmProc AmProc = 11;
  133. }