rroonga 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -39
- data/bin/grndump +8 -1
- data/doc/text/news.textile +21 -1
- data/ext/groonga/extconf.rb +1 -6
- data/ext/groonga/rb-grn-table.c +20 -0
- data/ext/groonga/rb-grn.h +1 -1
- data/ext/groonga/rb-groonga.c +42 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/groonga/dumper.rb +7 -3
- data/lib/groonga/record.rb +19 -1
- data/rroonga-build.rb +5 -5
- data/test/test-array.rb +14 -1
- data/test/test-database-dumper.rb +68 -83
- data/test/test-database.rb +1 -1
- data/test/test-double-array-trie.rb +16 -1
- data/test/test-hash.rb +16 -1
- data/test/test-lock-timeout.rb +29 -0
- data/test/test-patricia-trie.rb +16 -1
- data/test/test-record.rb +194 -160
- data/test/test-variable-size-column.rb +1 -1
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +15 -1
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +3 -3
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +3 -3
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +1 -1
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/development.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +10 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +10 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +32 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt +49 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +5 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_in_circle.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_in_rectangle.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/now.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/rand.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +5 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/pseudo_column.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +19 -0
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +3 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/community.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/development.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/genindex.html +269 -183
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/index.html +41 -38
- data/vendor/local/share/doc/groonga/en/html/install.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/install/others.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/limitations.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news.html +239 -201
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +41 -38
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +46 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +205 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +78 -76
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +75 -73
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +54 -52
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +62 -60
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +44 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +117 -115
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +80 -78
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +56 -54
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +36 -34
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +24 -21
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/search.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/package.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/spec.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/development.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +10 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +10 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +32 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt +49 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +5 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_in_circle.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_in_rectangle.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/now.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/rand.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +5 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/pseudo_column.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/community.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/development.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +274 -183
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/index.html +41 -38
- data/vendor/local/share/doc/groonga/ja/html/install.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news.html +264 -224
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +41 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +46 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +206 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +55 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +78 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +74 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +54 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +62 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +42 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +44 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +117 -115
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +80 -78
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +56 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +36 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +24 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/search.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/spec.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +20 -18
- data/vendor/local/share/man/ja/man1/groonga.1 +198 -132
- data/vendor/local/share/man/man1/groonga.1 +619 -554
- metadata +8 -14
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/add.txt +0 -104
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/get.txt +0 -80
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/set.txt +0 -105
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +0 -199
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +0 -180
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +0 -201
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/add.txt +0 -104
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/get.txt +0 -80
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/set.txt +0 -105
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +0 -200
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +0 -181
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +0 -202
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a3b4a2e6ad798be521e7b33fe7b214f5a783675
|
4
|
+
data.tar.gz: ba178733fbdc374db16f015e88cef71d79f51ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928b547c85106872332eac02588ce0423f5e832059bb3eb4cb2ec9d4afc62722997e8dabcc224c55af358051a287b1683752cb680421b4adea4253c40f427c38
|
7
|
+
data.tar.gz: 4831c654e3d3c92709ab23628c8ba90cbd5d60ab84b360cbc354d01c17cd5ec6b6b4a6210b4ec3d1d71cf846826eb63bea5fa29884cdc7e750cf41e6cb4f62ad
|
data/Rakefile
CHANGED
@@ -26,13 +26,6 @@ require "bundler/gem_helper"
|
|
26
26
|
require "rake/extensiontask"
|
27
27
|
require "packnga"
|
28
28
|
|
29
|
-
if YAML.const_defined?(:ENGINE)
|
30
|
-
begin
|
31
|
-
YAML::ENGINE.yamler = "psych"
|
32
|
-
rescue LoadError
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
29
|
base_dir = File.join(File.dirname(__FILE__))
|
37
30
|
|
38
31
|
groonga_ext_dir = File.join(base_dir, "ext", "groonga")
|
@@ -105,38 +98,7 @@ relative_binary_dir = File.join("vendor", "local")
|
|
105
98
|
vendor_dir = File.join(base_dir, relative_vendor_dir)
|
106
99
|
binary_dir = File.join(base_dir, relative_binary_dir)
|
107
100
|
|
108
|
-
groonga_win32_i386_p = ENV["
|
109
|
-
|
110
|
-
namespace :win32 do
|
111
|
-
namespace :groonga do
|
112
|
-
task :download do
|
113
|
-
require "open-uri"
|
114
|
-
require "./rroonga-build"
|
115
|
-
groonga_version = RroongaBuild::LatestGroongaVersion::VERSION.join(".")
|
116
|
-
base_name = "groonga-#{groonga_version}-"
|
117
|
-
if groonga_win32_i386_p
|
118
|
-
base_name << "x86"
|
119
|
-
else
|
120
|
-
base_name << "x64"
|
121
|
-
end
|
122
|
-
base_name << ".zip"
|
123
|
-
base_url = "http://packages.groonga.org/windows/groonga/"
|
124
|
-
Dir.chdir(base_dir) do
|
125
|
-
unless File.exist?(base_name)
|
126
|
-
open("#{base_url}#{base_name}", "rb") do |zip|
|
127
|
-
File.open(base_name, "wb") do |output|
|
128
|
-
output.print(zip.read)
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
|
-
sh("unzip", base_name)
|
133
|
-
rm_rf(relative_binary_dir)
|
134
|
-
mkdir_p(File.dirname(relative_binary_dir))
|
135
|
-
mv(File.basename(base_name, ".*"), relative_binary_dir)
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
101
|
+
groonga_win32_i386_p = ENV["RROONGA_USE_GROONGA_X64"].nil?
|
140
102
|
|
141
103
|
Rake::ExtensionTask.new("groonga", spec) do |ext|
|
142
104
|
if groonga_win32_i386_p
|
data/bin/grndump
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
#
|
4
|
-
# Copyright (C) 2011-
|
4
|
+
# Copyright (C) 2011-2014 Kouhei Sutou <kou@clear-code.com>
|
5
5
|
#
|
6
6
|
# This library is free software; you can redistribute it and/or
|
7
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -26,6 +26,7 @@ options = OpenStruct.new
|
|
26
26
|
options.tables = []
|
27
27
|
options.exclude_tables = []
|
28
28
|
options.dump_schema = true
|
29
|
+
options.dump_indexes = true
|
29
30
|
options.dump_tables = true
|
30
31
|
options.order_by = "id"
|
31
32
|
option_parser = OptionParser.new do |parser|
|
@@ -37,6 +38,11 @@ option_parser = OptionParser.new do |parser|
|
|
37
38
|
options.dump_schema = boolean
|
38
39
|
end
|
39
40
|
|
41
|
+
parser.on("--no-dump-indexes",
|
42
|
+
"don't dump indexes.") do |boolean|
|
43
|
+
options.dump_indexes = boolean
|
44
|
+
end
|
45
|
+
|
40
46
|
parser.on("--no-dump-tables",
|
41
47
|
"don't dump tables.") do |boolean|
|
42
48
|
options.dump_tables = boolean
|
@@ -88,6 +94,7 @@ dumper_options = {
|
|
88
94
|
:output => $stdout,
|
89
95
|
:error_output => $stderr,
|
90
96
|
:dump_schema => options.dump_schema,
|
97
|
+
:dump_indexes => options.dump_indexes,
|
91
98
|
:dump_tables => options.dump_tables,
|
92
99
|
:tables => options.tables,
|
93
100
|
:exclude_tables => options.exclude_tables,
|
data/doc/text/news.textile
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
h1. NEWS
|
2
2
|
|
3
|
+
h2(#3-1-2). 3.1.2: 2014-01-29
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* Supported Groonga 3.1.2. Groonga 3.1.1 or older are not supported.
|
8
|
+
* Added {Groonga::Table#support_value?}.
|
9
|
+
* Added {Groonga::Record#support_value?}.
|
10
|
+
* Added @_value@ value to {Groonga::Record#attributes} result.
|
11
|
+
[groonga-dev,02046] [Suggested by ongaeshi]
|
12
|
+
* Added column values to {Groonga::Record#inspect} result.
|
13
|
+
[groonga-dev,02048] [Suggested by ongaeshi]
|
14
|
+
* grndump: Added @--dump-indexes@ option that controls schema for
|
15
|
+
indexes output. It is useful to dump only schema for indexes.
|
16
|
+
* Added {Groonga.lock_timeout}.
|
17
|
+
* Added {Groonga.lock_timeout=}.
|
18
|
+
|
19
|
+
h3. Thanks
|
20
|
+
|
21
|
+
* ongaeshi
|
22
|
+
|
3
23
|
h2(#3-1-1). 3.1.1: 2013-12-29
|
4
24
|
|
5
25
|
h3. Improvements
|
@@ -9,7 +29,7 @@ h3. Improvements
|
|
9
29
|
all table information.
|
10
30
|
* [groonga-database-inspect]: Added @--no-columns@ option for hiding
|
11
31
|
all column information.
|
12
|
-
* [doc] Updated English mailing list to use
|
32
|
+
* [doc] Updated English mailing list to use Groonga-talk.
|
13
33
|
[GitHub#14] [Patch by Masafumi Yokoyama]
|
14
34
|
* {Groonga::Expression#append_operation} supports operator name.
|
15
35
|
* {Groonga::Expression#append_constant} supports operator name.
|
data/ext/groonga/extconf.rb
CHANGED
@@ -22,12 +22,7 @@ require "fileutils"
|
|
22
22
|
require "shellwords"
|
23
23
|
require "open-uri"
|
24
24
|
|
25
|
-
|
26
|
-
require "pkg-config"
|
27
|
-
rescue LoadError
|
28
|
-
require "rubygems"
|
29
|
-
require "pkg-config"
|
30
|
-
end
|
25
|
+
require "pkg-config"
|
31
26
|
|
32
27
|
base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
|
33
28
|
$LOAD_PATH.unshift(base_dir.to_s)
|
data/ext/groonga/rb-grn-table.c
CHANGED
@@ -2282,6 +2282,24 @@ rb_grn_table_support_key_p (VALUE self)
|
|
2282
2282
|
return Qfalse;
|
2283
2283
|
}
|
2284
2284
|
|
2285
|
+
/*
|
2286
|
+
* @overload support_value?
|
2287
|
+
*
|
2288
|
+
* @return @true@ if the table is created with value type, @false@
|
2289
|
+
* otherwise.
|
2290
|
+
*/
|
2291
|
+
static VALUE
|
2292
|
+
rb_grn_table_support_value_p (VALUE self)
|
2293
|
+
{
|
2294
|
+
grn_id range_id;
|
2295
|
+
|
2296
|
+
rb_grn_table_deconstruct(SELF(self), NULL, NULL,
|
2297
|
+
NULL, NULL,
|
2298
|
+
NULL, &range_id, NULL,
|
2299
|
+
NULL);
|
2300
|
+
return CBOOL2RVAL(range_id != GRN_ID_NIL);
|
2301
|
+
}
|
2302
|
+
|
2285
2303
|
/*
|
2286
2304
|
* グループ化したとき、テーブルにグループに含まれるレコード
|
2287
2305
|
* 数を格納できる場合は +true+ 、格納できない場合は +false+ を返
|
@@ -2503,6 +2521,8 @@ rb_grn_init_table (VALUE mGrn)
|
|
2503
2521
|
|
2504
2522
|
rb_define_method(rb_cGrnTable, "support_key?",
|
2505
2523
|
rb_grn_table_support_key_p, 0);
|
2524
|
+
rb_define_method(rb_cGrnTable, "support_value?",
|
2525
|
+
rb_grn_table_support_value_p, 0);
|
2506
2526
|
rb_define_method(rb_cGrnTable, "support_sub_records?",
|
2507
2527
|
rb_grn_table_support_sub_records_p, 0);
|
2508
2528
|
rb_define_method(rb_cGrnTable, "have_n_sub_records_space?",
|
data/ext/groonga/rb-grn.h
CHANGED
data/ext/groonga/rb-groonga.c
CHANGED
@@ -107,6 +107,47 @@ rb_grn_init_version (VALUE mGrn)
|
|
107
107
|
rb_define_const(mGrn, "BINDINGS_VERSION", bindings_version);
|
108
108
|
}
|
109
109
|
|
110
|
+
/*
|
111
|
+
* Returns the current lock timeout.
|
112
|
+
*
|
113
|
+
* See
|
114
|
+
* http://groonga.org/docs/reference/api/global_configurations.html
|
115
|
+
* about lock timeout.
|
116
|
+
*
|
117
|
+
* @overload lock_timeout
|
118
|
+
* @return [Integer] The current lock timeout.
|
119
|
+
*/
|
120
|
+
static VALUE
|
121
|
+
rb_grn_s_get_lock_timeout (VALUE klass)
|
122
|
+
{
|
123
|
+
return INT2NUM(grn_get_lock_timeout());
|
124
|
+
}
|
125
|
+
|
126
|
+
/*
|
127
|
+
* Sets the current lock timeout.
|
128
|
+
*
|
129
|
+
* @overload lock_timeout=(timeout)
|
130
|
+
* @param [Integer] timeout The new lock timeout.
|
131
|
+
*
|
132
|
+
* @see {#lock_timeout}
|
133
|
+
* @since 3.1.2
|
134
|
+
*/
|
135
|
+
static VALUE
|
136
|
+
rb_grn_s_set_lock_timeout (VALUE klass, VALUE timeout)
|
137
|
+
{
|
138
|
+
grn_set_lock_timeout(NUM2INT(timeout));
|
139
|
+
return Qnil;
|
140
|
+
}
|
141
|
+
|
142
|
+
static void
|
143
|
+
rb_grn_init_lock_timeout (VALUE mGrn)
|
144
|
+
{
|
145
|
+
rb_define_singleton_method(mGrn, "lock_timeout",
|
146
|
+
rb_grn_s_get_lock_timeout, 0);
|
147
|
+
rb_define_singleton_method(mGrn, "lock_timeout=",
|
148
|
+
rb_grn_s_set_lock_timeout, 1);
|
149
|
+
}
|
150
|
+
|
110
151
|
void
|
111
152
|
Init_groonga (void)
|
112
153
|
{
|
@@ -120,6 +161,7 @@ Init_groonga (void)
|
|
120
161
|
rb_set_end_proc(finish_groonga, Qnil);
|
121
162
|
|
122
163
|
rb_grn_init_version(mGrn);
|
164
|
+
rb_grn_init_lock_timeout(mGrn);
|
123
165
|
|
124
166
|
rb_grn_init_utils(mGrn);
|
125
167
|
rb_grn_init_encoding(mGrn);
|
data/lib/1.9/groonga.so
CHANGED
Binary file
|
data/lib/2.0/groonga.so
CHANGED
Binary file
|
data/lib/2.1/groonga.so
CHANGED
Binary file
|
data/lib/groonga/dumper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2011-
|
3
|
+
# Copyright (C) 2011-2014 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -55,11 +55,15 @@ module Groonga
|
|
55
55
|
options[:database] = options[:context].database
|
56
56
|
end
|
57
57
|
options[:dump_schema] = true if options[:dump_schema].nil?
|
58
|
+
options[:dump_indexes] = true if options[:dump_indexes].nil?
|
58
59
|
options[:dump_tables] = true if options[:dump_tables].nil?
|
59
60
|
|
61
|
+
if options[:dump_schema] or options[:dump_indexes]
|
62
|
+
schema_dumper = SchemaDumper.new(options.merge(:syntax => :command))
|
63
|
+
end
|
64
|
+
|
60
65
|
if options[:dump_schema]
|
61
66
|
dump_plugins(options)
|
62
|
-
schema_dumper = SchemaDumper.new(options.merge(:syntax => :command))
|
63
67
|
schema_dumper.dump_tables
|
64
68
|
if schema_dumper.have_reference_columns?
|
65
69
|
options[:output].write("\n")
|
@@ -67,7 +71,7 @@ module Groonga
|
|
67
71
|
end
|
68
72
|
end
|
69
73
|
dump_tables(options) if options[:dump_tables]
|
70
|
-
if options[:
|
74
|
+
if options[:dump_indexes] and schema_dumper.have_index_columns?
|
71
75
|
options[:output].write("\n")
|
72
76
|
schema_dumper.dump_index_columns
|
73
77
|
end
|
data/lib/groonga/record.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2009-
|
3
|
+
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -117,6 +117,12 @@ module Groonga
|
|
117
117
|
@table.support_key?
|
118
118
|
end
|
119
119
|
|
120
|
+
# @return @true@ if the table that the record belongs to is
|
121
|
+
# created with value type, @false@ otherwise.
|
122
|
+
def support_value?
|
123
|
+
@table.support_value?
|
124
|
+
end
|
125
|
+
|
120
126
|
# 名前が _name_ のカラムがレコードの所属するテーブルで定義され
|
121
127
|
# ているなら +true+ を返す。
|
122
128
|
def have_column?(name)
|
@@ -344,6 +350,11 @@ module Groonga
|
|
344
350
|
@added = added
|
345
351
|
end
|
346
352
|
|
353
|
+
# @private
|
354
|
+
def inspect
|
355
|
+
super.gsub(/>\z/, ", attributes: #{attributes.inspect}>")
|
356
|
+
end
|
357
|
+
|
347
358
|
private
|
348
359
|
def normalize_column_name(name)
|
349
360
|
name.to_s
|
@@ -429,6 +440,7 @@ module Groonga
|
|
429
440
|
|
430
441
|
add_id(attributes, record)
|
431
442
|
add_key(attributes, record)
|
443
|
+
add_value(attributes, record)
|
432
444
|
add_score(attributes, record)
|
433
445
|
add_n_sub_records(attributes, record)
|
434
446
|
add_columns(attributes, record)
|
@@ -482,6 +494,12 @@ module Groonga
|
|
482
494
|
end
|
483
495
|
end
|
484
496
|
|
497
|
+
def add_value(attributes, record)
|
498
|
+
if record.support_value?
|
499
|
+
attributes["_value"] = build_value(record.value)
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
485
503
|
def add_score(attributes, record)
|
486
504
|
if record.support_score?
|
487
505
|
attributes["_score"] = record.score
|
data/rroonga-build.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2009-
|
3
|
+
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -18,16 +18,16 @@
|
|
18
18
|
module RroongaBuild
|
19
19
|
module RequiredGroongaVersion
|
20
20
|
MAJOR = 3
|
21
|
-
MINOR =
|
22
|
-
MICRO =
|
21
|
+
MINOR = 1
|
22
|
+
MICRO = 2
|
23
23
|
VERSION = [MAJOR, MINOR, MICRO]
|
24
|
-
RELEASED_DATE = Time.utc(
|
24
|
+
RELEASED_DATE = Time.utc(2014, 1, 29)
|
25
25
|
end
|
26
26
|
|
27
27
|
module LatestGroongaVersion
|
28
28
|
MAJOR = 3
|
29
29
|
MINOR = 1
|
30
|
-
MICRO =
|
30
|
+
MICRO = 2
|
31
31
|
VERSION = [MAJOR, MINOR, MICRO]
|
32
32
|
end
|
33
33
|
|
data/test/test-array.rb
CHANGED
@@ -22,6 +22,19 @@ class ArrayTest < Test::Unit::TestCase
|
|
22
22
|
assert_not_predicate(Groonga::Array.create(:name => "Users"), :support_key?)
|
23
23
|
end
|
24
24
|
|
25
|
+
class SupportValueTest < self
|
26
|
+
def test_have_value_type
|
27
|
+
assert_predicate(Groonga::Array.create(:name => "Users",
|
28
|
+
:value_type => "Int32"),
|
29
|
+
:support_value?)
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_no_value_type
|
33
|
+
assert_not_predicate(Groonga::Array.create(:name => "Users"),
|
34
|
+
:support_value?)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
25
38
|
def test_inspect_size
|
26
39
|
path = @tables_dir + "named.groonga"
|
27
40
|
contain_table = Groonga::Array.create(:name => "name", :path => path.to_s)
|
@@ -108,7 +121,7 @@ class ArrayTest < Test::Unit::TestCase
|
|
108
121
|
users.add(:name => "user #{i}" * 1000,
|
109
122
|
:address => "address #{i}" * 1000)
|
110
123
|
end
|
111
|
-
assert_equal(
|
124
|
+
assert_equal(3, users.defrag)
|
112
125
|
end
|
113
126
|
|
114
127
|
def test_rename
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2011-
|
1
|
+
# Copyright (C) 2011-2014 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -69,17 +69,17 @@ class DatabaseDumperTest < Test::Unit::TestCase
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def dumped_schema
|
72
|
-
<<-
|
72
|
+
<<-SCHEMA
|
73
73
|
#{dumped_schema_tables}
|
74
74
|
|
75
75
|
#{dumped_schema_reference_columns}
|
76
76
|
|
77
77
|
#{dumped_schema_index_columns}
|
78
|
-
|
78
|
+
SCHEMA
|
79
79
|
end
|
80
80
|
|
81
81
|
def dumped_schema_tables
|
82
|
-
<<-
|
82
|
+
<<-SCHEMA.chomp
|
83
83
|
table_create Posts TABLE_NO_KEY
|
84
84
|
column_create Posts created_at COLUMN_SCALAR Time
|
85
85
|
column_create Posts n_goods COLUMN_SCALAR UInt32
|
@@ -93,22 +93,22 @@ column_create Tags name COLUMN_SCALAR Text
|
|
93
93
|
|
94
94
|
table_create Users TABLE_HASH_KEY --key_type ShortText
|
95
95
|
column_create Users name COLUMN_SCALAR Text
|
96
|
-
|
96
|
+
SCHEMA
|
97
97
|
end
|
98
98
|
|
99
99
|
def dumped_schema_reference_columns
|
100
|
-
<<-
|
100
|
+
<<-SCHEMA.chomp
|
101
101
|
column_create Posts author COLUMN_SCALAR Users
|
102
102
|
column_create Posts tags COLUMN_VECTOR Tags
|
103
|
-
|
103
|
+
SCHEMA
|
104
104
|
end
|
105
105
|
|
106
106
|
def dumped_schema_index_columns
|
107
|
-
<<-
|
107
|
+
<<-SCHEMA.chomp
|
108
108
|
column_create Tags Posts_tag_text COLUMN_INDEX Posts tag_text
|
109
109
|
|
110
110
|
column_create Users Posts_author COLUMN_INDEX Posts author
|
111
|
-
|
111
|
+
SCHEMA
|
112
112
|
end
|
113
113
|
|
114
114
|
class EmptyTest < self
|
@@ -130,117 +130,115 @@ EOS
|
|
130
130
|
:title => "Why search engine find?")
|
131
131
|
end
|
132
132
|
|
133
|
-
def
|
134
|
-
|
135
|
-
#{dumped_schema_tables}
|
136
|
-
|
137
|
-
#{dumped_schema_reference_columns}
|
138
|
-
|
133
|
+
def dumped_table_posts
|
134
|
+
<<-TABLE.chomp
|
139
135
|
load --table Posts
|
140
136
|
[
|
141
137
|
["_id","author","created_at","n_goods","published","rank","tag_text","tags","title"],
|
142
138
|
[1,"mori",1268034720.0,4,true,10,"search mori",["search","mori"],"Why search engine find?"]
|
143
139
|
]
|
140
|
+
TABLE
|
141
|
+
end
|
144
142
|
|
143
|
+
def dumped_table_tags
|
144
|
+
<<-TABLE.chomp
|
145
145
|
load --table Tags
|
146
146
|
[
|
147
147
|
["_key","name"],
|
148
148
|
["search",""],
|
149
149
|
["mori",""]
|
150
150
|
]
|
151
|
+
TABLE
|
152
|
+
end
|
151
153
|
|
154
|
+
def dumped_table_users
|
155
|
+
<<-TABLE.chomp
|
152
156
|
load --table Users
|
153
157
|
[
|
154
158
|
["_key","name"],
|
155
159
|
["mori",""]
|
156
160
|
]
|
161
|
+
TABLE
|
162
|
+
end
|
163
|
+
|
164
|
+
def dumped_tables
|
165
|
+
<<-TABLES.chomp
|
166
|
+
#{dumped_table_posts}
|
167
|
+
|
168
|
+
#{dumped_table_tags}
|
169
|
+
|
170
|
+
#{dumped_table_users}
|
171
|
+
TABLES
|
172
|
+
end
|
173
|
+
|
174
|
+
def test_default
|
175
|
+
assert_equal(<<-DUMP, dump)
|
176
|
+
#{dumped_schema_tables}
|
177
|
+
|
178
|
+
#{dumped_schema_reference_columns}
|
179
|
+
|
180
|
+
#{dumped_tables}
|
157
181
|
|
158
182
|
#{dumped_schema_index_columns}
|
159
|
-
|
183
|
+
DUMP
|
160
184
|
end
|
161
185
|
|
162
186
|
def test_limit_tables
|
163
|
-
assert_equal(<<-
|
187
|
+
assert_equal(<<-DUMP, dump(:tables => ["Posts"]))
|
164
188
|
#{dumped_schema_tables}
|
165
189
|
|
166
190
|
#{dumped_schema_reference_columns}
|
167
191
|
|
168
|
-
|
169
|
-
[
|
170
|
-
["_id","author","created_at","n_goods","published","rank","tag_text","tags","title"],
|
171
|
-
[1,"mori",1268034720.0,4,true,10,"search mori",["search","mori"],"Why search engine find?"]
|
172
|
-
]
|
192
|
+
#{dumped_table_posts}
|
173
193
|
|
174
194
|
#{dumped_schema_index_columns}
|
175
|
-
|
195
|
+
DUMP
|
176
196
|
end
|
177
197
|
|
178
198
|
def test_limit_tables_with_regexp
|
179
|
-
assert_equal(<<-
|
199
|
+
assert_equal(<<-DUMP, dump(:tables => [/Posts?/]))
|
180
200
|
#{dumped_schema_tables}
|
181
201
|
|
182
202
|
#{dumped_schema_reference_columns}
|
183
203
|
|
184
|
-
|
185
|
-
[
|
186
|
-
["_id","author","created_at","n_goods","published","rank","tag_text","tags","title"],
|
187
|
-
[1,"mori",1268034720.0,4,true,10,"search mori",["search","mori"],"Why search engine find?"]
|
188
|
-
]
|
204
|
+
#{dumped_table_posts}
|
189
205
|
|
190
206
|
#{dumped_schema_index_columns}
|
191
|
-
|
207
|
+
DUMP
|
192
208
|
end
|
193
209
|
|
194
210
|
def test_exclude_tables
|
195
211
|
dump_options = {
|
196
212
|
:exclude_tables => ["Posts"],
|
197
213
|
}
|
198
|
-
assert_equal(<<-
|
214
|
+
assert_equal(<<-DUMP, dump(dump_options))
|
199
215
|
#{dumped_schema_tables}
|
200
216
|
|
201
217
|
#{dumped_schema_reference_columns}
|
202
218
|
|
203
|
-
|
204
|
-
[
|
205
|
-
["_key","name"],
|
206
|
-
["search",""],
|
207
|
-
["mori",""]
|
208
|
-
]
|
219
|
+
#{dumped_table_tags}
|
209
220
|
|
210
|
-
|
211
|
-
[
|
212
|
-
["_key","name"],
|
213
|
-
["mori",""]
|
214
|
-
]
|
221
|
+
#{dumped_table_users}
|
215
222
|
|
216
223
|
#{dumped_schema_index_columns}
|
217
|
-
|
224
|
+
DUMP
|
218
225
|
end
|
219
226
|
|
220
227
|
def test_exclude_tables_with_regexp
|
221
228
|
dump_options = {
|
222
229
|
:exclude_tables => [/Posts?/],
|
223
230
|
}
|
224
|
-
assert_equal(<<-
|
231
|
+
assert_equal(<<-DUMP, dump(dump_options))
|
225
232
|
#{dumped_schema_tables}
|
226
233
|
|
227
234
|
#{dumped_schema_reference_columns}
|
228
235
|
|
229
|
-
|
230
|
-
[
|
231
|
-
["_key","name"],
|
232
|
-
["search",""],
|
233
|
-
["mori",""]
|
234
|
-
]
|
236
|
+
#{dumped_table_tags}
|
235
237
|
|
236
|
-
|
237
|
-
[
|
238
|
-
["_key","name"],
|
239
|
-
["mori",""]
|
240
|
-
]
|
238
|
+
#{dumped_table_users}
|
241
239
|
|
242
240
|
#{dumped_schema_index_columns}
|
243
|
-
|
241
|
+
DUMP
|
244
242
|
end
|
245
243
|
|
246
244
|
def test_tables_combination
|
@@ -248,42 +246,29 @@ EOS
|
|
248
246
|
:exclude_tables => ["Posts"],
|
249
247
|
:tables => ["Posts", "Users"],
|
250
248
|
}
|
251
|
-
assert_equal(<<-
|
249
|
+
assert_equal(<<-DUMP, dump(dump_options))
|
252
250
|
#{dumped_schema_tables}
|
253
251
|
|
254
252
|
#{dumped_schema_reference_columns}
|
255
253
|
|
256
|
-
|
257
|
-
[
|
258
|
-
["_key","name"],
|
259
|
-
["mori",""]
|
260
|
-
]
|
254
|
+
#{dumped_table_users}
|
261
255
|
|
262
256
|
#{dumped_schema_index_columns}
|
263
|
-
|
257
|
+
DUMP
|
264
258
|
end
|
265
259
|
|
266
260
|
def test_no_schema
|
267
|
-
assert_equal(<<-
|
268
|
-
|
269
|
-
[
|
270
|
-
["_id","author","created_at","n_goods","published","rank","tag_text","tags","title"],
|
271
|
-
[1,"mori",1268034720.0,4,true,10,"search mori",["search","mori"],"Why search engine find?"]
|
272
|
-
]
|
261
|
+
assert_equal(<<-DUMP, dump(:dump_schema => false))
|
262
|
+
#{dumped_tables}
|
273
263
|
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
["search",""],
|
278
|
-
["mori",""]
|
279
|
-
]
|
264
|
+
#{dumped_schema_index_columns}
|
265
|
+
DUMP
|
266
|
+
end
|
280
267
|
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
]
|
286
|
-
EOS
|
268
|
+
def test_no_schema_no_indexes
|
269
|
+
assert_equal(<<-DUMP, dump(:dump_schema => false, :dump_indexes => false))
|
270
|
+
#{dumped_tables}
|
271
|
+
DUMP
|
287
272
|
end
|
288
273
|
|
289
274
|
def test_no_tables
|
@@ -360,7 +345,7 @@ COMMAND
|
|
360
345
|
end
|
361
346
|
|
362
347
|
def test_have_records
|
363
|
-
assert_equal(<<-
|
348
|
+
assert_equal(<<-DUMP, dump)
|
364
349
|
table_create Users TABLE_PAT_KEY --key_type ShortText
|
365
350
|
|
366
351
|
load --table Users
|
@@ -369,7 +354,7 @@ load --table Users
|
|
369
354
|
[\"mori\"],
|
370
355
|
[\"s-yata\"]
|
371
356
|
]
|
372
|
-
|
357
|
+
DUMP
|
373
358
|
end
|
374
359
|
end
|
375
360
|
end
|