groonga-client-model 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +30 -0
  3. data/groonga-client-model.gemspec +1 -1
  4. data/lib/groonga_client_model/log_subscriber.rb +1 -3
  5. data/lib/groonga_client_model/migration.rb +493 -0
  6. data/lib/groonga_client_model/migrator.rb +240 -0
  7. data/lib/groonga_client_model/railtie.rb +4 -2
  8. data/lib/groonga_client_model/railties/groonga.rake +55 -2
  9. data/lib/groonga_client_model/record.rb +39 -1
  10. data/lib/groonga_client_model/schema.rb +8 -0
  11. data/lib/groonga_client_model/schema_loader.rb +4 -9
  12. data/lib/groonga_client_model/test/groonga_server_runner.rb +19 -3
  13. data/lib/groonga_client_model/version.rb +1 -1
  14. data/lib/rails/generators/groonga_client_model/migration/templates/create_table_migration.rb +14 -0
  15. data/lib/rails/generators/groonga_client_model/migration/templates/delete_config_migration.rb +9 -0
  16. data/lib/rails/generators/groonga_client_model/migration/templates/migration.rb +12 -0
  17. data/lib/rails/generators/groonga_client_model/migration/templates/set_config_migration.rb +10 -0
  18. data/lib/rails/generators/groonga_client_model/migration_generator.rb +125 -0
  19. data/lib/rails/generators/groonga_client_model/{model/model_generator.rb → model_generator.rb} +18 -4
  20. data/test/apps/rails4/Gemfile.lock +2 -2
  21. data/test/apps/rails4/db/groonga/migrate/20170303120517_create_posts.rb +8 -0
  22. data/test/apps/rails4/db/groonga/migrate/20170303120527_create_terms.rb +7 -0
  23. data/test/apps/rails4/db/groonga/migrate/20170303120536_create_ages.rb +6 -0
  24. data/test/apps/rails4/log/development.log +22 -0
  25. data/test/apps/rails4/log/test.log +1350 -0
  26. data/test/apps/rails4/test/generators/migration_generator_test.rb +103 -0
  27. data/test/apps/rails4/test/tmp/db/groonga/migrate/20170307045825_set_config_alias_column.rb +10 -0
  28. data/test/apps/rails5/Gemfile.lock +8 -8
  29. data/test/apps/rails5/db/groonga/migrate/20170301061420_create_posts.rb +8 -0
  30. data/test/apps/rails5/db/groonga/migrate/20170303115054_create_terms.rb +7 -0
  31. data/test/apps/rails5/db/groonga/migrate/20170303115135_create_ages.rb +6 -0
  32. data/test/apps/rails5/log/development.log +350 -0
  33. data/test/apps/rails5/log/test.log +3260 -0
  34. data/test/apps/rails5/test/generators/migration_generator_test.rb +103 -0
  35. data/test/apps/rails5/test/tmp/db/groonga/migrate/20170307081511_remove_title_from_posts.rb +5 -0
  36. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/5C/5Cws9GLWcOju_f3tIpY01qSaj7zkLAU0a2bQmpf7sS8.cache +1 -0
  37. data/test/apps/rails5/tmp/cache/assets/sprockets/v3.0/XH/XH9pWZvGgK476BpPGID5z8hjzRmGJjtzV0cHBLXhIKc.cache +1 -0
  38. data/test/unit/fixtures/migrate/20170301061420_create_posts.rb +8 -0
  39. data/test/unit/fixtures/migrate/20170303115054_create_terms.rb +7 -0
  40. data/test/unit/fixtures/migrate/20170303115135_create_ages.rb +6 -0
  41. data/test/unit/migration/test_config.rb +62 -0
  42. data/test/unit/migration/test_copy.rb +117 -0
  43. data/test/unit/migration/test_create_table.rb +528 -0
  44. data/test/unit/migration/test_exist.rb +47 -0
  45. data/test/unit/migration/test_load.rb +83 -0
  46. data/test/unit/record/test_active_model.rb +31 -0
  47. data/test/unit/record/test_readers.rb +45 -0
  48. data/test/unit/record/test_timestamps.rb +76 -0
  49. data/test/unit/record/test_validators.rb +295 -0
  50. data/test/unit/run-test.rb +1 -2
  51. data/test/unit/test_helper.rb +109 -0
  52. data/test/unit/test_load_value_generator.rb +8 -7
  53. data/test/unit/test_migrator.rb +156 -0
  54. metadata +64 -11
  55. data/test/apps/rails4/db/schema.grn +0 -9
  56. data/test/apps/rails5/db/schema.grn +0 -11
  57. data/test/unit/test_record.rb +0 -345
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2016-2017 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
@@ -15,10 +15,14 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  require "pathname"
18
+ require "socket"
19
+ require "stringio"
18
20
  require "uri"
19
21
 
20
22
  require "groonga/client/test/groonga-server-runner"
21
23
 
24
+ require "groonga_client_model/migrator"
25
+
22
26
  module GroongaClientModel
23
27
  module Test
24
28
  class GroongaServerRunner < Groonga::Client::Test::GroongaServerRunner
@@ -36,8 +40,20 @@ module GroongaClientModel
36
40
  else
37
41
  base_dir = Pathname.pwd
38
42
  end
39
- schema_loader = SchemaLoader.new(base_dir)
40
- schema_loader.load
43
+
44
+ schema_path = base_dir + "db" + "schema.grn"
45
+ migrate_path = base_dir + "db" + "groonga" + "migrate"
46
+ if schema_path.exist?
47
+ schema_path.open do |schema_file|
48
+ schema_loader = SchemaLoader.new(schema_file)
49
+ schema_loader.load
50
+ end
51
+ elsif migrate_path.exist?
52
+ output = StringIO.new
53
+ migrator = Migrator.new(migrate_path)
54
+ migrator.output = output
55
+ migrator.migrate
56
+ end
41
57
  end
42
58
 
43
59
  def url
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module GroongaClientModel
18
- VERSION = "1.0.0"
18
+ VERSION = "1.0.1"
19
19
  end
