selects.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. [
  2. {
  3. "QueryType": "table_drop",
  4. "Database": "db_test",
  5. "Datatable": "table_index_data"
  6. },
  7. {
  8. "QueryType": "table_create",
  9. "Database": "db_test",
  10. "Datatable": "table_index_data",
  11. "Definition": {
  12. "strong_consistency": true,
  13. "Columns": [
  14. {
  15. "Name": "KeyLong",
  16. "Type": "Long"
  17. },
  18. {
  19. "Name": "KeyDouble",
  20. "Type": "Double"
  21. },
  22. {
  23. "Name": "KeyString",
  24. "Type": "String"
  25. },
  26. {
  27. "Name": "KeyBoolean",
  28. "Type": "Boolean"
  29. },
  30. {
  31. "Name": "ValueLong",
  32. "Type": "Long"
  33. },
  34. {
  35. "Name": "ValueDouble",
  36. "Type": "Double"
  37. },
  38. {
  39. "Name": "ValueString",
  40. "Type": "String"
  41. },
  42. {
  43. "Name": "ValueBoolean",
  44. "Type": "Boolean"
  45. }
  46. ],
  47. "Key": [
  48. "KeyLong",
  49. "KeyDouble",
  50. "KeyString",
  51. "KeyBoolean"
  52. ],
  53. "Indexes": [
  54. {
  55. "Name": "index_1",
  56. "Columns": [
  57. "ValueLong"
  58. ]
  59. },
  60. {
  61. "Name": "index_2",
  62. "Columns": [
  63. "ValueString"
  64. ]
  65. }
  66. ]
  67. }
  68. },
  69. {
  70. "QueryType": "batch_insert",
  71. "Database": "db_test",
  72. "Datatable": "table_index_data",
  73. "InsertObjects": [
  74. {
  75. "KeyLong": 1,
  76. "KeyDouble": 1.0,
  77. "KeyString": "a",
  78. "KeyBoolean": false,
  79. "ValueLong": 2,
  80. "ValueDouble": 2.0,
  81. "ValueString": "b",
  82. "ValueBoolean": false
  83. },
  84. {
  85. "KeyLong": 1,
  86. "KeyDouble": 1.0,
  87. "KeyString": "a",
  88. "KeyBoolean": true,
  89. "ValueLong": 1,
  90. "ValueDouble": 2.0,
  91. "ValueString": "b",
  92. "ValueBoolean": false
  93. }
  94. ]
  95. },
  96. {
  97. "QueryType": "select",
  98. "Database": "db_test",
  99. "Datatable": "table_index_data",
  100. "Criteria": {
  101. }
  102. },
  103. {
  104. "QueryType": "select",
  105. "Database": "db_test",
  106. "Datatable": "table_index_data",
  107. "Criteria": {
  108. "ValueLong": 1
  109. }
  110. },
  111. {
  112. "QueryType": "update",
  113. "Database": "db_test",
  114. "Datatable": "table_index_data",
  115. "Criteria": {
  116. "ValueLong": 1
  117. },
  118. "Set": {
  119. "ValueLong": 1.1
  120. }
  121. },
  122. {
  123. "QueryType": "select",
  124. "Database": "db_test",
  125. "Datatable": "table_index_data",
  126. "Criteria": {
  127. }
  128. },
  129. {
  130. "QueryType": "select_count",
  131. "Database": "db_test",
  132. "Datatable": "table_index_data",
  133. "Criteria": {
  134. }
  135. },
  136. {
  137. "QueryType": "table_count",
  138. "Database": "db_test",
  139. "Datatable": "table_index_data",
  140. "Criteria": {
  141. }
  142. }
  143. ]