droonga-engine 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +3 -0
- data/Gemfile +7 -0
- data/Rakefile +6 -2
- data/bin/droonga-engine +2 -2
- data/bin/{droonga-catalog-generate → droonga-engine-catalog-generate} +15 -3
- data/bin/droonga-engine-serf-event-handler +20 -0
- data/bin/droonga-engine-service +2 -2
- data/doc/text/news.md +21 -1
- data/droonga-engine.gemspec +5 -2
- data/lib/droonga/catalog/collection_volume.rb +12 -0
- data/lib/droonga/catalog/dataset.rb +25 -0
- data/lib/droonga/catalog/single_volume.rb +10 -0
- data/lib/droonga/catalog/slice.rb +4 -0
- data/lib/droonga/catalog/version1.rb +59 -48
- data/lib/droonga/catalog/version2.rb +10 -20
- data/lib/droonga/catalog/volume_collection.rb +27 -4
- data/lib/droonga/catalog_generator.rb +12 -5
- data/lib/droonga/catalog_observer.rb +17 -35
- data/lib/droonga/command/droonga_engine.rb +436 -0
- data/lib/droonga/command/droonga_engine_service.rb +273 -0
- data/lib/droonga/command/serf_event_handler.rb +85 -0
- data/lib/droonga/dispatcher.rb +8 -8
- data/lib/droonga/engine.rb +90 -26
- data/lib/droonga/engine/version.rb +1 -1
- data/lib/droonga/engine_state.rb +29 -3
- data/lib/droonga/internal_fluent_message_receiver.rb +100 -0
- data/lib/droonga/live_nodes_list_loader.rb +48 -0
- data/lib/droonga/live_nodes_list_observer.rb +72 -0
- data/lib/droonga/path.rb +47 -0
- data/lib/droonga/plugins/dump.rb +279 -38
- data/lib/droonga/plugins/groonga/select.rb +26 -14
- data/lib/droonga/plugins/search.rb +30 -2
- data/lib/droonga/plugins/search/distributed_search_planner.rb +28 -11
- data/lib/droonga/processor.rb +4 -0
- data/lib/droonga/searcher.rb +26 -0
- data/lib/droonga/serf.rb +119 -0
- data/lib/droonga/serf_downloader.rb +90 -0
- data/lib/droonga/server.rb +2 -2
- data/lib/droonga/service_control_protocol.rb +26 -0
- data/sample/cluster/catalog.json +1 -1
- data/test/command/config/default/catalog.json +2 -2
- data/test/command/config/version1/catalog.json +1 -1
- data/test/command/fixture/documents.jsons +18 -18
- data/test/command/fixture/event.jsons +4 -4
- data/test/command/fixture/user-table-array.jsons +4 -4
- data/test/command/fixture/user-table.jsons +5 -5
- data/test/command/suite/add/dimension/column.catalog.json +1 -1
- data/test/command/suite/add/dimension/column.test +4 -4
- data/test/command/suite/add/dimension/integer.catalog.json +1 -1
- data/test/command/suite/add/dimension/integer.test +4 -4
- data/test/command/suite/add/error/invalid-integer.test +1 -1
- data/test/command/suite/add/error/invalid-time.test +1 -1
- data/test/command/suite/add/error/missing-key.test +1 -1
- data/test/command/suite/add/error/missing-table.test +1 -1
- data/test/command/suite/add/error/unknown-column.test +1 -1
- data/test/command/suite/add/error/unknown-table.test +1 -1
- data/test/command/suite/add/minimum.test +1 -1
- data/test/command/suite/add/vector/short_text.catalog.json +26 -0
- data/test/command/suite/add/vector/short_text.expected +42 -0
- data/test/command/suite/add/vector/short_text.test +35 -0
- data/test/command/suite/add/with-values.test +1 -1
- data/test/command/suite/add/without-key.test +1 -1
- data/test/command/suite/dump/column/index.catalog.json +40 -0
- data/test/command/suite/dump/column/index.expected +195 -0
- data/test/command/suite/dump/column/index.test +5 -0
- data/test/command/suite/dump/column/scalar.catalog.json +19 -0
- data/test/command/suite/dump/column/scalar.expected +99 -0
- data/test/command/suite/dump/column/scalar.test +5 -0
- data/test/command/suite/dump/column/vector.catalog.json +22 -0
- data/test/command/suite/dump/column/vector.expected +108 -0
- data/test/command/suite/dump/column/vector.test +5 -0
- data/test/command/suite/dump/record/vector/reference.catalog.json +27 -0
- data/test/command/suite/dump/record/vector/reference.expected +213 -0
- data/test/command/suite/dump/record/vector/reference.test +21 -0
- data/test/command/suite/dump/table/array.catalog.json +13 -0
- data/test/command/suite/dump/table/array.expected +63 -0
- data/test/command/suite/dump/table/array.test +5 -0
- data/test/command/suite/dump/table/double_array_trie.catalog.json +14 -0
- data/test/command/suite/dump/table/double_array_trie.expected +66 -0
- data/test/command/suite/dump/table/double_array_trie.test +5 -0
- data/test/command/suite/dump/table/hash.catalog.json +14 -0
- data/test/command/suite/dump/table/hash.expected +66 -0
- data/test/command/suite/dump/table/hash.test +5 -0
- data/test/command/suite/dump/table/patricia_trie.catalog.json +14 -0
- data/test/command/suite/dump/table/patricia_trie.expected +66 -0
- data/test/command/suite/dump/table/patricia_trie.test +5 -0
- data/test/command/suite/groonga/column_create/scalar.test +2 -2
- data/test/command/suite/groonga/column_create/unknown-table.test +1 -1
- data/test/command/suite/groonga/column_create/vector.test +2 -2
- data/test/command/suite/groonga/column_list/success.test +3 -3
- data/test/command/suite/groonga/column_list/unknown-table.test +1 -1
- data/test/command/suite/groonga/column_remove/success.test +3 -3
- data/test/command/suite/groonga/column_remove/unknown-column.test +2 -2
- data/test/command/suite/groonga/column_remove/unknown-table.test +1 -1
- data/test/command/suite/groonga/column_rename/success.test +3 -3
- data/test/command/suite/groonga/column_rename/unknown-column.test +2 -2
- data/test/command/suite/groonga/column_rename/unknown-table.test +1 -1
- data/test/command/suite/groonga/delete/duplicated-identifiers.test +2 -2
- data/test/command/suite/groonga/delete/filter.test +2 -2
- data/test/command/suite/groonga/delete/invalid-filter.test +1 -1
- data/test/command/suite/groonga/delete/no-identifier.test +2 -2
- data/test/command/suite/groonga/delete/success.test +2 -2
- data/test/command/suite/groonga/delete/unknown-table.test +1 -1
- data/test/command/suite/groonga/select/minimum.expected +24 -1
- data/test/command/suite/groonga/select/minimum.test +1 -1
- data/test/command/suite/groonga/select/type/time.catalog.json +19 -0
- data/test/command/suite/groonga/select/type/time.expected +37 -0
- data/test/command/suite/groonga/select/type/time.test +35 -0
- data/test/command/suite/groonga/table_create/array.test +1 -1
- data/test/command/suite/groonga/table_create/hash.test +1 -1
- data/test/command/suite/groonga/table_list/success.test +2 -2
- data/test/command/suite/groonga/table_remove/success.test +1 -1
- data/test/command/suite/groonga/table_remove/unknown-table.test +1 -1
- data/test/command/suite/message/error/unknown-type.expected +1 -1
- data/test/command/suite/message/error/unknown-type.test +1 -1
- data/test/command/suite/search/adjusters/multiple.catalog.json +1 -1
- data/test/command/suite/search/adjusters/multiple.test +3 -3
- data/test/command/suite/search/adjusters/one.catalog.json +1 -1
- data/test/command/suite/search/adjusters/one.test +3 -3
- data/test/command/suite/search/attributes/array.expected +7 -0
- data/test/command/suite/search/attributes/array.test +1 -1
- data/test/command/suite/search/attributes/hash.expected +18 -0
- data/test/command/suite/search/attributes/hash.test +1 -1
- data/test/command/suite/search/complex.expected +12 -0
- data/test/command/suite/search/complex.test +1 -1
- data/test/command/suite/search/condition/nested.catalog.json +37 -0
- data/test/command/suite/search/condition/nested.expected +7 -0
- data/test/command/suite/search/condition/nested.test +103 -2
- data/test/command/suite/search/condition/query.catalog.json +37 -0
- data/test/command/suite/search/condition/query.expected +7 -0
- data/test/command/suite/search/condition/query.test +103 -2
- data/test/command/suite/search/condition/query/nonexistent_column.catalog.json +1 -1
- data/test/command/suite/search/condition/query/nonexistent_column.test +2 -2
- data/test/command/suite/search/condition/query/syntax_error.catalog.json +1 -1
- data/test/command/suite/search/condition/query/syntax_error.test +2 -2
- data/test/command/suite/search/condition/script.catalog.json +37 -0
- data/test/command/suite/search/condition/script.expected +7 -0
- data/test/command/suite/search/condition/script.test +103 -2
- data/test/command/suite/search/error/cyclic-source.test +1 -1
- data/test/command/suite/search/error/deeply-cyclic-source.test +1 -1
- data/test/command/suite/search/error/missing-source-parameter.test +1 -1
- data/test/command/suite/search/error/no-query.test +1 -1
- data/test/command/suite/search/error/unknown-source.test +1 -1
- data/test/command/suite/search/group/count.test +1 -1
- data/test/command/suite/search/group/limit.test +1 -1
- data/test/command/suite/search/group/string.catalog.json +41 -0
- data/test/command/suite/search/group/string.expected +18 -18
- data/test/command/suite/search/group/string.test +67 -22
- data/test/command/suite/search/group/subrecord/with-sort.catalog.json +1 -1
- data/test/command/suite/search/group/subrecord/with-sort.test +5 -5
- data/test/command/suite/search/multiple/chained.catalog.json +37 -0
- data/test/command/suite/search/multiple/chained.expected +14 -0
- data/test/command/suite/search/multiple/chained.test +103 -2
- data/test/command/suite/search/multiple/parallel.expected +14 -0
- data/test/command/suite/search/multiple/parallel.test +1 -1
- data/test/command/suite/search/output/attributes/invalid.catalog.json +1 -1
- data/test/command/suite/search/output/attributes/invalid.test +2 -2
- data/test/command/suite/search/output/attributes/star.catalog.json +23 -0
- data/test/command/suite/search/output/attributes/star.expected +27 -0
- data/test/command/suite/search/output/attributes/star.test +32 -0
- data/test/command/suite/search/range/only-output.expected +7 -0
- data/test/command/suite/search/range/only-output.test +1 -1
- data/test/command/suite/search/range/only-sort.expected +7 -0
- data/test/command/suite/search/range/only-sort.test +1 -1
- data/test/command/suite/search/range/sort-and-output.expected +7 -0
- data/test/command/suite/search/range/sort-and-output.test +1 -1
- data/test/command/suite/search/range/too-large-output-offset.expected +8 -0
- data/test/command/suite/search/range/too-large-output-offset.test +1 -1
- data/test/command/suite/search/range/too-large-sort-offset.expected +8 -0
- data/test/command/suite/search/range/too-large-sort-offset.test +1 -1
- data/test/command/suite/search/response/elapsed_time.catalog.json +1 -1
- data/test/command/suite/search/response/elapsed_time.test +2 -2
- data/test/command/suite/search/response/records/value/time.expected +12 -0
- data/test/command/suite/search/response/records/value/time.test +1 -1
- data/test/command/suite/search/simple.expected +12 -0
- data/test/command/suite/search/simple.test +1 -1
- data/test/command/suite/search/sort/default-offset-limit.expected +7 -0
- data/test/command/suite/search/sort/default-offset-limit.test +1 -1
- data/test/command/suite/search/sort/invisible-column.expected +7 -0
- data/test/command/suite/search/sort/invisible-column.test +1 -1
- data/test/unit/catalog/test_collection_volume.rb +16 -0
- data/test/unit/catalog/test_dataset.rb +36 -0
- data/test/unit/catalog/test_single_volume.rb +9 -0
- data/test/unit/catalog/test_slice.rb +11 -0
- data/test/unit/catalog/test_version1.rb +7 -12
- data/test/unit/catalog/test_version2.rb +7 -0
- data/test/unit/catalog/test_volume_collection.rb +28 -0
- data/test/unit/fixtures/catalog/version1.json +10 -3
- data/test/unit/fixtures/catalog/version2.json +2 -2
- data/test/unit/plugins/groonga/select/test_adapter_output.rb +8 -14
- data/test/unit/plugins/groonga/test_column_create.rb +5 -5
- data/test/unit/plugins/groonga/test_column_remove.rb +2 -2
- data/test/unit/plugins/groonga/test_column_rename.rb +2 -2
- data/test/unit/plugins/groonga/test_delete.rb +2 -2
- data/test/unit/plugins/groonga/test_table_create.rb +9 -9
- data/test/unit/plugins/groonga/test_table_remove.rb +1 -1
- data/test/unit/test_catalog_generator.rb +1 -1
- data/test/unit/test_schema_applier.rb +2 -2
- data/test/unit/test_watch_schema.rb +4 -4
- metadata +241 -72
- data/lib/droonga/engine/command/droonga_engine.rb +0 -441
data/lib/droonga/server.rb
CHANGED
@@ -31,9 +31,9 @@ module Droonga
|
|
31
31
|
Droonga.logger.trace("#{log_tag}: after_run: done")
|
32
32
|
end
|
33
33
|
|
34
|
-
def stop(
|
34
|
+
def stop(stop_gracefully)
|
35
35
|
Droonga.logger.trace("#{log_tag}: stop: start")
|
36
|
-
super(
|
36
|
+
super(stop_gracefully)
|
37
37
|
Droonga.logger.trace("#{log_tag}: stop: done")
|
38
38
|
end
|
39
39
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Copyright (C) 2014 Droonga Project
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License version 2.1 as published by the Free Software Foundation.
|
6
|
+
#
|
7
|
+
# This library is distributed in the hope that it will be useful,
|
8
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
10
|
+
# Lesser General Public License for more details.
|
11
|
+
#
|
12
|
+
# You should have received a copy of the GNU Lesser General Public
|
13
|
+
# License along with this library; if not, write to the Free Software
|
14
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
15
|
+
|
16
|
+
module Droonga
|
17
|
+
module ServiceControlProtocol
|
18
|
+
module Messages
|
19
|
+
STOP_GRACEFUL = "stop-graceful\n"
|
20
|
+
STOP_IMMEDIATELY = "stop-immediately\n"
|
21
|
+
|
22
|
+
READY = "ready\n"
|
23
|
+
FINISH = "finish\n"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/sample/cluster/catalog.json
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
"version": 2,
|
3
3
|
"effectiveDate": "2014-02-28T00:00:00Z",
|
4
4
|
"datasets": {
|
5
|
-
"
|
5
|
+
"Default": {
|
6
6
|
"nWorkers": 4,
|
7
|
-
"plugins": ["groonga", "crud", "search"],
|
7
|
+
"plugins": ["groonga", "crud", "search", "dump"],
|
8
8
|
"replicas": [
|
9
9
|
{
|
10
10
|
"dimension": "_key",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#@disable-logging
|
2
2
|
{
|
3
|
-
"dataset": "
|
3
|
+
"dataset": "Default",
|
4
4
|
"type": "table_create",
|
5
5
|
"body": {
|
6
6
|
"default_tokenizer": "TokenBigram",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
}
|
12
12
|
}
|
13
13
|
{
|
14
|
-
"dataset": "
|
14
|
+
"dataset": "Default",
|
15
15
|
"type": "table_create",
|
16
16
|
"body": {
|
17
17
|
"name": "Documents",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
{
|
23
|
-
"dataset": "
|
23
|
+
"dataset": "Default",
|
24
24
|
"type": "table_create",
|
25
25
|
"body": {
|
26
26
|
"name": "Sections",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
}
|
30
30
|
}
|
31
31
|
{
|
32
|
-
"dataset": "
|
32
|
+
"dataset": "Default",
|
33
33
|
"type": "column_create",
|
34
34
|
"body": {
|
35
35
|
"table": "Sections",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
}
|
40
40
|
}
|
41
41
|
{
|
42
|
-
"dataset": "
|
42
|
+
"dataset": "Default",
|
43
43
|
"type": "column_create",
|
44
44
|
"body": {
|
45
45
|
"table": "Sections",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
{
|
52
|
-
"dataset": "
|
52
|
+
"dataset": "Default",
|
53
53
|
"type": "column_create",
|
54
54
|
"body": {
|
55
55
|
"table": "Sections",
|
@@ -59,7 +59,7 @@
|
|
59
59
|
}
|
60
60
|
}
|
61
61
|
{
|
62
|
-
"dataset": "
|
62
|
+
"dataset": "Default",
|
63
63
|
"type": "column_create",
|
64
64
|
"body": {
|
65
65
|
"table": "Bigram",
|
@@ -70,7 +70,7 @@
|
|
70
70
|
}
|
71
71
|
}
|
72
72
|
{
|
73
|
-
"dataset": "
|
73
|
+
"dataset": "Default",
|
74
74
|
"type": "column_create",
|
75
75
|
"body": {
|
76
76
|
"table": "Bigram",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
}
|
82
82
|
}
|
83
83
|
{
|
84
|
-
"dataset": "
|
84
|
+
"dataset": "Default",
|
85
85
|
"type": "add",
|
86
86
|
"body": {
|
87
87
|
"table": "Documents",
|
@@ -89,7 +89,7 @@
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
{
|
92
|
-
"dataset": "
|
92
|
+
"dataset": "Default",
|
93
93
|
"type": "add",
|
94
94
|
"body": {
|
95
95
|
"table": "Sections",
|
@@ -102,7 +102,7 @@
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
{
|
105
|
-
"dataset": "
|
105
|
+
"dataset": "Default",
|
106
106
|
"type": "add",
|
107
107
|
"body": {
|
108
108
|
"table": "Sections",
|
@@ -115,7 +115,7 @@
|
|
115
115
|
}
|
116
116
|
}
|
117
117
|
{
|
118
|
-
"dataset": "
|
118
|
+
"dataset": "Default",
|
119
119
|
"type": "add",
|
120
120
|
"body": {
|
121
121
|
"table": "Sections",
|
@@ -128,7 +128,7 @@
|
|
128
128
|
}
|
129
129
|
}
|
130
130
|
{
|
131
|
-
"dataset": "
|
131
|
+
"dataset": "Default",
|
132
132
|
"type": "add",
|
133
133
|
"body": {
|
134
134
|
"table": "Sections",
|
@@ -141,7 +141,7 @@
|
|
141
141
|
}
|
142
142
|
}
|
143
143
|
{
|
144
|
-
"dataset": "
|
144
|
+
"dataset": "Default",
|
145
145
|
"type": "add",
|
146
146
|
"body": {
|
147
147
|
"table": "Sections",
|
@@ -154,7 +154,7 @@
|
|
154
154
|
}
|
155
155
|
}
|
156
156
|
{
|
157
|
-
"dataset": "
|
157
|
+
"dataset": "Default",
|
158
158
|
"type": "add",
|
159
159
|
"body": {
|
160
160
|
"table": "Sections",
|
@@ -167,7 +167,7 @@
|
|
167
167
|
}
|
168
168
|
}
|
169
169
|
{
|
170
|
-
"dataset": "
|
170
|
+
"dataset": "Default",
|
171
171
|
"type": "add",
|
172
172
|
"body": {
|
173
173
|
"table": "Sections",
|
@@ -180,7 +180,7 @@
|
|
180
180
|
}
|
181
181
|
}
|
182
182
|
{
|
183
|
-
"dataset": "
|
183
|
+
"dataset": "Default",
|
184
184
|
"type": "add",
|
185
185
|
"body": {
|
186
186
|
"table": "Sections",
|
@@ -193,7 +193,7 @@
|
|
193
193
|
}
|
194
194
|
}
|
195
195
|
{
|
196
|
-
"dataset": "
|
196
|
+
"dataset": "Default",
|
197
197
|
"type": "add",
|
198
198
|
"body": {
|
199
199
|
"table": "Sections",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#@disable-logging
|
2
2
|
{
|
3
3
|
"type": "table_create",
|
4
|
-
"dataset": "
|
4
|
+
"dataset": "Default",
|
5
5
|
"body": {
|
6
6
|
"name" : "Event",
|
7
7
|
"flags" : "TABLE_HASH_KEY"
|
@@ -9,7 +9,7 @@
|
|
9
9
|
}
|
10
10
|
{
|
11
11
|
"type": "column_create",
|
12
|
-
"dataset": "
|
12
|
+
"dataset": "Default",
|
13
13
|
"body": {
|
14
14
|
"table" : "Event",
|
15
15
|
"name" : "start",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
}
|
18
18
|
}
|
19
19
|
{
|
20
|
-
"dataset": "
|
20
|
+
"dataset": "Default",
|
21
21
|
"type": "add",
|
22
22
|
"body": {
|
23
23
|
"table": "Event",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
}
|
29
29
|
}
|
30
30
|
{
|
31
|
-
"dataset": "
|
31
|
+
"dataset": "Default",
|
32
32
|
"type": "add",
|
33
33
|
"body": {
|
34
34
|
"table": "Event",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#@disable-logging
|
2
2
|
{
|
3
3
|
"type": "table_create",
|
4
|
-
"dataset": "
|
4
|
+
"dataset": "Default",
|
5
5
|
"body": {
|
6
6
|
"name" : "User",
|
7
7
|
"flags" : "TABLE_NO_KEY"
|
@@ -9,7 +9,7 @@
|
|
9
9
|
}
|
10
10
|
{
|
11
11
|
"type": "column_create",
|
12
|
-
"dataset": "
|
12
|
+
"dataset": "Default",
|
13
13
|
"body": {
|
14
14
|
"table" : "User",
|
15
15
|
"name" : "name",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
}
|
19
19
|
{
|
20
20
|
"type": "column_create",
|
21
|
-
"dataset": "
|
21
|
+
"dataset": "Default",
|
22
22
|
"body": {
|
23
23
|
"table" : "User",
|
24
24
|
"name" : "age",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
}
|
28
28
|
{
|
29
29
|
"type": "column_create",
|
30
|
-
"dataset": "
|
30
|
+
"dataset": "Default",
|
31
31
|
"body": {
|
32
32
|
"table" : "User",
|
33
33
|
"name" : "email",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#@disable-logging
|
2
2
|
{
|
3
3
|
"type": "table_create",
|
4
|
-
"dataset": "
|
4
|
+
"dataset": "Default",
|
5
5
|
"body": {
|
6
6
|
"name" : "User",
|
7
7
|
"flags" : "TABLE_PAT_KEY"
|
@@ -9,7 +9,7 @@
|
|
9
9
|
}
|
10
10
|
{
|
11
11
|
"type": "column_create",
|
12
|
-
"dataset": "
|
12
|
+
"dataset": "Default",
|
13
13
|
"body": {
|
14
14
|
"table" : "User",
|
15
15
|
"name" : "name",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
}
|
19
19
|
{
|
20
20
|
"type": "column_create",
|
21
|
-
"dataset": "
|
21
|
+
"dataset": "Default",
|
22
22
|
"body": {
|
23
23
|
"table" : "User",
|
24
24
|
"name" : "age",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
}
|
28
28
|
{
|
29
29
|
"type": "column_create",
|
30
|
-
"dataset": "
|
30
|
+
"dataset": "Default",
|
31
31
|
"body": {
|
32
32
|
"table" : "User",
|
33
33
|
"name" : "email",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
}
|
38
38
|
{
|
39
39
|
"type": "column_create",
|
40
|
-
"dataset": "
|
40
|
+
"dataset": "Default",
|
41
41
|
"body": {
|
42
42
|
"table" : "User",
|
43
43
|
"name" : "birthday",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#@require-catalog-version 2
|
2
2
|
{
|
3
3
|
"type": "add",
|
4
|
-
"dataset": "
|
4
|
+
"dataset": "Default",
|
5
5
|
"body": {
|
6
6
|
"table": "Products",
|
7
7
|
"key": "Groonga",
|
@@ -12,7 +12,7 @@
|
|
12
12
|
}
|
13
13
|
{
|
14
14
|
"type": "add",
|
15
|
-
"dataset": "
|
15
|
+
"dataset": "Default",
|
16
16
|
"body": {
|
17
17
|
"table": "Products",
|
18
18
|
"key": "Rroonga",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
}
|
24
24
|
{
|
25
25
|
"type": "add",
|
26
|
-
"dataset": "
|
26
|
+
"dataset": "Default",
|
27
27
|
"body": {
|
28
28
|
"table": "Products",
|
29
29
|
"key": "Ruby",
|
@@ -34,7 +34,7 @@
|
|
34
34
|
}
|
35
35
|
{
|
36
36
|
"type": "search",
|
37
|
-
"dataset": "
|
37
|
+
"dataset": "Default",
|
38
38
|
"body": {
|
39
39
|
"queries": {
|
40
40
|
"products": {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#@require-catalog-version 2
|
2
2
|
{
|
3
3
|
"type": "add",
|
4
|
-
"dataset": "
|
4
|
+
"dataset": "Default",
|
5
5
|
"body": {
|
6
6
|
"table": "Products",
|
7
7
|
"key": 1,
|
@@ -12,7 +12,7 @@
|
|
12
12
|
}
|
13
13
|
{
|
14
14
|
"type": "add",
|
15
|
-
"dataset": "
|
15
|
+
"dataset": "Default",
|
16
16
|
"body": {
|
17
17
|
"table": "Products",
|
18
18
|
"key": 2,
|
@@ -23,7 +23,7 @@
|
|
23
23
|
}
|
24
24
|
{
|
25
25
|
"type": "add",
|
26
|
-
"dataset": "
|
26
|
+
"dataset": "Default",
|
27
27
|
"body": {
|
28
28
|
"table": "Products",
|
29
29
|
"key": 3,
|
@@ -34,7 +34,7 @@
|
|
34
34
|
}
|
35
35
|
{
|
36
36
|
"type": "search",
|
37
|
-
"dataset": "
|
37
|
+
"dataset": "Default",
|
38
38
|
"body": {
|
39
39
|
"queries": {
|
40
40
|
"products": {
|