@@ -0,0 +1,14 @@
1
+ class <%= migration_class_name %> < GroongaClientModel::Migration
2
+ def change
3
+ create_table :<%= table_name %><%=
4
+ create_table_options(" create_table ".size)
5
+ %> do |t|
6
+ <% target_attributes.each do |attribute| -%>
7
+ t.<%= attribute.type %> :<%= attribute.name %><%= attribute.inject_options %>
8
+ <% end -%>
9
+ <% if options[:timestamps] -%>
10
+ t.timestamps
11
+ <% end -%>
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ class <%= migration_class_name %> < GroongaClientModel::Migration
2
+ def up
3
+ delete_config "<%= @config_key %>"
4
+ end
5
+
6
+ def down
7
+ # set_config "<%= @config_key %>", "old value"
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ class <%= migration_class_name %> < GroongaClientModel::Migration
2
+ def change
3
+ <%- attributes.each do |attribute| -%>
4
+ <%- case @migration_action -%>
5
+ <%- when :add -%>
6
+ add_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %>
7
+ <%- when :remove -%>
8
+ remove_column :<%= table_name %>, :<%= attribute.name %>
9
+ <%- end -%>
10
+ <%- end -%>
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ class <%= migration_class_name %> < GroongaClientModel::Migration
2
+ def up
3
+ set_config "<%= @config_key %>", "<%= @config_value %>"
4
+ end
5
+
6
+ def down
7
+ # set_config "<%= @config_key %>", "old value"
8
+ # delete_config "<%= @config_key %>"
9
+ end
10
+ end
@@ -0,0 +1,125 @@
1
+ # Copyright (C) 2017 Kouhei Sutou <kou@clear-code.com>
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 as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "rails/generators/named_base"
18
+ require "rails/generators/migration"
19
+
20
+ require "groonga-client-model"
21
+ require "groonga_client_model/migration"
22
+ require "groonga_client_model/migrator"
23
+
24
+ module GroongaClientModel
25
+ module Generators
26
+ class MigrationGenerator < Rails::Generators::NamedBase
27
+ include Rails::Generators::Migration
28
+
29
+ class << self
30
+ def next_migration_number(dirname)
31
+ next_migration_number = current_migration_number(dirname) + 1
32
+ Migrator.next_migration_number(next_migration_number)
33
+ end
34
+ end
35
+
36
+ source_root File.join(__dir__, "migration", "templates")
37
+
38
+ argument :attributes,
39
+ type: :array,
40
+ default: [],
41
+ banner: "name:type name:type"
42
+
43
+ class_option :table_type,
44
+ type: :string,
45
+ desc: "The table type (array, hash_table, patricia_trie or double_array_trie)"
46
+ class_option :table_propose,
47
+ type: :string,
48
+ desc: "The table propose (full_text_search)"
49
+ class_option :timestamps,
50
+ type: :boolean,
51
+ desc: "Whether creating columns for timestamps or not"
52
+
53
+ def create_migration_file
54
+ IllegalMigrationNameError.validate(file_name)
55
+ decide_template(file_name)
56
+ migration_template(@migration_template,
57
+ File.join(Migrator.default_search_path,
58
+ "#{file_name}.rb"))
59
+ end
60
+
61
+ private
62
+ def decide_template(output_file_name)
63
+ @migration_template = "migration.rb"
64
+ @migration_action = nil
65
+ @key_type = nil
66
+ case output_file_name
67
+ when /\Aadd_.*_to_(.*)\z/
68
+ @migration_action = :add
69
+ @table_name = normalize_table_name($1)
70
+ when /\Aremove_.*_from_(.*)\z/
71
+ @migration_action = :remove
72
+ @table_name = normalize_table_name($1)
73
+ when /\Acreate_(.+)\z/
74
+ @table_name = normalize_table_name($1)
75
+ @migration_template = "create_table_migration.rb"
76
+ attributes.each do |attribute|
77
+ if attribute.name == "_key"
78
+ @key_type = attribute.type
79
+ break
80
+ end
81
+ end
82
+ when /\Aset_config_(.*)\z/
83
+ @migration_template = "set_config_migration.rb"
84
+ @config_key = normalize_config_key($1)
85
+ if attributes.empty?
86
+ @config_value = "new value"
87
+ else
88
+ @config_value = attributes.first.name
89
+ end
90
+ when /\Adelete_config_(.*)\z/
91
+ @migration_template = "delete_config_migration.rb"
92
+ @config_key = normalize_config_key($1)
93
+ end
94
+ end
95
+
96
+ def normalize_table_name(name)
97
+ name.pluralize
98
+ end
99
+
100
+ def create_table_options(indent_size=0)
101
+ prefix = ",\n" + (" " * indent_size)
102
+ table_type = @options[:table_type]
103
+ table_type ||= "hash_table" if @key_type
104
+ table_propose = @options[:table_propose]
105
+ options_text = ""
106
+ if table_type
107
+ options_text << "#{prefix}type: :#{table_type}"
108
+ options_text << "#{prefix}key_type: :#{@key_type}" if @key_type
109
+ end
110
+ options_text << "#{prefix}propose: :#{table_propose}" if table_propose
111
+ options_text
112
+ end
113
+
114
+ def target_attributes
115
+ attributes.reject do |attribute|
116
+ attribute.name == "_key"
117
+ end
118
+ end
119
+
120
+ def normalize_config_key(key)
121
+ key.gsub(/_/, ".")
122
+ end
123
+ end
124
+ end
125
+ end
@@ -16,25 +16,39 @@
16
16
 
17
17
  require "rails/generators/named_base"
18
18
  require "rails/generators/active_model"
19
+
19
20
  require "groonga-client-model"
20
21
 
21
22
  module GroongaClientModel
22
23
  module Generators
23
24
  class ModelGenerator < Rails::Generators::NamedBase
24
- source_root File.join(__dir__, "templates")
25
+ check_class_collision
26
+
27
+ source_root File.join(__dir__, "model", "templates")
25
28
 
26
29
  argument :attributes,
27
30
  type: :array,
28
31
  default: [],
29
32
  banner: "field[:type][:index] field[:type][:index]"
30
33
 
31
- check_class_collision
32
-
33
34
  class_option :parent,
34
35
  type: :string,
35
36
  desc: "The parent class for the generated model"
36
37
 
37
38
  hook_for :test_framework
39
+ hook_for :migration do |klass|
40
+ args = ["create_#{table_name}"]
41
+ attributes.each do |attribute|
42
+ arg = "#{attribute.name}:#{attribute.type}"
43
+ if attribute.has_uniq_index?
44
+ arg << ":unique"
45
+ elsif attribute.has_index?
46
+ arg << ":index"
47
+ end
48
+ args << arg
49
+ end
50
+ invoke(klass, args)
51
+ end
38
52
 
39
53
  def create_model_file
40
54
  generate_application_groonga_record
@@ -62,7 +76,7 @@ module GroongaClientModel
62
76
 
63
77
  def application_groonga_record_file_name
64
78
  "app/models/application_groonga_record.rb"
65
- end
79
+ end
66
80
  end
67
81
  end
68
82
  end
@@ -10,9 +10,9 @@ PATH
10
10
  PATH
11
11
  remote: ../../../
12
12
  specs:
13
- groonga-client-model (1.0.0)
13
+ groonga-client-model (1.0.1)
14
14
  activemodel
15
- groonga-client (>= 0.4.1)
15
+ groonga-client (>= 0.4.2)
16
16
  groonga-command-parser
17
17
 
18
18
  GEM
