droonga-engine 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/benchmark/timer-watcher/benchmark.rb +44 -0
  4. data/bin/droonga-engine-absorb-data +246 -187
  5. data/bin/droonga-engine-catalog-generate +12 -12
  6. data/bin/droonga-engine-catalog-modify +4 -4
  7. data/bin/droonga-engine-join +352 -171
  8. data/bin/droonga-engine-set-role +54 -0
  9. data/bin/droonga-engine-unjoin +107 -112
  10. data/droonga-engine.gemspec +3 -3
  11. data/install.sh +55 -36
  12. data/install/centos/functions.sh +2 -2
  13. data/install/debian/functions.sh +2 -2
  14. data/lib/droonga/address.rb +26 -24
  15. data/lib/droonga/buffered_tcp_socket.rb +65 -10
  16. data/lib/droonga/catalog/base.rb +9 -6
  17. data/lib/droonga/catalog/dataset.rb +17 -41
  18. data/lib/droonga/catalog/fetcher.rb +64 -0
  19. data/lib/droonga/catalog/generator.rb +245 -0
  20. data/lib/droonga/catalog/loader.rb +66 -0
  21. data/lib/droonga/{catalog_modifier.rb → catalog/modifier.rb} +11 -18
  22. data/lib/droonga/catalog/replicas_volume.rb +123 -0
  23. data/lib/droonga/catalog/schema.rb +37 -37
  24. data/lib/droonga/catalog/single_volume.rb +11 -3
  25. data/lib/droonga/catalog/slice.rb +10 -6
  26. data/lib/droonga/catalog/{collection_volume.rb → slices_volume.rb} +47 -11
  27. data/lib/droonga/catalog/version1.rb +47 -19
  28. data/lib/droonga/catalog/version2.rb +11 -10
  29. data/lib/droonga/catalog/version2_validator.rb +4 -4
  30. data/lib/droonga/catalog/volume.rb +17 -5
  31. data/lib/droonga/changable.rb +25 -0
  32. data/lib/droonga/cluster.rb +237 -0
  33. data/lib/droonga/collector_runner.rb +4 -0
  34. data/lib/droonga/collectors.rb +2 -1
  35. data/lib/droonga/collectors/recursive_sum.rb +26 -0
  36. data/lib/droonga/command/droonga_engine.rb +404 -127
  37. data/lib/droonga/command/droonga_engine_service.rb +47 -11
  38. data/lib/droonga/command/droonga_engine_worker.rb +21 -1
  39. data/lib/droonga/command/remote_command_base.rb +78 -0
  40. data/lib/droonga/command/serf_event_handler.rb +29 -20
  41. data/lib/droonga/data_absorber_client.rb +222 -0
  42. data/lib/droonga/database_scanner.rb +106 -0
  43. data/lib/droonga/{live_nodes_list_loader.rb → deferrable.rb} +11 -24
  44. data/lib/droonga/differ.rb +58 -0
  45. data/lib/droonga/dispatcher.rb +155 -32
  46. data/lib/droonga/distributed_command_planner.rb +9 -11
  47. data/lib/droonga/engine.rb +83 -78
  48. data/lib/droonga/engine/version.rb +1 -1
  49. data/lib/droonga/engine_node.rb +301 -0
  50. data/lib/droonga/engine_state.rb +62 -40
  51. data/lib/droonga/farm.rb +44 -5
  52. data/lib/droonga/file_observer.rb +16 -12
  53. data/lib/droonga/fluent_message_receiver.rb +98 -29
  54. data/lib/droonga/fluent_message_sender.rb +30 -23
  55. data/lib/droonga/forward_buffer.rb +160 -0
  56. data/lib/droonga/forwarder.rb +73 -40
  57. data/lib/droonga/handler.rb +7 -6
  58. data/lib/droonga/handler_messenger.rb +15 -6
  59. data/lib/droonga/handler_runner.rb +6 -1
  60. data/lib/droonga/internal_fluent_message_receiver.rb +28 -8
  61. data/lib/droonga/job_pusher.rb +10 -7
  62. data/lib/droonga/job_receiver.rb +6 -4
  63. data/lib/droonga/logger.rb +7 -1
  64. data/lib/droonga/node_name.rb +90 -0
  65. data/lib/droonga/node_role.rb +72 -0
  66. data/lib/droonga/path.rb +34 -9
  67. data/lib/droonga/planner.rb +73 -7
  68. data/lib/droonga/plugin/async_command.rb +154 -0
  69. data/lib/droonga/plugins/catalog.rb +1 -0
  70. data/lib/droonga/plugins/crud.rb +22 -6
  71. data/lib/droonga/plugins/dump.rb +66 -135
  72. data/lib/droonga/plugins/groonga/delete.rb +13 -0
  73. data/lib/droonga/plugins/search/distributed_search_planner.rb +4 -4
  74. data/lib/droonga/plugins/system.rb +5 -26
  75. data/lib/droonga/plugins/system/absorb_data.rb +405 -0
  76. data/lib/droonga/plugins/system/statistics.rb +71 -0
  77. data/lib/droonga/plugins/system/status.rb +53 -0
  78. data/lib/droonga/process_control_protocol.rb +3 -1
  79. data/lib/droonga/process_supervisor.rb +32 -15
  80. data/lib/droonga/reducer.rb +69 -0
  81. data/lib/droonga/safe_file_writer.rb +1 -1
  82. data/lib/droonga/serf.rb +207 -276
  83. data/lib/droonga/serf/agent.rb +228 -0
  84. data/lib/droonga/serf/command.rb +94 -0
  85. data/lib/droonga/serf/downloader.rb +120 -0
  86. data/lib/droonga/serf/remote_command.rb +348 -0
  87. data/lib/droonga/serf/tag.rb +56 -0
  88. data/lib/droonga/service_installation.rb +2 -2
  89. data/lib/droonga/session.rb +49 -1
  90. data/lib/droonga/single_step.rb +6 -11
  91. data/lib/droonga/single_step_definition.rb +32 -1
  92. data/lib/droonga/slice.rb +14 -9
  93. data/lib/droonga/supervisor.rb +27 -20
  94. data/lib/droonga/test/stub_handler_messenger.rb +2 -1
  95. data/lib/droonga/timestamp.rb +69 -0
  96. data/lib/droonga/worker_process_agent.rb +33 -15
  97. data/sample/cluster-state.json +8 -0
  98. data/sample/cluster/Rakefile +30 -6
  99. data/test/command/fixture/integer-key-table.jsons +11 -0
  100. data/test/command/fixture/string-key-table.jsons +11 -0
  101. data/test/command/run-test.rb +4 -0
  102. data/test/command/suite/add/error/invalid-integer.expected +3 -3
  103. data/test/command/suite/add/error/invalid-time.expected +3 -3
  104. data/test/command/suite/add/{minimum.expected → key-integer.expected} +0 -0
  105. data/test/command/suite/add/{minimum.test → key-integer.test} +0 -0
  106. data/test/command/suite/add/key-string.expected +6 -0
  107. data/test/command/suite/add/key-string.test +9 -0
  108. data/test/command/suite/add/mismatched-key-type/acceptable/integer-for-string.expected +6 -0
  109. data/test/command/suite/add/mismatched-key-type/acceptable/integer-for-string.test +9 -0
  110. data/test/command/suite/add/mismatched-key-type/acceptable/string-for-integer.expected +6 -0
  111. data/test/command/suite/add/mismatched-key-type/acceptable/string-for-integer.test +9 -0
  112. data/test/command/suite/add/without-values.expected +6 -0
  113. data/test/command/suite/add/without-values.test +11 -0
  114. data/test/command/suite/dump/column/index.expected +33 -1
  115. data/test/command/suite/dump/column/index.test +1 -0
  116. data/test/command/suite/dump/column/scalar.expected +29 -1
  117. data/test/command/suite/dump/column/scalar.test +1 -0
  118. data/test/command/suite/dump/column/vector.expected +29 -1
  119. data/test/command/suite/dump/column/vector.test +1 -0
  120. data/test/command/suite/dump/record/scalar.catalog.json +12 -0
  121. data/test/command/suite/dump/record/scalar.expected +84 -0
  122. data/test/command/suite/dump/record/scalar.test +16 -0
  123. data/test/command/suite/dump/record/vector/reference.expected +83 -1
  124. data/test/command/suite/dump/record/vector/reference.test +1 -0
  125. data/test/command/suite/dump/table/array.expected +27 -1
  126. data/test/command/suite/dump/table/array.test +1 -0
  127. data/test/command/suite/dump/table/double_array_trie.expected +27 -1
  128. data/test/command/suite/dump/table/double_array_trie.test +1 -0
  129. data/test/command/suite/dump/table/hash.expected +27 -1
  130. data/test/command/suite/dump/table/hash.test +1 -0
  131. data/test/command/suite/dump/table/patricia_trie.expected +27 -1
  132. data/test/command/suite/dump/table/patricia_trie.test +1 -0
  133. data/test/command/suite/groonga/delete/{success.expected → key-integer.expected} +0 -0
  134. data/test/command/suite/groonga/delete/key-integer.test +17 -0
  135. data/test/command/suite/groonga/delete/key-string.expected +19 -0
  136. data/test/command/suite/groonga/delete/{success.test → key-string.test} +4 -6
  137. data/test/command/suite/groonga/delete/mismatched-type-key/acceptable/integer-for-string.expected +19 -0
  138. data/test/command/suite/groonga/delete/mismatched-type-key/acceptable/integer-for-string.test +17 -0
  139. data/test/command/suite/groonga/delete/mismatched-type-key/acceptable/string-for-integer.expected +19 -0
  140. data/test/command/suite/groonga/delete/mismatched-type-key/acceptable/string-for-integer.test +17 -0
  141. data/test/command/suite/message/error/missing-dataset.test +1 -0
  142. data/test/command/suite/system/absorb-data/records.catalog.json +58 -0
  143. data/test/command/suite/system/absorb-data/records.expected +32 -0
  144. data/test/command/suite/system/absorb-data/records.test +24 -0
  145. data/test/command/suite/system/statistics/object/count/empty.expected +11 -0
  146. data/test/command/suite/system/statistics/object/count/empty.test +12 -0
  147. data/test/command/suite/system/statistics/object/count/per-volume/empty.catalog.json +36 -0
  148. data/test/command/suite/system/statistics/object/count/per-volume/empty.expected +19 -0
  149. data/test/command/suite/system/statistics/object/count/per-volume/empty.test +12 -0
  150. data/test/command/suite/system/statistics/object/count/per-volume/record.catalog.json +40 -0
  151. data/test/command/suite/system/statistics/object/count/per-volume/record.expected +19 -0
  152. data/test/command/suite/system/statistics/object/count/per-volume/record.test +23 -0
  153. data/test/command/suite/system/statistics/object/count/per-volume/schema.catalog.json +40 -0
  154. data/test/command/suite/system/statistics/object/count/per-volume/schema.expected +19 -0
  155. data/test/command/suite/system/statistics/object/count/per-volume/schema.test +13 -0
  156. data/test/command/suite/system/statistics/object/count/record.catalog.json +12 -0
  157. data/test/command/suite/system/statistics/object/count/record.expected +11 -0
  158. data/test/command/suite/system/statistics/object/count/record.test +23 -0
  159. data/test/command/suite/system/statistics/object/count/schema.catalog.json +12 -0
  160. data/test/command/suite/system/statistics/object/count/schema.expected +11 -0
  161. data/test/command/suite/system/statistics/object/count/schema.test +13 -0
  162. data/test/command/suite/system/status.expected +3 -2
  163. data/test/unit/catalog/test_dataset.rb +4 -1
  164. data/test/unit/{test_catalog_generator.rb → catalog/test_generator.rb} +2 -2
  165. data/test/unit/catalog/test_replicas_volume.rb +79 -0
  166. data/test/unit/catalog/test_single_volume.rb +2 -2
  167. data/test/unit/catalog/test_slice.rb +33 -1
  168. data/test/unit/catalog/{test_collection_volume.rb → test_slices_volume.rb} +72 -11
  169. data/test/unit/catalog/test_version2.rb +3 -0
  170. data/test/unit/helper/distributed_search_planner_helper.rb +2 -2
  171. data/test/unit/plugins/catalog/test_fetch.rb +4 -4
  172. data/test/unit/plugins/crud/test_add.rb +44 -4
  173. data/test/unit/plugins/groonga/test_column_create.rb +4 -4
  174. data/test/unit/plugins/groonga/test_column_list.rb +4 -4
  175. data/test/unit/plugins/groonga/test_column_remove.rb +4 -4
  176. data/test/unit/plugins/groonga/test_column_rename.rb +4 -4
  177. data/test/unit/plugins/groonga/test_delete.rb +73 -10
  178. data/test/unit/plugins/groonga/test_table_create.rb +4 -4
  179. data/test/unit/plugins/groonga/test_table_list.rb +4 -4
  180. data/test/unit/plugins/groonga/test_table_remove.rb +4 -4
  181. data/test/unit/plugins/search/test_handler.rb +4 -4
  182. data/test/unit/plugins/search/test_planner.rb +4 -2
  183. data/test/unit/plugins/system/test_status.rb +31 -15
  184. data/test/unit/plugins/test_watch.rb +16 -16
  185. data/test/unit/test_address.rb +4 -4
  186. metadata +134 -35
  187. data/lib/droonga/catalog/volume_collection.rb +0 -79
  188. data/lib/droonga/catalog_fetcher.rb +0 -53
  189. data/lib/droonga/catalog_generator.rb +0 -243
  190. data/lib/droonga/catalog_loader.rb +0 -56
  191. data/lib/droonga/command/remote.rb +0 -404
  192. data/lib/droonga/data_absorber.rb +0 -264
  193. data/lib/droonga/node_status.rb +0 -71
  194. data/lib/droonga/serf_downloader.rb +0 -115
  195. data/test/unit/catalog/test_volume_collection.rb +0 -78
