11data.mql 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. insert into /test/prepare (v_varchar, v_text, v_int, v_bigint, v_float, v_double, v_smalldouble, v_bool, v_timestamp, v_blob) values (?, ?, ?, ?, ?, ?, ?, ? ,?, ? )
  2. /**
  3. params("*abc*", `hello word 2003 123-456-789 中华人民共和国是中国的唯一合法政府,台湾是中国一部分。 Mercury, Venus2,Earch%。Mars$Uranus CeresAndJupiterOrSaturn #Neptune Pluto_Charon"\""`, 1, 1234567890123456789, 1.1, 1.1234567890123456, 1.123456, true, nil, "hello")
  4. **/
  5. ;
  6. insert into /test/prepare (v_varchar, v_text, v_int, v_bigint, v_float, v_double, v_smalldouble, v_bool, v_timestamp, v_blob) values (?, ?, ?, ?, ?, ?, ?, ? ,?, ? )
  7. /**
  8. params("2", `because in both case, Cassandra guarantees that these queries performance will be proportional to the amount of data returned. In particular, if no users are born in 1981, then the second query performance will not depend of the number of user profile stored in the database (not directly at least: due to secondary index implementation consideration, this query may still depend on the number of node in the cluster, which indirectly depends on the amount of data stored. Nevertheless, the number of nodes will always be multiple number of magnitude lower than the number of user profile stored). Of course, both query may return very large result set in practice, but the amount of data returned can always be controlled by adding a LIMIT.`, 1, 1234567890123456789, 1.1, 1.1234567890123456, 1.123456, false, nil)
  9. **/
  10. ;
  11. insert into /test/prepare (v_varchar, v_text, v_int, v_bigint, v_float, v_double, v_smalldouble, v_bool, v_timestamp, v_blob) values (?, ?, ?, ?, ?, ?, ?, ? ,?, ? )
  12. /**
  13. params("3", `{
  14. "id": "omdb-query-query",
  15. "bid": "omdb-query-query",
  16. "type": "json-update",
  17. "data": {
  18. "message": [
  19. {
  20. "graph": {
  21. "nodes": [
  22. {
  23. "_icon": "app",
  24. "class": "/matrix/entity/app",
  25. "id": "app:demoapp3",
  26. "name": "app:demoapp3",
  27. "status": 5
  28. },
  29. {
  30. "class": "/matrix/entity/pod",
  31. "id": "pod:web-demo-f6dsp"
  32. },
  33. {
  34. "_icon": "mysql",
  35. "class": "/matrix/entity/mysql",
  36. "id": "mysql:demodb",
  37. "name": "mysql:demodb",
  38. "status": 0
  39. },
  40. {
  41. "_icon": "biz",
  42. "class": "/matrix/entity/biz",
  43. "id": "biz:开发测试",
  44. "name": "biz:开发测试",
  45. "status": 4
  46. },
  47. {
  48. "_icon": "linux",
  49. "class": "/matrix/entity/linux",
  50. "id": "linux:node2",
  51. "name": "linux:node2",
  52. "status": 0
  53. },
  54. {
  55. "_icon": "mysql",
  56. "class": "/matrix/entity/mysql",
  57. "id": "mysql:appdb",
  58. "name": "mysql:appdb",
  59. "status": 0
  60. },
  61. {
  62. "_icon": "app",
  63. "class": "/matrix/entity/app",
  64. "id": "app:demoapp2",
  65. "name": "app:demoapp2",
  66. "status": 0
  67. },
  68. {
  69. "_icon": "app",
  70. "class": "/matrix/entity/app",
  71. "id": "app:tomcat-app3",
  72. "name": "app:tomcat-app3",
  73. "status": 5
  74. },
  75. {
  76. "_icon": "linux",
  77. "class": "/matrix/entity/linux",
  78. "id": "linux:node1",
  79. "name": "linux:node1",
  80. "status": 0
  81. },
  82. {
  83. "_icon": "pod",
  84. "class": "/matrix/entity/pod",
  85. "id": "pod:tomcat-pod1",
  86. "name": "pod:tomcat-pod1",
  87. "status": 4
  88. },
  89. {
  90. "_icon": "linux",
  91. "class": "/matrix/entity/linux",
  92. "id": "linux:node4",
  93. "name": "linux:node4",
  94. "status": 0
  95. },
  96. {
  97. "_icon": "app",
  98. "class": "/matrix/entity/app",
  99. "id": "app:demoapp1",
  100. "name": "app:demoapp1",
  101. "status": 0
  102. },
  103. {
  104. "_icon": "pod",
  105. "class": "/matrix/entity/pod",
  106. "id": "pod:mysql-demo-pod1",
  107. "name": "pod:mysql-demo-pod1",
  108. "status": 4
  109. },
  110. {
  111. "_icon": "pod",
  112. "class": "/matrix/entity/pod",
  113. "id": "pod:tomcat-pod2",
  114. "name": "pod:tomcat-pod2",
  115. "status": 4
  116. },
  117. {
  118. "class": "/matrix/entity/pod",
  119. "id": "pod:tomcat-pod3"
  120. },
  121. {
  122. "_icon": "app",
  123. "class": "/matrix/entity/app",
  124. "id": "app:tomcat-app1",
  125. "name": "app:tomcat-app1",
  126. "status": 0
  127. },
  128. {
  129. "_icon": "app",
  130. "class": "/matrix/entity/app",
  131. "id": "app:tomcat-app2",
  132. "name": "app:tomcat-app2",
  133. "status": 0
  134. },
  135. {
  136. "class": "/matrix/entity/pod",
  137. "id": "pod:web-demo-j6qxj"
  138. },
  139. {
  140. "class": "/matrix/entity/pod",
  141. "id": "pod:web-demo-9rfxj"
  142. },
  143. {
  144. "_icon": "biz",
  145. "class": "/matrix/entity/biz",
  146. "id": "biz:数字国网",
  147. "name": "biz:数字国网",
  148. "status": 4
  149. }
  150. ],
  151. "edges": [
  152. {
  153. "attrs": {},
  154. "class": "connect",
  155. "id": "app:demoapp1-mysql:demodb",
  156. "source": "app:demoapp1",
  157. "target": "mysql:demodb"
  158. },
  159. {
  160. "attrs": {},
  161. "class": "contain",
  162. "id": "biz:开发测试-app:demoapp2",
  163. "source": "biz:开发测试",
  164. "target": "app:demoapp2"
  165. },
  166. {
  167. "attrs": {},
  168. "class": "runon",
  169. "id": "mysql:appdb-linux:node4",
  170. "source": "mysql:appdb",
  171. "target": "linux:node4"
  172. },
  173. {
  174. "attrs": {},
  175. "class": "runon",
  176. "id": "mysql:demodb-pod:mysql",
  177. "source": "mysql:demodb",
  178. "target": "pod:mysql"
  179. },
  180. {
  181. "attrs": {},
  182. "class": "runon",
  183. "id": "app:tomcat-app2",
  184. "source": "app:tomcat",
  185. "target": "app2"
  186. },
  187. {
  188. "attrs": {},
  189. "class": "runon",
  190. "id": "pod:tomcat-pod2",
  191. "source": "pod:tomcat",
  192. "target": "pod2"
  193. },
  194. {
  195. "attrs": {},
  196. "class": "runon",
  197. "id": "app:demoapp1-pod:web",
  198. "source": "app:demoapp1",
  199. "target": "pod:web"
  200. },
  201. {
  202. "attrs": {},
  203. "class": "runon",
  204. "id": "pod:mysql-demo",
  205. "source": "pod:mysql",
  206. "target": "demo"
  207. },
  208. {
  209. "attrs": {},
  210. "class": "runon",
  211. "id": "app:demoapp2-pod:web",
  212. "source": "app:demoapp2",
  213. "target": "pod:web"
  214. },
  215. {
  216. "attrs": {},
  217. "class": "connect",
  218. "id": "app:demoapp3-mysql:demodb",
  219. "source": "app:demoapp3",
  220. "target": "mysql:demodb"
  221. },
  222. {
  223. "attrs": {},
  224. "class": "runon",
  225. "id": "app:demoapp3-pod:web",
  226. "source": "app:demoapp3",
  227. "target": "pod:web"
  228. },
  229. {
  230. "attrs": {
  231. "floatp": 3.4,
  232. "intp": 1
  233. },
  234. "class": "contain",
  235. "id": "biz:数字国网-app:tomcat",
  236. "source": "biz:数字国网",
  237. "target": "app:tomcat"
  238. },
  239. {
  240. "attrs": {},
  241. "class": "connect",
  242. "id": "app:tomcat-app3",
  243. "source": "app:tomcat",
  244. "target": "app3"
  245. },
  246. {
  247. "attrs": {},
  248. "class": "contain",
  249. "id": "biz:开发测试-app:demoapp3",
  250. "source": "biz:开发测试",
  251. "target": "app:demoapp3"
  252. },
  253. {
  254. "attrs": {},
  255. "class": "contain",
  256. "id": "biz:开发测试-app:demoapp1",
  257. "source": "biz:开发测试",
  258. "target": "app:demoapp1"
  259. },
  260. {
  261. "attrs": {},
  262. "class": "runon",
  263. "id": "pod:tomcat-pod1",
  264. "source": "pod:tomcat",
  265. "target": "pod1"
  266. },
  267. {
  268. "attrs": {},
  269. "class": "connect",
  270. "id": "app:tomcat-app1",
  271. "source": "app:tomcat",
  272. "target": "app1"
  273. },
  274. {
  275. "attrs": {},
  276. "class": "connect",
  277. "id": "app:demoapp2-mysql:demodb",
  278. "source": "app:demoapp2",
  279. "target": "mysql:demodb"
  280. }
  281. ],
  282. "paths": null,
  283. "diff": null,
  284. "pathtags": null
  285. }
  286. }
  287. ],
  288. "meta": {
  289. "type": "graph"
  290. },
  291. "status": "ok"
  292. }
  293. }`, 1, 1234567890123456789, 1.1, 1.1234567890123456, 1.123456, true, "2022-03-02 20:22:19")
  294. **/
  295. ;
  296. /**
  297. sleep(2s)
  298. **/
  299. ;