10class.mql 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. create edge type if not exists connect "connect"
  2. ;
  3. create class if not exists /test() with namespace="test"
  4. ;
  5. delete from /test/cypher with version
  6. /**
  7. onerror(continue)
  8. noerrinfo()
  9. **/
  10. ;
  11. delete from /test/cypher1 with version
  12. /**
  13. onerror(continue)
  14. noerrinfo()
  15. **/
  16. ;
  17. delete from /test/cypher2 with version
  18. /**
  19. onerror(continue)
  20. noerrinfo()
  21. **/
  22. ;
  23. delete from /test/cypher3 with version
  24. /**
  25. onerror(continue)
  26. noerrinfo()
  27. **/
  28. ;
  29. delete from /test/cypher4 with version
  30. /**
  31. onerror(continue)
  32. noerrinfo()
  33. **/
  34. ;
  35. delete from /test/cypher5 with version
  36. /**
  37. onerror(continue)
  38. noerrinfo()
  39. **/
  40. ;
  41. delete from /test/cypher6 with version
  42. /**
  43. onerror(continue)
  44. noerrinfo()
  45. **/
  46. ;
  47. delete from /test/cypher7 with version
  48. /**
  49. onerror(continue)
  50. noerrinfo()
  51. **/
  52. ;
  53. delete from /test/cypher8 with version
  54. /**
  55. onerror(continue)
  56. noerrinfo()
  57. **/
  58. ;
  59. delete from /test/cypher9 with version
  60. /**
  61. onerror(continue)
  62. noerrinfo()
  63. **/
  64. ;
  65. drop class if exists /test/cypher
  66. ;
  67. drop class if exists /test/cypher9
  68. ;
  69. drop class if exists /test/cypher8
  70. ;
  71. drop class if exists /test/cypher7
  72. ;
  73. drop class if exists /test/cypher5
  74. ;
  75. drop class if exists /test/cypher6
  76. ;
  77. drop class if exists /test/cypher4
  78. ;
  79. drop class if exists /test/cypher3
  80. ;
  81. drop class if exists /test/cypher2
  82. ;
  83. drop class if exists /test/cypher1
  84. ;
  85. /**
  86. sleep(1s)
  87. **/
  88. ;
  89. create edge type if not exists test.connect
  90. ;
  91. create class if not exists /test/cypher (
  92. name varchar,
  93. keys(name)
  94. )with key=manu and nickname='cypher'
  95. ;
  96. create class if not exists /test/cypher1 (
  97. name varchar,
  98. keys(name)
  99. )with key=manu and nickname='cypher1'
  100. ;
  101. create class if not exists /test/cypher2 (
  102. name varchar,
  103. keys(name)
  104. )with key=manu and nickname='cypher2'
  105. ;
  106. create class if not exists /test/cypher3 (
  107. name varchar,
  108. keys(name)
  109. )with key=manu and nickname='cypher3'
  110. ;
  111. create class if not exists /test/cypher4 (
  112. name varchar,
  113. keys(name)
  114. )with key=manu and nickname='cypher4'
  115. ;
  116. create class if not exists /test/cypher5 (
  117. name varchar,
  118. keys(name)
  119. )with key=manu and nickname='cypher5'
  120. ;
  121. create class if not exists /test/cypher6 (
  122. name varchar,
  123. keys(name)
  124. )with key=manu and nickname='cypher6'
  125. ;
  126. create class if not exists /test/cypher7 (
  127. name varchar,
  128. keys(name)
  129. )with key=manu and nickname='cypher7'
  130. ;
  131. create class if not exists /test/cypher8 (
  132. name varchar,
  133. keys(name)
  134. )with key=manu and nickname='cypher8'
  135. ;
  136. create class if not exists /test/cypher9 (
  137. name varchar,
  138. keys(name)
  139. )with key=manu and nickname='cypher9'
  140. ;