@@ -15,6 +15,7 @@
15
15
  }
16
16
  }
17
17
  #@enable-logging
18
+ #@subscribe-until 1s
18
19
  {
19
20
  "type": "dump",
20
21
  "dataset": "Default"
@@ -1,22 +1,45 @@
1
1
  {
2
2
  "inReplyTo": "request-id",
3
3
  "dataset": "Default",
4
+ "date": "0000-00-00T00:00:00.000000Z",
4
5
  "type": "dump.start"
5
6
  }
6
7
  {
7
8
  "inReplyTo": "request-id",
8
9
  "dataset": "Default",
10
+ "date": "0000-00-00T00:00:00.000000Z",
9
11
  "type": "dump.start"
10
12
  }
11
13
  {
12
14
  "inReplyTo": "request-id",
13
15
  "statusCode": 200,
14
16
  "type": "dump.result",
15
- "body": true
17
+ "body": {
18
+ "started": true
19
+ }
20
+ }
21
+ {
22
+ "inReplyTo": "request-id",
23
+ "dataset": "Default",
24
+ "date": "0000-00-00T00:00:00.000000Z",
25
+ "body": {
26
+ "nMessages": 1
27
+ },
28
+ "type": "dump.forecast"
29
+ }
30
+ {
31
+ "inReplyTo": "request-id",
32
+ "dataset": "Default",
33
+ "date": "0000-00-00T00:00:00.000000Z",
34
+ "body": {
35
+ "nMessages": 1
36
+ },
37
+ "type": "dump.forecast"
16
38
  }
17
39
  {
18
40
  "inReplyTo": "request-id",
19
41
  "dataset": "Default",
42
+ "date": "0000-00-00T00:00:00.000000Z",
20
43
  "body": {
21
44
  "type": "Array",
22
45
  "name": "Logs"
@@ -26,6 +49,7 @@
26
49
  {
27
50
  "inReplyTo": "request-id",
28
51
  "dataset": "Default",
52
+ "date": "0000-00-00T00:00:00.000000Z",
29
53
  "body": {
30
54
  "type": "Array",
31
55
  "name": "Logs"
@@ -35,10 +59,12 @@
35
59
  {
36
60
  "inReplyTo": "request-id",
37
61
  "dataset": "Default",
62
+ "date": "0000-00-00T00:00:00.000000Z",
38
63
  "type": "dump.end"
39
64
  }
40
65
  {
41
66
  "inReplyTo": "request-id",
42
67
  "dataset": "Default",
68
+ "date": "0000-00-00T00:00:00.000000Z",
43
69
  "type": "dump.end"
44
70
  }
@@ -1,4 +1,5 @@
1
1
  #@require-catalog-version 2
2
+ #@subscribe-until 1s
2
3
  {
3
4
  "type": "dump",
4
5
  "dataset": "Default"
@@ -1,22 +1,45 @@
1
1
  {
2
2
  "inReplyTo": "request-id",
3
3
  "dataset": "Default",
4
+ "date": "0000-00-00T00:00:00.000000Z",
4
5
  "type": "dump.start"
5
6
  }
6
7
  {
7
8
  "inReplyTo": "request-id",
8
9
  "dataset": "Default",
10
+ "date": "0000-00-00T00:00:00.000000Z",
9
11
  "type": "dump.start"
10
12
  }
11
13
  {
12
14
  "inReplyTo": "request-id",
13
15
  "statusCode": 200,
14
16
  "type": "dump.result",
15
- "body": true
17
+ "body": {
18
+ "started": true
19
+ }
20
+ }
21
+ {
22
+ "inReplyTo": "request-id",
23
+ "dataset": "Default",
24
+ "date": "0000-00-00T00:00:00.000000Z",
25
+ "body": {
26
+ "nMessages": 1
27
+ },
28
+ "type": "dump.forecast"
29
+ }
30
+ {
31
+ "inReplyTo": "request-id",
32
+ "dataset": "Default",
33
+ "date": "0000-00-00T00:00:00.000000Z",
34
+ "body": {
35
+ "nMessages": 1
36
+ },
37
+ "type": "dump.forecast"
16
38
  }
17
39
  {
18
40
  "inReplyTo": "request-id",
19
41
  "dataset": "Default",
42
+ "date": "0000-00-00T00:00:00.000000Z",
20
43
  "body": {
21
44
  "type": "DoubleArrayTrie",
22
45
  "name": "Memos",
@@ -27,6 +50,7 @@
27
50
  {
28
51
  "inReplyTo": "request-id",
29
52
  "dataset": "Default",
53
+ "date": "0000-00-00T00:00:00.000000Z",
30
54
  "body": {
31
55
  "type": "DoubleArrayTrie",
32
56
  "name": "Memos",
@@ -37,10 +61,12 @@
37
61
  {
38
62
  "inReplyTo": "request-id",
39
63
  "dataset": "Default",
64
+ "date": "0000-00-00T00:00:00.000000Z",
40
65
  "type": "dump.end"
41
66
  }
42
67
  {
43
68
  "inReplyTo": "request-id",
44
69
  "dataset": "Default",
70
+ "date": "0000-00-00T00:00:00.000000Z",
45
71
  "type": "dump.end"
46
72
  }
@@ -1,4 +1,5 @@
1
1
  #@require-catalog-version 2
2
+ #@subscribe-until 1s
2
3
  {
3
4
  "type": "dump",
4
5
  "dataset": "Default"
@@ -1,22 +1,45 @@
1
1
  {
2
2
  "inReplyTo": "request-id",
3
3
  "dataset": "Default",
4
+ "date": "0000-00-00T00:00:00.000000Z",
4
5
  "type": "dump.start"
5
6
  }
6
7
  {
7
8
  "inReplyTo": "request-id",
8
9
  "dataset": "Default",
10
+ "date": "0000-00-00T00:00:00.000000Z",
9
11
  "type": "dump.start"
10
12
  }
11
13
  {
12
14
  "inReplyTo": "request-id",
13
15
  "statusCode": 200,
14
16
  "type": "dump.result",
15
- "body": true
17
+ "body": {
18
+ "started": true
19
+ }
20
+ }
21
+ {
22
+ "inReplyTo": "request-id",
23
+ "dataset": "Default",
24
+ "date": "0000-00-00T00:00:00.000000Z",
25
+ "body": {
26
+ "nMessages": 1
27
+ },
28
+ "type": "dump.forecast"
29
+ }
30
+ {
31
+ "inReplyTo": "request-id",
32
+ "dataset": "Default",
33
+ "date": "0000-00-00T00:00:00.000000Z",
34
+ "body": {
35
+ "nMessages": 1
36
+ },
37
+ "type": "dump.forecast"
16
38
  }
17
39
  {
18
40
  "inReplyTo": "request-id",
19
41
  "dataset": "Default",
42
+ "date": "0000-00-00T00:00:00.000000Z",
20
43
  "body": {
21
44
  "type": "Hash",
22
45
  "name": "Memos",
@@ -27,6 +50,7 @@
27
50
  {
28
51
  "inReplyTo": "request-id",
29
52
  "dataset": "Default",
53
+ "date": "0000-00-00T00:00:00.000000Z",
30
54
  "body": {
31
55
  "type": "Hash",
32
56
  "name": "Memos",
@@ -37,10 +61,12 @@
37
61
  {
38
62
  "inReplyTo": "request-id",
39
63
  "dataset": "Default",
64
+ "date": "0000-00-00T00:00:00.000000Z",
40
65
  "type": "dump.end"
41
66
  }
42
67
  {
43
68
  "inReplyTo": "request-id",
44
69
  "dataset": "Default",
70
+ "date": "0000-00-00T00:00:00.000000Z",
45
71
  "type": "dump.end"
46
72
  }
@@ -1,4 +1,5 @@
1
1
  #@require-catalog-version 2
2
+ #@subscribe-until 1s
2
3
  {
3
4
  "type": "dump",
4
5
  "dataset": "Default"
@@ -1,22 +1,45 @@
1
1
  {
2
2
  "inReplyTo": "request-id",
3
3
  "dataset": "Default",
4
+ "date": "0000-00-00T00:00:00.000000Z",
4
5
  "type": "dump.start"
5
6
  }
6
7
  {
7
8
  "inReplyTo": "request-id",
8
9
  "dataset": "Default",
10
+ "date": "0000-00-00T00:00:00.000000Z",
9
11
  "type": "dump.start"
10
12
  }
11
13
  {
12
14
  "inReplyTo": "request-id",
13
15
  "statusCode": 200,
14
16
  "type": "dump.result",
15
- "body": true
17
+ "body": {
18
+ "started": true
19
+ }
20
+ }
21
+ {
22
+ "inReplyTo": "request-id",
23
+ "dataset": "Default",
24
+ "date": "0000-00-00T00:00:00.000000Z",
25
+ "body": {
26
+ "nMessages": 1
27
+ },
28
+ "type": "dump.forecast"
29
+ }
30
+ {
31
+ "inReplyTo": "request-id",
32
+ "dataset": "Default",
33
+ "date": "0000-00-00T00:00:00.000000Z",
34
+ "body": {
35
+ "nMessages": 1
36
+ },
37
+ "type": "dump.forecast"
16
38
  }
17
39
  {
18
40
  "inReplyTo": "request-id",
19
41
  "dataset": "Default",
42
+ "date": "0000-00-00T00:00:00.000000Z",
20
43
  "body": {
21
44
  "type": "PatriciaTrie",
22
45
  "name": "Memos",
@@ -27,6 +50,7 @@
27
50
  {
28
51
  "inReplyTo": "request-id",
29
52
  "dataset": "Default",
53
+ "date": "0000-00-00T00:00:00.000000Z",
30
54
  "body": {
31
55
  "type": "PatriciaTrie",
32
56
  "name": "Memos",
@@ -37,10 +61,12 @@
37
61
  {
38
62
  "inReplyTo": "request-id",
39
63
  "dataset": "Default",
64
+ "date": "0000-00-00T00:00:00.000000Z",
40
65
  "type": "dump.end"
41
66
  }
42
67
  {
43
68
  "inReplyTo": "request-id",
44
69
  "dataset": "Default",
70
+ "date": "0000-00-00T00:00:00.000000Z",
45
71
  "type": "dump.end"
46
72
  }
@@ -1,4 +1,5 @@
1
1
  #@require-catalog-version 2
2
+ #@subscribe-until 1s
2
3
  {
3
4
  "type": "dump",
4
5
  "dataset": "Default"
@@ -0,0 +1,17 @@
1
+ #@include fixture/integer-key-table.jsons
2
+ {
3
+ "type": "add",
4
+ "dataset": "Default",
5
+ "body": {
6
+ "table" : "Integer",
7
+ "key" : 1
8
+ }
9
+ }
10
+ {
11
+ "type": "delete",
12
+ "dataset": "Default",
13
+ "body": {
14
+ "table" : "Integer",
15
+ "key" : 1
16
+ }
17
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "inReplyTo": "request-id",
3
+ "statusCode": 200,
4
+ "type": "add.result",
5
+ "body": true
6
+ }
7
+ {
8
+ "inReplyTo": "request-id",
9
+ "statusCode": 200,
10
+ "type": "delete.result",
11
+ "body": [
12
+ [
13
+ 0,
14
+ 0.0,
15
+ 0.0
16
+ ],
17
+ true
18
+ ]
19
+ }
@@ -1,19 +1,17 @@
1
- #@include fixture/user-table.jsons
1
+ #@include fixture/string-key-table.jsons
2
2
  {
3
3
  "type": "add",
4
4
  "dataset": "Default",
5
5
  "body": {
6
- "table" : "User",
7
- "key" : "key",
8
- "values" : {
9
- }
6
+ "table" : "String",
7
+ "key" : "key"
10
8
  }
11
9
  }
12
10
  {
13
11
  "type": "delete",
14
12
  "dataset": "Default",
15
13
  "body": {
16
- "table" : "User",
14
+ "table" : "String",
17
15
  "key" : "key"
18
16
  }
19
17
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "inReplyTo": "request-id",
3
+ "statusCode": 200,
4
+ "type": "add.result",
5
+ "body": true
6
+ }
7
+ {
8
+ "inReplyTo": "request-id",
9
+ "statusCode": 200,
10
+ "type": "delete.result",
11
+ "body": [
12
+ [
13
+ 0,
14
+ 0.0,
15
+ 0.0
16
+ ],
17
+ true
18
+ ]
19
+ }
@@ -0,0 +1,17 @@
1
+ #@include fixture/string-key-table.jsons
2
+ {
3
+ "type": "add",
4
+ "dataset": "Default",
5
+ "body": {
6
+ "table" : "String",
7
+ "key" : "1"
8
+ }
9
+ }
10
+ {
11
+ "type": "delete",
12
+ "dataset": "Default",
13
+ "body": {
14
+ "table" : "String",
15
+ "key" : 1
16
+ }
17
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "inReplyTo": "request-id",
3
+ "statusCode": 200,
4
+ "type": "add.result",
5
+ "body": true
6
+ }
7
+ {
8
+ "inReplyTo": "request-id",
9
+ "statusCode": 200,
10
+ "type": "delete.result",
11
+ "body": [
12
+ [
13
+ 0,
14
+ 0.0,
15
+ 0.0
16
+ ],
17
+ true
18
+ ]
19
+ }
@@ -0,0 +1,17 @@
1
+ #@include fixture/integer-key-table.jsons
2
+ {
3
+ "type": "add",
4
+ "dataset": "Default",
5
+ "body": {
6
+ "table" : "Integer",
7
+ "key" : 1
8
+ }
9
+ }
10
+ {
11
+ "type": "delete",
12
+ "dataset": "Default",
13
+ "body": {
14
+ "table" : "Integer",
15
+ "key" : "1"
16
+ }
17
+ }