1_drop_all.mql 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. -- 清除 /test/aaa/ 下的所有测试数据
  2. -- 使用 onerror(continue) 忽略类不存在的错误
  3. -- 删除所有测试 class 数据
  4. delete from /test/aaa/test_basic with version
  5. /**
  6. onerror(continue,'not exist','not find','not found')
  7. **/
  8. ;
  9. delete from /test/aaa/test_class with version
  10. /**
  11. onerror(continue,'not exist','not find','not found')
  12. **/
  13. ;
  14. delete from /test/aaa/test_search with version
  15. /**
  16. onerror(continue,'not exist','not find','not found')
  17. **/
  18. ;
  19. delete from /test/aaa/test_aggr with version
  20. /**
  21. onerror(continue,'not exist','not find','not found')
  22. **/
  23. ;
  24. delete from /test/aaa/test_bucket_logs with version
  25. /**
  26. onerror(continue,'not exist','not find','not found')
  27. **/
  28. ;
  29. delete from /test/aaa/test_bucket_strulogs with version
  30. /**
  31. onerror(continue,'not exist','not find','not found')
  32. **/
  33. ;
  34. delete from /test/aaa/test_bucket_tsdb with version
  35. /**
  36. onerror(continue,'not exist','not find','not found')
  37. **/
  38. ;
  39. delete from /test/aaa/test_bucket_promdb with version
  40. /**
  41. onerror(continue,'not exist','not find','not found')
  42. **/
  43. ;
  44. delete from /test/aaa/test_graph with version
  45. /**
  46. onerror(continue,'not exist','not find','not found')
  47. **/
  48. ;
  49. delete from /test/aaa/test_partition with version
  50. /**
  51. onerror(continue,'not exist','not find','not found')
  52. **/
  53. ;
  54. delete from /test/aaa/test_mpartition with version
  55. /**
  56. onerror(continue,'not exist','not find','not found')
  57. **/
  58. ;
  59. delete from /test/aaa/test_conflict with version
  60. /**
  61. onerror(continue,'not exist','not find','not found')
  62. **/
  63. ;
  64. delete from /test/aaa/test_prepare with version
  65. /**
  66. onerror(continue,'not exist','not find','not found')
  67. **/
  68. ;
  69. delete from /test/aaa/test_subquery with version
  70. /**
  71. onerror(continue,'not exist','not find','not found')
  72. **/
  73. ;
  74. delete from /test/aaa/test_cross_ns with version
  75. /**
  76. onerror(continue,'not exist','not find','not found')
  77. **/
  78. ;
  79. delete from /test/aaa/test_syntax with version
  80. /**
  81. onerror(continue,'not exist','not find','not found')
  82. **/
  83. ;
  84. delete from /test/aaa/test_trigger with version
  85. /**
  86. onerror(continue,'not exist','not find','not found')
  87. **/
  88. ;
  89. -- 安全删除所有 class
  90. drop class if exists /test/aaa/test_basic
  91. ;
  92. drop class if exists /test/aaa/test_class
  93. ;
  94. drop class if exists /test/aaa/test_search
  95. ;
  96. drop class if exists /test/aaa/test_aggr
  97. ;
  98. drop class if exists /test/aaa/test_bucket_logs
  99. ;
  100. drop class if exists /test/aaa/test_bucket_strulogs
  101. ;
  102. drop class if exists /test/aaa/test_bucket_tsdb
  103. ;
  104. drop class if exists /test/aaa/test_bucket_promdb
  105. ;
  106. drop class if exists /test/aaa/test_graph
  107. ;
  108. drop class if exists /test/aaa/test_partition
  109. ;
  110. drop class if exists /test/aaa/test_mpartition
  111. ;
  112. drop class if exists /test/aaa/test_conflict
  113. ;
  114. drop class if exists /test/aaa/test_prepare
  115. ;
  116. drop class if exists /test/aaa/test_subquery
  117. ;
  118. drop class if exists /test/aaa/test_cross_ns
  119. ;
  120. drop class if exists /test/aaa/test_syntax
  121. ;
  122. drop class if exists /test/aaa/test_trigger
  123. ;