selects.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. [
  2. {
  3. "QueryType": "table_drop",
  4. "Database": "db_test",
  5. "Datatable": "table_es"
  6. },
  7. {
  8. "QueryType": "table_create",
  9. "Database": "db_test",
  10. "Datatable": "table_es",
  11. "Definition": {
  12. "elastic_search": true,
  13. "Columns": [
  14. {
  15. "Name": "KeyBoolean",
  16. "Type": "Boolean"
  17. },
  18. {
  19. "Name": "KeyLong",
  20. "Type": "Long"
  21. },
  22. {
  23. "Name": "KeyString",
  24. "Type": "String"
  25. },
  26. {
  27. "Name": "ValueBoolean",
  28. "Type": "Boolean"
  29. },
  30. {
  31. "Name": "ValueLong",
  32. "Type": "Long"
  33. },
  34. {
  35. "Name": "ValueString",
  36. "Type": "String"
  37. }
  38. ],
  39. "Key": [
  40. "KeyBoolean",
  41. "KeyLong",
  42. "KeyString"
  43. ],
  44. "Indexes": [
  45. {
  46. "Name": "index_0",
  47. "Columns": [
  48. "KeyString",
  49. "KeyLong",
  50. "KeyBoolean"
  51. ]
  52. },
  53. {
  54. "Name": "index_1",
  55. "Columns": [
  56. "ValueBoolean"
  57. ]
  58. },
  59. {
  60. "Name": "index_2",
  61. "Columns": [
  62. "ValueLong"
  63. ]
  64. },
  65. {
  66. "Name": "index_3",
  67. "Columns": [
  68. "ValueString"
  69. ]
  70. }
  71. ]
  72. }
  73. },
  74. {
  75. "QueryType": "batch_insert",
  76. "Database": "db_test",
  77. "Datatable": "table_es",
  78. "InsertObjects": [
  79. {
  80. "KeyLong": 1,
  81. "KeyString": "a",
  82. "KeyBoolean": false,
  83. "ValueLong": 2,
  84. "ValueString": "b",
  85. "ValueBoolean": false
  86. },
  87. {
  88. "KeyLong": 1,
  89. "KeyString": "a",
  90. "KeyBoolean": true,
  91. "ValueLong": 1,
  92. "ValueString": "b",
  93. "ValueBoolean": false
  94. }
  95. ]
  96. },
  97. {
  98. "QueryType": "select",
  99. "Database": "db_test",
  100. "Datatable": "table_es",
  101. "Hint": "index_0",
  102. "Criteria": {
  103. "KeyLong": 1,
  104. "KeyString": "a",
  105. "KeyBoolean": false
  106. }
  107. }
  108. ]