@@ -0,0 +1,8 @@
1
+ class CreatePosts < GroongaClientModel::Migration
2
+ def change
3
+ create_table :posts do |t|
4
+ t.short_text :title
5
+ t.text :body
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ class CreateTerms < GroongaClientModel::Migration
2
+ def change
3
+ create_table :terms, propose: :full_text_search do |t|
4
+ t.index :posts, :body
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ class CreateAges < GroongaClientModel::Migration
2
+ def change
3
+ create_table :ages, type: :hash_table, key_type: :uint32 do |t|
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,22 @@
1
+ object_exist (1.5ms) object_exist --name "schema_versions"
2
+ table_create (50.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
3
+ table_create (40.9ms) table_create --flags "TABLE_NO_KEY" --name "posts"
4
+ column_create (69.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
5
+ column_create (38.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
6
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
7
+ table_create (28.0ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
8
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
9
+ table_create (36.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
10
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
11
+ object_exist (1.4ms) object_exist --name "schema_versions"
12
+ table_create (59.0ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
13
+ table_create (32.6ms) table_create --flags "TABLE_NO_KEY" --name "posts"
14
+ column_create (56.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
15
+ column_create (59.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
16
+ load (2.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
17
+ table_create (27.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
18
+ schema (5.1ms) schema
19
+ column_create (94.6ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
20
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
21
+ table_create (36.7ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
22
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
@@ -440,3 +440,1353 @@ PostTest: test_.create([Hash])
440
440
  select (34.6ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
441
441
  select (1.3ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
442
442
  shutdown (0.8ms) shutdown
443
+ ----------------------------------------
444
+ PostsControllerTest: test_should_get_new
445
+ ----------------------------------------
446
+ shutdown (2.0ms) shutdown
447
+ ------------------------------------------
448
+ PostsControllerTest: test_should_get_index
449
+ ------------------------------------------
450
+ shutdown (1.8ms) shutdown
451
+ ---------------------------------------------
452
+ PostsControllerTest: test_should_destroy_post
453
+ ---------------------------------------------
454
+ shutdown (2.5ms) shutdown
455
+ -----------------------------------------
456
+ PostsControllerTest: test_should_get_edit
457
+ -----------------------------------------
458
+ shutdown (2.5ms) shutdown
459
+ ------------------------------------------
460
+ PostsControllerTest: test_should_show_post
461
+ ------------------------------------------
462
+ shutdown (2.6ms) shutdown
463
+ --------------------------------------------
464
+ PostsControllerTest: test_should_update_post
465
+ --------------------------------------------
466
+ shutdown (2.6ms) shutdown
467
+ --------------------------------------------
468
+ PostsControllerTest: test_should_create_post
469
+ --------------------------------------------
470
+ shutdown (2.5ms) shutdown
471
+ ------------------------------
472
+ PostTest: test_.create([Hash])
473
+ ------------------------------
474
+ shutdown (2.5ms) shutdown
475
+ ----------------------------
476
+ PostTest: test_.create(Hash)
477
+ ----------------------------
478
+ shutdown (2.5ms) shutdown
479
+ ------------------------------------------
480
+ PostsControllerTest: test_should_get_index
481
+ ------------------------------------------
482
+ shutdown (3.3ms) shutdown
483
+ --------------------------------------------
484
+ PostsControllerTest: test_should_update_post
485
+ --------------------------------------------
486
+ shutdown (2.5ms) shutdown
487
+ -----------------------------------------
488
+ PostsControllerTest: test_should_get_edit
489
+ -----------------------------------------
490
+ shutdown (2.5ms) shutdown
491
+ ---------------------------------------------
492
+ PostsControllerTest: test_should_destroy_post
493
+ ---------------------------------------------
494
+ shutdown (2.5ms) shutdown
495
+ ------------------------------------------
496
+ PostsControllerTest: test_should_show_post
497
+ ------------------------------------------
498
+ shutdown (2.5ms) shutdown
499
+ --------------------------------------------
500
+ PostsControllerTest: test_should_create_post
501
+ --------------------------------------------
502
+ shutdown (1.1ms) shutdown
503
+ ----------------------------------------
504
+ PostsControllerTest: test_should_get_new
505
+ ----------------------------------------
506
+ shutdown (2.6ms) shutdown
507
+ ----------------------------
508
+ PostTest: test_.create(Hash)
509
+ ----------------------------
510
+ shutdown (2.5ms) shutdown
511
+ ------------------------------
512
+ PostTest: test_.create([Hash])
513
+ ------------------------------
514
+ shutdown (2.7ms) shutdown
515
+ --------------------------------------------
516
+ PostsControllerTest: test_should_create_post
517
+ --------------------------------------------
518
+ shutdown (1.5ms) shutdown
519
+ -----------------------------------------
520
+ PostsControllerTest: test_should_get_edit
521
+ -----------------------------------------
522
+ shutdown (2.5ms) shutdown
523
+ ------------------------------------------
524
+ PostsControllerTest: test_should_show_post
525
+ ------------------------------------------
526
+ shutdown (2.4ms) shutdown
527
+ --------------------------------------------
528
+ PostsControllerTest: test_should_update_post
529
+ --------------------------------------------
530
+ shutdown (2.4ms) shutdown
531
+ ------------------------------------------
532
+ PostsControllerTest: test_should_get_index
533
+ ------------------------------------------
534
+ shutdown (2.6ms) shutdown
535
+ ----------------------------------------
536
+ PostsControllerTest: test_should_get_new
537
+ ----------------------------------------
538
+ shutdown (2.5ms) shutdown
539
+ ---------------------------------------------
540
+ PostsControllerTest: test_should_destroy_post
541
+ ---------------------------------------------
542
+ shutdown (2.5ms) shutdown
543
+ ----------------------------
544
+ PostTest: test_.create(Hash)
545
+ ----------------------------
546
+ shutdown (2.7ms) shutdown
547
+ ------------------------------
548
+ PostTest: test_.create([Hash])
549
+ ------------------------------
550
+ shutdown (2.5ms) shutdown
551
+ --------------------------------------------
552
+ PostsControllerTest: test_should_create_post
553
+ --------------------------------------------
554
+ shutdown (1.4ms) shutdown
555
+ ---------------------------------------------
556
+ PostsControllerTest: test_should_destroy_post
557
+ ---------------------------------------------
558
+ shutdown (2.6ms) shutdown
559
+ ------------------------------------------
560
+ PostsControllerTest: test_should_get_index
561
+ ------------------------------------------
562
+ shutdown (1.6ms) shutdown
563
+ ------------------------------------------
564
+ PostsControllerTest: test_should_show_post
565
+ ------------------------------------------
566
+ shutdown (2.5ms) shutdown
567
+ ----------------------------------------
568
+ PostsControllerTest: test_should_get_new
569
+ ----------------------------------------
570
+ shutdown (2.6ms) shutdown
571
+ -----------------------------------------
572
+ PostsControllerTest: test_should_get_edit
573
+ -----------------------------------------
574
+ shutdown (2.5ms) shutdown
575
+ --------------------------------------------
576
+ PostsControllerTest: test_should_update_post
577
+ --------------------------------------------
578
+ shutdown (1.6ms) shutdown
579
+ ----------------------------
580
+ PostTest: test_.create(Hash)
581
+ ----------------------------
582
+ shutdown (2.1ms) shutdown
583
+ ------------------------------
584
+ PostTest: test_.create([Hash])
585
+ ------------------------------
586
+ shutdown (2.7ms) shutdown
587
+ ---------------------------------------------
588
+ PostsControllerTest: test_should_destroy_post
589
+ ---------------------------------------------
590
+ table_create (3.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
591
+ column_create (2.0ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
592
+ column_create (2.0ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
593
+ table_create (2.0ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
594
+ column_create (2.8ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
595
+ schema (4.0ms) schema
596
+ load (2.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
597
+ select (1.7ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
598
+ Processing by PostsController#destroy as HTML
599
+ Parameters: {"id"=>"1"}
600
+ select (46.9ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
601
+ delete (1.1ms) delete --filter "_id == 1" --table "posts"
602
+ Redirected to http://test.host/posts
603
+ Completed 302 Found in 50ms (Groonga: 48.1ms)
604
+ select (1.0ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
605
+ shutdown (0.9ms) shutdown
606
+ -----------------------------------------
607
+ PostsControllerTest: test_should_get_edit
608
+ -----------------------------------------
609
+ table_create (2.6ms) table_create --flags "TABLE_NO_KEY" --name "posts"
610
+ column_create (2.5ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
611
+ column_create (2.9ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
612
+ table_create (2.0ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
613
+ column_create (2.6ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
614
+ load (2.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
615
+ Processing by PostsController#edit as HTML
616
+ Parameters: {"id"=>"1"}
617
+ select (56.0ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
618
+ Rendered posts/_form.html.erb (38.5ms)
619
+ Rendered posts/edit.html.erb within layouts/application (47.4ms)
620
+ Completed 200 OK in 355ms (Views: 298.0ms | Groonga: 56.0ms)
621
+ shutdown (2.0ms) shutdown
622
+ ------------------------------------------
623
+ PostsControllerTest: test_should_get_index
624
+ ------------------------------------------
625
+ table_create (3.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
626
+ column_create (2.7ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
627
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
628
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
629
+ column_create (3.3ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
630
+ load (3.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
631
+ Processing by PostsController#index as HTML
632
+ select (3.0ms) select --limit "-1" --match_columns "body" --table "posts"
633
+ Rendered posts/index.html.erb within layouts/application (6.4ms)
634
+ Completed 200 OK in 12ms (Views: 8.0ms | Groonga: 3.0ms)
635
+ shutdown (2.2ms) shutdown
636
+ --------------------------------------------
637
+ PostsControllerTest: test_should_create_post
638
+ --------------------------------------------
639
+ table_create (2.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
640
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
641
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
642
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
643
+ column_create (3.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
644
+ load (3.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
645
+ select (2.6ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
646
+ Processing by PostsController#create as HTML
647
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
648
+ load (2.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
649
+ Redirected to http://test.host/posts/2
650
+ Completed 302 Found in 6ms (Groonga: 2.7ms)
651
+ select (2.0ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
652
+ shutdown (1.4ms) shutdown
653
+ --------------------------------------------
654
+ PostsControllerTest: test_should_update_post
655
+ --------------------------------------------
656
+ table_create (2.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
657
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
658
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
659
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
660
+ column_create (3.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
661
+ load (3.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
662
+ Processing by PostsController#update as HTML
663
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
664
+ select (58.3ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
665
+ load (1.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"_id\":1,\"body\":\"World\",\"title\":\"Hello\"}\n]"
666
+ Redirected to http://test.host/posts/1
667
+ Completed 302 Found in 62ms (Groonga: 59.3ms)
668
+ shutdown (0.9ms) shutdown
669
+ ------------------------------------------
670
+ PostsControllerTest: test_should_show_post
671
+ ------------------------------------------
672
+ table_create (2.7ms) table_create --flags "TABLE_NO_KEY" --name "posts"
673
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
674
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
675
+ table_create (2.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
676
+ column_create (3.3ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
677
+ load (3.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
678
+ Processing by PostsController#show as HTML
679
+ Parameters: {"id"=>"1"}
680
+ select (59.7ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
681
+ Rendered posts/show.html.erb within layouts/application (0.5ms)
682
+ Completed 200 OK in 66ms (Views: 2.0ms | Groonga: 59.7ms)
683
+ shutdown (0.9ms) shutdown
684
+ ----------------------------------------
685
+ PostsControllerTest: test_should_get_new
686
+ ----------------------------------------
687
+ table_create (2.5ms) table_create --flags "TABLE_NO_KEY" --name "posts"
688
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
689
+ column_create (35.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
690
+ table_create (1.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
691
+ column_create (2.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
692
+ load (2.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
693
+ Processing by PostsController#new as HTML
694
+ Rendered posts/_form.html.erb (1.9ms)
695
+ Rendered posts/new.html.erb within layouts/application (2.6ms)
696
+ Completed 200 OK in 5ms (Views: 4.9ms | Groonga: 0.0ms)
697
+ shutdown (1.2ms) shutdown
698
+ ----------------------------
699
+ PostTest: test_.create(Hash)
700
+ ----------------------------
701
+ table_create (2.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
702
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
703
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
704
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
705
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
706
+ load (2.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\"}\n]"
707
+ select (45.2ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
708
+ shutdown (0.9ms) shutdown
709
+ ------------------------------
710
+ PostTest: test_.create([Hash])
711
+ ------------------------------
712
+ table_create (2.6ms) table_create --flags "TABLE_NO_KEY" --name "posts"
713
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
714
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
715
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
716
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
717
+ load (2.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello1\"}\n]"
718
+ load (2.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello2\"}\n]"
719
+ select (62.6ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
720
+ select (1.3ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
721
+ shutdown (1.0ms) shutdown
722
+ ------------------------------
723
+ PostTest: test_.create([Hash])
724
+ ------------------------------
725
+ object_exist (3.2ms) object_exist --name "schema_versions"
726
+ table_create (2.2ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
727
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
728
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
729
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
730
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
731
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
732
+ schema (4.3ms) schema
733
+ column_create (3.2ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
734
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
735
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
736
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
737
+ schema (4.6ms) schema
738
+ load (2.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello1\"}\n]"
739
+ load (2.2ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello2\"}\n]"
740
+ select (51.2ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
741
+ select (1.3ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
742
+ shutdown (0.9ms) shutdown
743
+ ----------------------------
744
+ PostTest: test_.create(Hash)
745
+ ----------------------------
746
+ object_exist (2.5ms) object_exist --name "schema_versions"
747
+ table_create (2.4ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
748
+ table_create (2.3ms) table_create --flags "TABLE_NO_KEY" --name "posts"
749
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
750
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
751
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
752
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
753
+ schema (4.9ms) schema
754
+ column_create (3.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
755
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
756
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
757
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
758
+ load (2.3ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\"}\n]"
759
+ select (55.8ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
760
+ shutdown (0.9ms) shutdown
761
+ ----------------------------------------
762
+ PostsControllerTest: test_should_get_new
763
+ ----------------------------------------
764
+ object_exist (1.6ms) object_exist --name "schema_versions"
765
+ table_create (1.4ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
766
+ table_create (1.5ms) table_create --flags "TABLE_NO_KEY" --name "posts"
767
+ column_create (1.6ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
768
+ column_create (1.7ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
769
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
770
+ table_create (2.1ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
771
+ schema (3.9ms) schema
772
+ column_create (2.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
773
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
774
+ table_create (2.0ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
775
+ load (2.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
776
+ load (3.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
777
+ Processing by PostsController#new as HTML
778
+ Rendered posts/_form.html.erb (14.2ms)
779
+ Rendered posts/new.html.erb within layouts/application (20.5ms)
780
+ Completed 200 OK in 161ms (Views: 160.9ms | Groonga: 0.0ms)
781
+ shutdown (1.2ms) shutdown
782
+ -----------------------------------------
783
+ PostsControllerTest: test_should_get_edit
784
+ -----------------------------------------
785
+ object_exist (2.5ms) object_exist --name "schema_versions"
786
+ table_create (2.5ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
787
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
788
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
789
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
790
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
791
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
792
+ schema (4.4ms) schema
793
+ column_create (3.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
794
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
795
+ table_create (2.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
796
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
797
+ load (3.3ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
798
+ Processing by PostsController#edit as HTML
799
+ Parameters: {"id"=>"1"}
800
+ select (57.7ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
801
+ Rendered posts/_form.html.erb (1.0ms)
802
+ Rendered posts/edit.html.erb within layouts/application (1.5ms)
803
+ Completed 200 OK in 62ms (Views: 2.6ms | Groonga: 57.7ms)
804
+ shutdown (0.9ms) shutdown
805
+ --------------------------------------------
806
+ PostsControllerTest: test_should_update_post
807
+ --------------------------------------------
808
+ object_exist (5.3ms) object_exist --name "schema_versions"
809
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
810
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
811
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
812
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
813
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
814
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
815
+ schema (37.5ms) schema
816
+ column_create (2.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
817
+ load (1.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
818
+ table_create (1.3ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
819
+ load (1.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
820
+ load (1.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
821
+ Processing by PostsController#update as HTML
822
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
823
+ select (31.2ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
824
+ load (1.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"_id\":1,\"body\":\"World\",\"title\":\"Hello\"}\n]"
825
+ Redirected to http://test.host/posts/1
826
+ Completed 302 Found in 34ms (Groonga: 32.3ms)
827
+ shutdown (0.8ms) shutdown
828
+ ---------------------------------------------
829
+ PostsControllerTest: test_should_destroy_post
830
+ ---------------------------------------------
831
+ object_exist (2.7ms) object_exist --name "schema_versions"
832
+ table_create (2.6ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
833
+ table_create (2.4ms) table_create --flags "TABLE_NO_KEY" --name "posts"
834
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
835
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
836
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
837
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
838
+ schema (4.8ms) schema
839
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
840
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
841
+ table_create (2.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
842
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
843
+ load (4.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
844
+ select (2.8ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
845
+ Processing by PostsController#destroy as HTML
846
+ Parameters: {"id"=>"1"}
847
+ select (58.9ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
848
+ delete (1.2ms) delete --filter "_id == 1" --table "posts"
849
+ Redirected to http://test.host/posts
850
+ Completed 302 Found in 62ms (Groonga: 60.1ms)
851
+ select (0.9ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
852
+ shutdown (0.8ms) shutdown
853
+ ------------------------------------------
854
+ PostsControllerTest: test_should_get_index
855
+ ------------------------------------------
856
+ object_exist (2.6ms) object_exist --name "schema_versions"
857
+ table_create (2.5ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
858
+ table_create (2.3ms) table_create --flags "TABLE_NO_KEY" --name "posts"
859
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
860
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
861
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
862
+ table_create (2.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
863
+ schema (5.3ms) schema
864
+ column_create (3.7ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
865
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
866
+ table_create (2.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
867
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
868
+ load (4.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
869
+ Processing by PostsController#index as HTML
870
+ select (3.1ms) select --limit "-1" --match_columns "body" --table "posts"
871
+ Rendered posts/index.html.erb within layouts/application (7.0ms)
872
+ Completed 200 OK in 12ms (Views: 8.1ms | Groonga: 3.1ms)
873
+ shutdown (2.0ms) shutdown
874
+ --------------------------------------------
875
+ PostsControllerTest: test_should_create_post
876
+ --------------------------------------------
877
+ object_exist (2.7ms) object_exist --name "schema_versions"
878
+ table_create (2.6ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
879
+ table_create (3.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
880
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
881
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
882
+ load (3.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
883
+ table_create (3.1ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
884
+ schema (7.6ms) schema
885
+ column_create (4.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
886
+ load (3.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
887
+ table_create (3.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
888
+ load (3.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
889
+ load (4.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
890
+ select (3.4ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
891
+ Processing by PostsController#create as HTML
892
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
893
+ load (3.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
894
+ Redirected to http://test.host/posts/2
895
+ Completed 302 Found in 7ms (Groonga: 3.8ms)
896
+ select (3.3ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
897
+ shutdown (2.7ms) shutdown
898
+ ------------------------------------------
899
+ PostsControllerTest: test_should_show_post
900
+ ------------------------------------------
901
+ object_exist (3.5ms) object_exist --name "schema_versions"
902
+ table_create (3.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
903
+ table_create (3.0ms) table_create --flags "TABLE_NO_KEY" --name "posts"
904
+ column_create (3.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
905
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
906
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
907
+ table_create (3.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
908
+ schema (6.9ms) schema
909
+ column_create (4.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
910
+ load (3.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
911
+ table_create (3.3ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
912
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
913
+ load (4.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
914
+ Processing by PostsController#show as HTML
915
+ Parameters: {"id"=>"1"}
916
+ select (63.6ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
917
+ Rendered posts/show.html.erb within layouts/application (0.7ms)
918
+ Completed 200 OK in 69ms (Views: 2.7ms | Groonga: 63.6ms)
919
+ shutdown (1.1ms) shutdown
920
+ ---------------------------------------
921
+ MigrationGeneratorTest: test_add_column
922
+ ---------------------------------------
923
+ ------------------------------------------
924
+ MigrationGeneratorTest: test_remove_column
925
+ ------------------------------------------
926
+ ----------------------------------------------
927
+ MigrationGeneratorTest: test_set_config:_value
928
+ ----------------------------------------------
929
+ ------------------------------------------
930
+ MigrationGeneratorTest: test_delete_config
931
+ ------------------------------------------
932
+ -----------------------------------------
933
+ MigrationGeneratorTest: test_create_table
934
+ -----------------------------------------
935
+ ---------------------------------------
936
+ MigrationGeneratorTest: test_set_config
937
+ ---------------------------------------
938
+ ----------------------------
939
+ PostTest: test_.create(Hash)
940
+ ----------------------------
941
+ object_exist (2.0ms) object_exist --name "schema_versions"
942
+ table_create (1.7ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
943
+ table_create (1.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
944
+ column_create (2.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
945
+ column_create (2.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
946
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
947
+ table_create (2.7ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
948
+ schema (4.7ms) schema
949
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
950
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
951
+ table_create (2.7ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
952
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
953
+ schema (4.7ms) schema
954
+ load (2.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\"}\n]"
955
+ select (62.8ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
956
+ shutdown (0.8ms) shutdown
957
+ ------------------------------
958
+ PostTest: test_.create([Hash])
959
+ ------------------------------
960
+ object_exist (2.4ms) object_exist --name "schema_versions"
961
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
962
+ table_create (2.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
963
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
964
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
965
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
966
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
967
+ schema (2.1ms) schema
968
+ column_create (1.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
969
+ load (0.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
970
+ table_create (0.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
971
+ load (0.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
972
+ load (0.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello1\"}\n]"
973
+ load (0.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello2\"}\n]"
974
+ select (28.9ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
975
+ select (1.2ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
976
+ shutdown (0.8ms) shutdown
977
+ ----------------------------------------
978
+ PostsControllerTest: test_should_get_new
979
+ ----------------------------------------
980
+ object_exist (1.4ms) object_exist --name "schema_versions"
981
+ table_create (1.1ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
982
+ table_create (1.0ms) table_create --flags "TABLE_NO_KEY" --name "posts"
983
+ column_create (1.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
984
+ column_create (1.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
985
+ load (1.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
986
+ table_create (1.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
987
+ schema (2.5ms) schema
988
+ column_create (2.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
989
+ load (1.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
990
+ table_create (1.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
991
+ load (1.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
992
+ load (3.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
993
+ Processing by PostsController#new as HTML
994
+ Rendered posts/_form.html.erb (44.7ms)
995
+ Rendered posts/new.html.erb within layouts/application (52.7ms)
996
+ Completed 200 OK in 207ms (Views: 206.8ms | Groonga: 0.0ms)
997
+ shutdown (0.8ms) shutdown
998
+ ---------------------------------------------
999
+ PostsControllerTest: test_should_destroy_post
1000
+ ---------------------------------------------
1001
+ object_exist (2.1ms) object_exist --name "schema_versions"
1002
+ table_create (2.2ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1003
+ table_create (2.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1004
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1005
+ column_create (2.0ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1006
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1007
+ table_create (2.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1008
+ schema (4.4ms) schema
1009
+ column_create (3.2ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1010
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1011
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1012
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1013
+ load (3.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1014
+ select (2.4ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1015
+ Processing by PostsController#destroy as HTML
1016
+ Parameters: {"id"=>"1"}
1017
+ select (60.5ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1018
+ delete (0.8ms) delete --filter "_id == 1" --table "posts"
1019
+ Redirected to http://test.host/posts
1020
+ Completed 302 Found in 64ms (Groonga: 61.3ms)
1021
+ select (0.7ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1022
+ shutdown (0.5ms) shutdown
1023
+ -----------------------------------------
1024
+ PostsControllerTest: test_should_get_edit
1025
+ -----------------------------------------
1026
+ object_exist (2.4ms) object_exist --name "schema_versions"
1027
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1028
+ table_create (2.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1029
+ column_create (35.0ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1030
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1031
+ load (1.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1032
+ table_create (1.1ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1033
+ schema (2.0ms) schema
1034
+ column_create (1.2ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1035
+ load (1.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1036
+ table_create (0.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1037
+ load (0.8ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1038
+ load (1.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1039
+ Processing by PostsController#edit as HTML
1040
+ Parameters: {"id"=>"1"}
1041
+ select (39.4ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1042
+ Rendered posts/_form.html.erb (1.1ms)
1043
+ Rendered posts/edit.html.erb within layouts/application (1.7ms)
1044
+ Completed 200 OK in 44ms (Views: 3.3ms | Groonga: 39.4ms)
1045
+ shutdown (0.9ms) shutdown
1046
+ --------------------------------------------
1047
+ PostsControllerTest: test_should_update_post
1048
+ --------------------------------------------
1049
+ object_exist (2.5ms) object_exist --name "schema_versions"
1050
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1051
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1052
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1053
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1054
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1055
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1056
+ schema (5.0ms) schema
1057
+ column_create (3.3ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1058
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1059
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1060
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1061
+ load (3.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1062
+ Processing by PostsController#update as HTML
1063
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
1064
+ select (36.7ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1065
+ load (1.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"_id\":1,\"body\":\"World\",\"title\":\"Hello\"}\n]"
1066
+ Redirected to http://test.host/posts/1
1067
+ Completed 302 Found in 40ms (Groonga: 37.8ms)
1068
+ shutdown (0.8ms) shutdown
1069
+ --------------------------------------------
1070
+ PostsControllerTest: test_should_create_post
1071
+ --------------------------------------------
1072
+ object_exist (2.5ms) object_exist --name "schema_versions"
1073
+ table_create (2.4ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1074
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1075
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1076
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1077
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1078
+ table_create (2.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1079
+ schema (5.1ms) schema
1080
+ column_create (3.6ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1081
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1082
+ table_create (2.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1083
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1084
+ load (3.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1085
+ select (2.6ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1086
+ Processing by PostsController#create as HTML
1087
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
1088
+ load (4.4ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1089
+ Redirected to http://test.host/posts/2
1090
+ Completed 302 Found in 9ms (Groonga: 4.4ms)
1091
+ select (3.2ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1092
+ shutdown (1.9ms) shutdown
1093
+ ------------------------------------------
1094
+ PostsControllerTest: test_should_get_index
1095
+ ------------------------------------------
1096
+ object_exist (2.3ms) object_exist --name "schema_versions"
1097
+ table_create (3.4ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1098
+ table_create (3.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1099
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1100
+ column_create (3.0ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1101
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1102
+ table_create (3.1ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1103
+ schema (16.7ms) schema
1104
+ column_create (3.3ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1105
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1106
+ table_create (3.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1107
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1108
+ load (5.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1109
+ Processing by PostsController#index as HTML
1110
+ select (3.6ms) select --limit "-1" --match_columns "body" --table "posts"
1111
+ Rendered posts/index.html.erb within layouts/application (8.8ms)
1112
+ Completed 200 OK in 16ms (Views: 11.1ms | Groonga: 3.6ms)
1113
+ shutdown (1.9ms) shutdown
1114
+ ------------------------------------------
1115
+ PostsControllerTest: test_should_show_post
1116
+ ------------------------------------------
1117
+ object_exist (3.5ms) object_exist --name "schema_versions"
1118
+ table_create (3.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1119
+ table_create (3.3ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1120
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1121
+ column_create (3.0ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1122
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1123
+ table_create (3.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1124
+ schema (6.9ms) schema
1125
+ column_create (4.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1126
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1127
+ table_create (2.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1128
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1129
+ load (3.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1130
+ Processing by PostsController#show as HTML
1131
+ Parameters: {"id"=>"1"}
1132
+ select (62.0ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1133
+ Rendered posts/show.html.erb within layouts/application (0.9ms)
1134
+ Completed 200 OK in 68ms (Views: 3.2ms | Groonga: 62.0ms)
1135
+ shutdown (0.7ms) shutdown
1136
+ ----------------------------
1137
+ PostTest: test_.create(Hash)
1138
+ ----------------------------
1139
+ object_exist (1.5ms) object_exist --name "schema_versions"
1140
+ table_create (1.2ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1141
+ table_create (1.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1142
+ column_create (1.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1143
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1144
+ load (1.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1145
+ table_create (1.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1146
+ schema (2.7ms) schema
1147
+ column_create (2.2ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1148
+ load (1.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1149
+ table_create (1.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1150
+ load (2.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1151
+ schema (4.3ms) schema
1152
+ load (2.3ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\"}\n]"
1153
+ select (56.7ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
1154
+ shutdown (0.9ms) shutdown
1155
+ ------------------------------
1156
+ PostTest: test_.create([Hash])
1157
+ ------------------------------
1158
+ object_exist (2.4ms) object_exist --name "schema_versions"
1159
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1160
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1161
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1162
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1163
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1164
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1165
+ schema (4.6ms) schema
1166
+ column_create (3.2ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1167
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1168
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1169
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1170
+ load (2.4ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello1\"}\n]"
1171
+ load (2.3ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello2\"}\n]"
1172
+ select (54.4ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
1173
+ select (1.0ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
1174
+ shutdown (0.7ms) shutdown
1175
+ ---------------------------------------
1176
+ MigrationGeneratorTest: test_add_column
1177
+ ---------------------------------------
1178
+ ---------------------------------------
1179
+ MigrationGeneratorTest: test_set_config
1180
+ ---------------------------------------
1181
+ ----------------------------------------------
1182
+ MigrationGeneratorTest: test_set_config:_value
1183
+ ----------------------------------------------
1184
+ -----------------------------------------------
1185
+ MigrationGeneratorTest: test_create_table:__key
1186
+ -----------------------------------------------
1187
+ ------------------------------------------
1188
+ MigrationGeneratorTest: test_delete_config
1189
+ ------------------------------------------
1190
+ ------------------------------------------
1191
+ MigrationGeneratorTest: test_remove_column
1192
+ ------------------------------------------
1193
+ -----------------------------------------
1194
+ MigrationGeneratorTest: test_create_table
1195
+ -----------------------------------------
1196
+ ------------------------------------------
1197
+ PostsControllerTest: test_should_get_index
1198
+ ------------------------------------------
1199
+ object_exist (1.4ms) object_exist --name "schema_versions"
1200
+ table_create (1.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1201
+ table_create (1.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1202
+ column_create (1.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1203
+ column_create (1.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1204
+ load (1.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1205
+ table_create (1.9ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1206
+ schema (4.1ms) schema
1207
+ column_create (2.8ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1208
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1209
+ table_create (1.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1210
+ load (1.8ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1211
+ load (3.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1212
+ Processing by PostsController#index as HTML
1213
+ select (2.5ms) select --limit "-1" --match_columns "body" --table "posts"
1214
+ Rendered posts/index.html.erb within layouts/application (7.3ms)
1215
+ Completed 200 OK in 159ms (Views: 155.8ms | Groonga: 2.5ms)
1216
+ shutdown (1.0ms) shutdown
1217
+ ----------------------------------------
1218
+ PostsControllerTest: test_should_get_new
1219
+ ----------------------------------------
1220
+ object_exist (2.5ms) object_exist --name "schema_versions"
1221
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1222
+ table_create (2.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1223
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1224
+ column_create (2.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1225
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1226
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1227
+ schema (4.3ms) schema
1228
+ column_create (3.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1229
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1230
+ table_create (2.0ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1231
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1232
+ load (3.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1233
+ Processing by PostsController#new as HTML
1234
+ Rendered posts/_form.html.erb (24.3ms)
1235
+ Rendered posts/new.html.erb within layouts/application (29.8ms)
1236
+ Completed 200 OK in 33ms (Views: 32.3ms | Groonga: 0.0ms)
1237
+ shutdown (1.3ms) shutdown
1238
+ --------------------------------------------
1239
+ PostsControllerTest: test_should_update_post
1240
+ --------------------------------------------
1241
+ object_exist (2.4ms) object_exist --name "schema_versions"
1242
+ table_create (2.2ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1243
+ table_create (2.0ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1244
+ column_create (1.5ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1245
+ column_create (1.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1246
+ load (1.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1247
+ table_create (1.1ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1248
+ schema (2.0ms) schema
1249
+ column_create (1.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1250
+ load (1.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1251
+ table_create (1.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1252
+ load (1.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1253
+ load (1.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1254
+ Processing by PostsController#update as HTML
1255
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
1256
+ select (31.5ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1257
+ load (1.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"_id\":1,\"body\":\"World\",\"title\":\"Hello\"}\n]"
1258
+ Redirected to http://test.host/posts/1
1259
+ Completed 302 Found in 34ms (Groonga: 32.5ms)
1260
+ shutdown (0.7ms) shutdown
1261
+ --------------------------------------------
1262
+ PostsControllerTest: test_should_create_post
1263
+ --------------------------------------------
1264
+ object_exist (2.5ms) object_exist --name "schema_versions"
1265
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1266
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1267
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1268
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1269
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1270
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1271
+ schema (4.7ms) schema
1272
+ column_create (3.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1273
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1274
+ table_create (2.7ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1275
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1276
+ load (3.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1277
+ select (2.5ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1278
+ Processing by PostsController#create as HTML
1279
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
1280
+ load (2.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1281
+ Redirected to http://test.host/posts/2
1282
+ Completed 302 Found in 6ms (Groonga: 2.9ms)
1283
+ select (2.9ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1284
+ shutdown (2.1ms) shutdown
1285
+ ---------------------------------------------
1286
+ PostsControllerTest: test_should_destroy_post
1287
+ ---------------------------------------------
1288
+ object_exist (2.3ms) object_exist --name "schema_versions"
1289
+ table_create (2.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1290
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1291
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1292
+ column_create (2.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1293
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1294
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1295
+ schema (4.6ms) schema
1296
+ column_create (3.3ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1297
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1298
+ table_create (2.3ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1299
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1300
+ load (3.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1301
+ select (2.6ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1302
+ Processing by PostsController#destroy as HTML
1303
+ Parameters: {"id"=>"1"}
1304
+ select (51.5ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1305
+ delete (1.1ms) delete --filter "_id == 1" --table "posts"
1306
+ Redirected to http://test.host/posts
1307
+ Completed 302 Found in 55ms (Groonga: 52.6ms)
1308
+ select (1.0ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1309
+ shutdown (0.8ms) shutdown
1310
+ -----------------------------------------
1311
+ PostsControllerTest: test_should_get_edit
1312
+ -----------------------------------------
1313
+ object_exist (3.5ms) object_exist --name "schema_versions"
1314
+ table_create (3.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1315
+ table_create (3.0ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1316
+ column_create (3.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1317
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1318
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1319
+ table_create (3.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1320
+ schema (6.6ms) schema
1321
+ column_create (4.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1322
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1323
+ table_create (3.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1324
+ load (3.8ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1325
+ load (4.4ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1326
+ Processing by PostsController#edit as HTML
1327
+ Parameters: {"id"=>"1"}
1328
+ select (38.1ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1329
+ Rendered posts/_form.html.erb (1.5ms)
1330
+ Rendered posts/edit.html.erb within layouts/application (2.2ms)
1331
+ Completed 200 OK in 44ms (Views: 3.7ms | Groonga: 38.1ms)
1332
+ shutdown (1.2ms) shutdown
1333
+ ------------------------------------------
1334
+ PostsControllerTest: test_should_show_post
1335
+ ------------------------------------------
1336
+ object_exist (3.3ms) object_exist --name "schema_versions"
1337
+ table_create (3.1ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1338
+ table_create (3.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1339
+ column_create (2.8ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1340
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1341
+ load (5.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1342
+ table_create (3.8ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1343
+ schema (5.8ms) schema
1344
+ column_create (3.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1345
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1346
+ table_create (1.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1347
+ load (1.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1348
+ load (2.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1349
+ Processing by PostsController#show as HTML
1350
+ Parameters: {"id"=>"1"}
1351
+ select (36.8ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1352
+ Rendered posts/show.html.erb within layouts/application (1.0ms)
1353
+ Completed 200 OK in 43ms (Views: 4.1ms | Groonga: 36.8ms)
1354
+ shutdown (3.4ms) shutdown
1355
+ ----------------------------
1356
+ PostTest: test_.create(Hash)
1357
+ ----------------------------
1358
+ object_exist (1.8ms) object_exist --name "schema_versions"
1359
+ table_create (1.4ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1360
+ table_create (1.3ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1361
+ column_create (1.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1362
+ column_create (1.5ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1363
+ load (1.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1364
+ table_create (2.0ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1365
+ schema (4.2ms) schema
1366
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1367
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1368
+ table_create (2.4ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1369
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1370
+ schema (4.9ms) schema
1371
+ load (2.8ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\"}\n]"
1372
+ select (60.9ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
1373
+ shutdown (0.9ms) shutdown
1374
+ ------------------------------
1375
+ PostTest: test_.create([Hash])
1376
+ ------------------------------
1377
+ object_exist (2.7ms) object_exist --name "schema_versions"
1378
+ table_create (2.4ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1379
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1380
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1381
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1382
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1383
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1384
+ schema (5.3ms) schema
1385
+ column_create (3.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1386
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1387
+ table_create (3.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1388
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1389
+ load (2.4ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello1\"}\n]"
1390
+ load (2.4ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello2\"}\n]"
1391
+ select (64.0ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
1392
+ select (1.2ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
1393
+ shutdown (0.7ms) shutdown
1394
+ -----------------------------------------
1395
+ MigrationGeneratorTest: test_create_table
1396
+ -----------------------------------------
1397
+ -----------------------------------------------
1398
+ MigrationGeneratorTest: test_create_table:__key
1399
+ -----------------------------------------------
1400
+ ------------------------------------------
1401
+ MigrationGeneratorTest: test_delete_config
1402
+ ------------------------------------------
1403
+ ---------------------------------------
1404
+ MigrationGeneratorTest: test_add_column
1405
+ ---------------------------------------
1406
+ ------------------------------------------
1407
+ MigrationGeneratorTest: test_remove_column
1408
+ ------------------------------------------
1409
+ ----------------------------------------------
1410
+ MigrationGeneratorTest: test_set_config:_value
1411
+ ----------------------------------------------
1412
+ ---------------------------------------
1413
+ MigrationGeneratorTest: test_set_config
1414
+ ---------------------------------------
1415
+ ------------------------------------------
1416
+ PostsControllerTest: test_should_get_index
1417
+ ------------------------------------------
1418
+ object_exist (1.8ms) object_exist --name "schema_versions"
1419
+ table_create (1.7ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1420
+ table_create (1.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1421
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1422
+ column_create (1.8ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1423
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1424
+ table_create (1.8ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1425
+ schema (4.1ms) schema
1426
+ column_create (3.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1427
+ load (2.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1428
+ table_create (1.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1429
+ load (1.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1430
+ load (3.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1431
+ Processing by PostsController#index as HTML
1432
+ select (2.1ms) select --limit "-1" --match_columns "body" --table "posts"
1433
+ Rendered posts/index.html.erb within layouts/application (6.5ms)
1434
+ Completed 200 OK in 206ms (Views: 203.4ms | Groonga: 2.1ms)
1435
+ shutdown (0.9ms) shutdown
1436
+ -----------------------------------------
1437
+ PostsControllerTest: test_should_get_edit
1438
+ -----------------------------------------
1439
+ object_exist (2.1ms) object_exist --name "schema_versions"
1440
+ table_create (1.7ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1441
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1442
+ column_create (1.8ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1443
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1444
+ load (1.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1445
+ table_create (1.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1446
+ schema (2.3ms) schema
1447
+ column_create (1.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1448
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1449
+ table_create (2.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1450
+ load (1.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1451
+ load (2.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1452
+ Processing by PostsController#edit as HTML
1453
+ Parameters: {"id"=>"1"}
1454
+ select (46.9ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1455
+ Rendered posts/_form.html.erb (8.6ms)
1456
+ Rendered posts/edit.html.erb within layouts/application (10.5ms)
1457
+ Completed 200 OK in 60ms (Views: 11.7ms | Groonga: 46.9ms)
1458
+ shutdown (1.0ms) shutdown
1459
+ --------------------------------------------
1460
+ PostsControllerTest: test_should_create_post
1461
+ --------------------------------------------
1462
+ object_exist (2.4ms) object_exist --name "schema_versions"
1463
+ table_create (2.2ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1464
+ table_create (40.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1465
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1466
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1467
+ load (1.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1468
+ table_create (1.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1469
+ schema (2.6ms) schema
1470
+ column_create (2.7ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1471
+ load (1.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1472
+ table_create (1.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1473
+ load (1.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1474
+ load (1.4ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1475
+ select (1.2ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1476
+ Processing by PostsController#create as HTML
1477
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
1478
+ load (1.3ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1479
+ Redirected to http://test.host/posts/2
1480
+ Completed 302 Found in 3ms (Groonga: 1.3ms)
1481
+ select (1.0ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1482
+ shutdown (0.9ms) shutdown
1483
+ ------------------------------------------
1484
+ PostsControllerTest: test_should_show_post
1485
+ ------------------------------------------
1486
+ object_exist (1.8ms) object_exist --name "schema_versions"
1487
+ table_create (1.8ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1488
+ table_create (1.6ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1489
+ column_create (1.7ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1490
+ column_create (1.7ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1491
+ load (1.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1492
+ table_create (1.8ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1493
+ schema (3.3ms) schema
1494
+ column_create (2.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1495
+ load (1.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1496
+ table_create (1.7ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1497
+ load (1.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1498
+ load (2.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1499
+ Processing by PostsController#show as HTML
1500
+ Parameters: {"id"=>"1"}
1501
+ select (50.7ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1502
+ Rendered posts/show.html.erb within layouts/application (0.8ms)
1503
+ Completed 200 OK in 55ms (Views: 2.7ms | Groonga: 50.7ms)
1504
+ shutdown (0.7ms) shutdown
1505
+ ---------------------------------------------
1506
+ PostsControllerTest: test_should_destroy_post
1507
+ ---------------------------------------------
1508
+ object_exist (2.7ms) object_exist --name "schema_versions"
1509
+ table_create (2.5ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1510
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1511
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1512
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1513
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1514
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1515
+ schema (4.7ms) schema
1516
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1517
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1518
+ table_create (2.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1519
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1520
+ load (3.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1521
+ select (2.8ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1522
+ Processing by PostsController#destroy as HTML
1523
+ Parameters: {"id"=>"1"}
1524
+ select (60.6ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1525
+ delete (1.2ms) delete --filter "_id == 1" --table "posts"
1526
+ Redirected to http://test.host/posts
1527
+ Completed 302 Found in 64ms (Groonga: 61.8ms)
1528
+ select (1.0ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1529
+ shutdown (0.8ms) shutdown
1530
+ ----------------------------------------
1531
+ PostsControllerTest: test_should_get_new
1532
+ ----------------------------------------
1533
+ object_exist (3.4ms) object_exist --name "schema_versions"
1534
+ table_create (3.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1535
+ table_create (3.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1536
+ column_create (3.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1537
+ column_create (3.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1538
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1539
+ table_create (3.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1540
+ schema (7.7ms) schema
1541
+ column_create (4.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1542
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1543
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1544
+ load (3.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1545
+ load (4.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1546
+ Processing by PostsController#new as HTML
1547
+ Rendered posts/_form.html.erb (4.6ms)
1548
+ Rendered posts/new.html.erb within layouts/application (7.3ms)
1549
+ Completed 200 OK in 12ms (Views: 11.2ms | Groonga: 0.0ms)
1550
+ shutdown (2.2ms) shutdown
1551
+ --------------------------------------------
1552
+ PostsControllerTest: test_should_update_post
1553
+ --------------------------------------------
1554
+ object_exist (3.2ms) object_exist --name "schema_versions"
1555
+ table_create (3.0ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1556
+ table_create (2.8ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1557
+ column_create (2.6ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1558
+ column_create (3.8ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1559
+ load (3.6ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1560
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1561
+ schema (7.8ms) schema
1562
+ column_create (4.6ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1563
+ load (3.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1564
+ table_create (3.3ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1565
+ load (3.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1566
+ load (4.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1567
+ Processing by PostsController#update as HTML
1568
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
1569
+ select (51.1ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1570
+ load (1.5ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"_id\":1,\"body\":\"World\",\"title\":\"Hello\"}\n]"
1571
+ Redirected to http://test.host/posts/1
1572
+ Completed 302 Found in 56ms (Groonga: 52.6ms)
1573
+ shutdown (1.2ms) shutdown
1574
+ -----------------------------------------
1575
+ PostsControllerTest: test_should_get_edit
1576
+ -----------------------------------------
1577
+ object_exist (1.7ms) object_exist --name "schema_versions"
1578
+ table_create (1.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1579
+ table_create (1.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1580
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1581
+ column_create (1.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1582
+ load (1.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1583
+ table_create (1.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1584
+ schema (3.1ms) schema
1585
+ column_create (2.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1586
+ load (1.8ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1587
+ table_create (1.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1588
+ load (8.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1589
+ schema (3.8ms) schema
1590
+ load (3.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1591
+ Processing by PostsController#edit as HTML
1592
+ Parameters: {"id"=>"1"}
1593
+ select (52.9ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1594
+ Rendered posts/_form.html.erb (9.0ms)
1595
+ Rendered posts/edit.html.erb within layouts/application (11.3ms)
1596
+ Completed 200 OK in 206ms (Views: 151.5ms | Groonga: 52.9ms)
1597
+ shutdown (1.0ms) shutdown
1598
+ ------------------------------------------
1599
+ PostsControllerTest: test_should_get_index
1600
+ ------------------------------------------
1601
+ object_exist (2.2ms) object_exist --name "schema_versions"
1602
+ table_create (2.0ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1603
+ table_create (2.0ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1604
+ column_create (1.9ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1605
+ column_create (2.0ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1606
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1607
+ table_create (3.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1608
+ schema (4.4ms) schema
1609
+ column_create (3.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1610
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1611
+ table_create (2.0ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1612
+ load (2.0ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1613
+ load (3.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1614
+ Processing by PostsController#index as HTML
1615
+ select (2.7ms) select --limit "-1" --match_columns "body" --table "posts"
1616
+ Rendered posts/index.html.erb within layouts/application (5.7ms)
1617
+ Completed 200 OK in 11ms (Views: 6.8ms | Groonga: 2.7ms)
1618
+ shutdown (1.6ms) shutdown
1619
+ --------------------------------------------
1620
+ PostsControllerTest: test_should_create_post
1621
+ --------------------------------------------
1622
+ object_exist (2.5ms) object_exist --name "schema_versions"
1623
+ table_create (4.6ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1624
+ table_create (2.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1625
+ column_create (2.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1626
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1627
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1628
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1629
+ schema (35.2ms) schema
1630
+ column_create (2.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1631
+ load (1.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1632
+ table_create (1.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1633
+ load (1.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1634
+ load (1.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1635
+ select (1.2ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1636
+ Processing by PostsController#create as HTML
1637
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}}
1638
+ load (1.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1639
+ Redirected to http://test.host/posts/2
1640
+ Completed 302 Found in 2ms (Groonga: 1.1ms)
1641
+ select (1.2ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1642
+ shutdown (1.0ms) shutdown
1643
+ --------------------------------------------
1644
+ PostsControllerTest: test_should_update_post
1645
+ --------------------------------------------
1646
+ object_exist (2.4ms) object_exist --name "schema_versions"
1647
+ table_create (2.2ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1648
+ table_create (2.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1649
+ column_create (2.0ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1650
+ column_create (2.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1651
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1652
+ table_create (2.1ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1653
+ schema (4.0ms) schema
1654
+ column_create (2.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1655
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1656
+ table_create (2.0ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1657
+ load (1.9ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1658
+ load (3.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1659
+ Processing by PostsController#update as HTML
1660
+ Parameters: {"post"=>{"body"=>"World", "title"=>"Hello"}, "id"=>"1"}
1661
+ select (50.5ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1662
+ load (1.1ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"_id\":1,\"body\":\"World\",\"title\":\"Hello\"}\n]"
1663
+ Redirected to http://test.host/posts/1
1664
+ Completed 302 Found in 54ms (Groonga: 51.6ms)
1665
+ shutdown (0.8ms) shutdown
1666
+ ---------------------------------------------
1667
+ PostsControllerTest: test_should_destroy_post
1668
+ ---------------------------------------------
1669
+ object_exist (2.5ms) object_exist --name "schema_versions"
1670
+ table_create (2.6ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1671
+ table_create (2.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1672
+ column_create (1.9ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1673
+ column_create (1.9ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1674
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1675
+ table_create (2.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1676
+ schema (5.0ms) schema
1677
+ column_create (3.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1678
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1679
+ table_create (2.4ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1680
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1681
+ load (3.9ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1682
+ select (2.6ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1683
+ Processing by PostsController#destroy as HTML
1684
+ Parameters: {"id"=>"1"}
1685
+ select (57.2ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1686
+ delete (1.2ms) delete --filter "_id == 1" --table "posts"
1687
+ Redirected to http://test.host/posts
1688
+ Completed 302 Found in 61ms (Groonga: 58.5ms)
1689
+ select (0.9ms) select --limit "0" --match_columns "body" --output_columns "_id" --table "posts"
1690
+ shutdown (0.7ms) shutdown
1691
+ ----------------------------------------
1692
+ PostsControllerTest: test_should_get_new
1693
+ ----------------------------------------
1694
+ object_exist (2.6ms) object_exist --name "schema_versions"
1695
+ table_create (2.5ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1696
+ table_create (3.7ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1697
+ column_create (3.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1698
+ column_create (3.9ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1699
+ load (5.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1700
+ table_create (3.6ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1701
+ schema (7.8ms) schema
1702
+ column_create (4.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1703
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1704
+ table_create (3.3ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1705
+ load (3.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1706
+ load (4.7ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1707
+ Processing by PostsController#new as HTML
1708
+ Rendered posts/_form.html.erb (3.9ms)
1709
+ Rendered posts/new.html.erb within layouts/application (5.9ms)
1710
+ Completed 200 OK in 10ms (Views: 9.9ms | Groonga: 0.0ms)
1711
+ shutdown (1.8ms) shutdown
1712
+ ------------------------------------------
1713
+ PostsControllerTest: test_should_show_post
1714
+ ------------------------------------------
1715
+ object_exist (3.4ms) object_exist --name "schema_versions"
1716
+ table_create (3.3ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1717
+ table_create (3.1ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1718
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1719
+ column_create (3.2ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1720
+ load (3.5ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1721
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1722
+ schema (6.5ms) schema
1723
+ column_create (5.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1724
+ load (4.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1725
+ table_create (3.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1726
+ load (3.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1727
+ load (5.0ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\",\"body\":\"World\"}\n]"
1728
+ Processing by PostsController#show as HTML
1729
+ Parameters: {"id"=>"1"}
1730
+ select (58.2ms) select --filter "_id == \"1\"" --limit "1" --match_columns "body" --table "posts"
1731
+ Rendered posts/show.html.erb within layouts/application (0.8ms)
1732
+ Completed 200 OK in 63ms (Views: 2.3ms | Groonga: 58.2ms)
1733
+ shutdown (1.1ms) shutdown
1734
+ ------------------------------------------
1735
+ MigrationGeneratorTest: test_remove_column
1736
+ ------------------------------------------
1737
+ -----------------------------------------------
1738
+ MigrationGeneratorTest: test_create_table:__key
1739
+ -----------------------------------------------
1740
+ ------------------------------------------
1741
+ MigrationGeneratorTest: test_delete_config
1742
+ ------------------------------------------
1743
+ ---------------------------------------
1744
+ MigrationGeneratorTest: test_add_column
1745
+ ---------------------------------------
1746
+ -----------------------------------------
1747
+ MigrationGeneratorTest: test_create_table
1748
+ -----------------------------------------
1749
+ ---------------------------------------
1750
+ MigrationGeneratorTest: test_set_config
1751
+ ---------------------------------------
1752
+ ----------------------------------------------
1753
+ MigrationGeneratorTest: test_set_config:_value
1754
+ ----------------------------------------------
1755
+ ----------------------------
1756
+ PostTest: test_.create(Hash)
1757
+ ----------------------------
1758
+ object_exist (2.3ms) object_exist --name "schema_versions"
1759
+ table_create (3.1ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1760
+ table_create (3.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1761
+ column_create (3.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1762
+ column_create (3.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1763
+ load (3.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1764
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1765
+ schema (6.0ms) schema
1766
+ column_create (3.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1767
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1768
+ table_create (2.2ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1769
+ load (2.2ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1770
+ load (2.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello\"}\n]"
1771
+ select (54.7ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
1772
+ shutdown (1.1ms) shutdown
1773
+ ------------------------------
1774
+ PostTest: test_.create([Hash])
1775
+ ------------------------------
1776
+ object_exist (3.1ms) object_exist --name "schema_versions"
1777
+ table_create (2.8ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1778
+ table_create (2.4ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1779
+ column_create (2.4ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1780
+ column_create (2.3ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1781
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120517}]"
1782
+ table_create (2.3ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1783
+ schema (4.8ms) schema
1784
+ column_create (3.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1785
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303120527}]"
1786
+ table_create (2.3ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1787
+ load (2.3ms) load --table "schema_versions" --values "[{\"_key\":20170303120536}]"
1788
+ load (2.6ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello1\"}\n]"
1789
+ load (6.3ms) load --command_version "3" --output_errors "yes" --output_ids "yes" --table "posts" --values "[\n{\"title\":\"Hello2\"}\n]"
1790
+ select (45.8ms) select --filter "_id == 1" --limit "1" --match_columns "body" --table "posts"
1791
+ select (1.1ms) select --filter "_id == 2" --limit "1" --match_columns "body" --table "posts"
1792
+ shutdown (0.7ms) shutdown