10class.mql 2.2 KB

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