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
@@ -0,0 +1,103 @@
1
+ require "test_helper"
2
+ require "rails/generators/groonga_client_model/migration_generator"
3
+
4
+ class MigrationGeneratorTest < Rails::Generators::TestCase
5
+ tests GroongaClientModel::Generators::MigrationGenerator
6
+ destination File.expand_path("../tmp", __dir__)
7
+ setup :prepare_destination
8
+
9
+ test "add_column" do
10
+ run_generator(["add_title_to_posts", "title:short_text"])
11
+ assert_migration("db/groonga/migrate/add_title_to_posts.rb", <<-MIGRATION)
12
+ class AddTitleToPosts < GroongaClientModel::Migration
13
+ def change
14
+ add_column :posts, :title, :short_text
15
+ end
16
+ end
17
+ MIGRATION
18
+ end
19
+
20
+ test "remove_column" do
21
+ run_generator(["remove_title_from_posts", "title"])
22
+ assert_migration("db/groonga/migrate/remove_title_from_posts.rb", <<-MIGRATION)
23
+ class RemoveTitleFromPosts < GroongaClientModel::Migration
24
+ def change
25
+ remove_column :posts, :title
26
+ end
27
+ end
28
+ MIGRATION
29
+ end
30
+
31
+ test "create_table" do
32
+ run_generator(["create_posts"])
33
+ assert_migration("db/groonga/migrate/create_posts.rb", <<-MIGRATION)
34
+ class CreatePosts < GroongaClientModel::Migration
35
+ def change
36
+ create_table :posts do |t|
37
+ end
38
+ end
39
+ end
40
+ MIGRATION
41
+ end
42
+
43
+ test "create_table: _key" do
44
+ run_generator(["create_posts", "_key:short_text"])
45
+ assert_migration("db/groonga/migrate/create_posts.rb", <<-MIGRATION)
46
+ class CreatePosts < GroongaClientModel::Migration
47
+ def change
48
+ create_table :posts,
49
+ type: :hash_table,
50
+ key_type: :short_text do |t|
51
+ end
52
+ end
53
+ end
54
+ MIGRATION
55
+ end
56
+
57
+ test "set_config" do
58
+ run_generator(["set_config_alias_column"])
59
+ assert_migration("db/groonga/migrate/set_config_alias_column.rb", <<-MIGRATION)
60
+ class SetConfigAliasColumn < GroongaClientModel::Migration
61
+ def up
62
+ set_config "alias.column", "new value"
63
+ end
64
+
65
+ def down
66
+ # set_config "alias.column", "old value"
67
+ # delete_config "alias.column"
68
+ end
69
+ end
70
+ MIGRATION
71
+ end
72
+
73
+ test "set_config: value" do
74
+ run_generator(["set_config_alias_column", "aliases.real_name"])
75
+ assert_migration("db/groonga/migrate/set_config_alias_column.rb", <<-MIGRATION)
76
+ class SetConfigAliasColumn < GroongaClientModel::Migration
77
+ def up
78
+ set_config "alias.column", "aliases.real_name"
79
+ end
80
+
81
+ def down
82
+ # set_config "alias.column", "old value"
83
+ # delete_config "alias.column"
84
+ end
85
+ end
86
+ MIGRATION
87
+ end
88
+
89
+ test "delete_config" do
90
+ run_generator(["delete_config_alias_column"])
91
+ assert_migration("db/groonga/migrate/delete_config_alias_column.rb", <<-MIGRATION)
92
+ class DeleteConfigAliasColumn < GroongaClientModel::Migration
93
+ def up
94
+ delete_config "alias.column"
95
+ end
96
+
97
+ def down
98
+ # set_config "alias.column", "old value"
99
+ end
100
+ end
101
+ MIGRATION
102
+ end
103
+ end
@@ -0,0 +1,10 @@
1
+ class SetConfigAliasColumn < GroongaClientModel::Migration
2
+ def up
3
+ config_set "alias.column", "aliases.real_name"
4
+ end
5
+
6
+ def down
7
+ # config_set "alias.column", "old value"
8
+ # config_delete "alias.column"
9
+ end
10
+ end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../../../groonga-client
3
3
  specs:
4
- groonga-client (0.4.1)
4
+ groonga-client (0.4.2)
5
5
  gqtp (>= 1.0.4)
6
6
  groonga-command (>= 1.2.8)
7
7
  groonga-command-parser (>= 1.0.7)
@@ -10,9 +10,9 @@ PATH
10
10
  PATH
11
11
  remote: ../../../
12
12
  specs:
13
- groonga-client-model (0.9.9)
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
@@ -78,12 +78,12 @@ GEM
78
78
  globalid (0.3.7)
79
79
  activesupport (>= 4.1.0)
80
80
  gqtp (1.0.6)
81
- groonga-command (1.3.1)
81
+ groonga-command (1.3.2)
82
82
  json
83
- groonga-command-parser (1.0.7)
84
- groonga-command (>= 1.0.9)
83
+ groonga-command-parser (1.0.9)
84
+ groonga-command (>= 1.3.2)
85
85
  json-stream
86
- hashie (3.4.6)
86
+ hashie (3.5.5)
87
87
  i18n (0.7.0)
88
88
  jbuilder (2.6.1)
89
89
  activesupport (>= 3.0.0, < 5.1)
@@ -92,7 +92,7 @@ GEM
92
92
  rails-dom-testing (>= 1, < 3)
93
93
  railties (>= 4.2.0)
94
94
  thor (>= 0.14, < 2.0)
95
- json (2.0.2)
95
+ json (2.0.3)
96
96
  json-stream (0.2.1)
97
97
  listen (3.0.8)
98
98
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -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
@@ -888,3 +888,353 @@ Processing by PostsController#index as HTML
888
888
  Completed 200 OK in 13ms (Views: 11.9ms)
889
889
 
890
890
 
891
+ object_exist (13.7ms) object_exist --name "schema_versions"
892
+ select (3.3ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
893
+ table_create (46.4ms) table_create --flags "TABLE_NO_KEY" --name "posts"
894
+ column_create (49.1ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
895
+ column_create (74.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
896
+ load (1.4ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
897
+ table_create (40.4ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
898
+ schema (50.9ms) schema
899
+ column_create (91.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
900
+ load (2.9ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
901
+ table_create (42.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
902
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
903
+ object_exist (1.3ms) object_exist --name "schema_versions"
904
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
905
+ table_remove (9.1ms) table_remove --name "ages"
906
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
907
+ table_remove (16.1ms) table_remove --name "terms"
908
+ delete (1.4ms) delete --key "20170303115054" --table "schema_versions"
909
+ table_remove (15.7ms) table_remove --name "posts"
910
+ delete (0.8ms) delete --key "20170301061420" --table "schema_versions"
911
+ table_remove (56.6ms) table_remove --name "ages"
912
+ object_exist (1.3ms) object_exist --name "schema_versions"
913
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
914
+ table_create (48.6ms) table_create --flags "TABLE_NO_KEY" --name "posts"
915
+ column_create (50.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
916
+ column_create (49.8ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
917
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
918
+ table_create (52.7ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
919
+ schema (48.0ms) schema
920
+ column_create (93.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
921
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
922
+ table_create (43.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
923
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
924
+ object_exist (1.1ms) object_exist --name "schema_versions"
925
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
926
+ object_exist (1.3ms) object_exist --name "schema_versions"
927
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
928
+ table_remove (7.1ms) table_remove --name "ages"
929
+ delete (0.9ms) delete --key "20170303115135" --table "schema_versions"
930
+ table_remove (8.3ms) table_remove --name "terms"
931
+ delete (0.9ms) delete --key "20170303115054" --table "schema_versions"
932
+ table_remove (15.9ms) table_remove --name "posts"
933
+ delete (1.1ms) delete --key "20170301061420" --table "schema_versions"
934
+ table_remove (1.2ms) table_remove --name "ages"
935
+ object_exist (1.2ms) object_exist --name "schema_versions"
936
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
937
+ table_create (62.9ms) table_create --flags "TABLE_NO_KEY" --name "posts"
938
+ column_create (41.5ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
939
+ column_create (49.7ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
940
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
941
+ table_create (44.0ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
942
+ schema (39.8ms) schema
943
+ column_create (93.7ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
944
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
945
+ table_create (51.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
946
+ load (2.6ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
947
+ object_exist (1.3ms) object_exist --name "schema_versions"
948
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
949
+ table_remove (16.0ms) table_remove --name "ages"
950
+ delete (1.1ms) delete --key "20170303115135" --table "schema_versions"
951
+ table_remove (7.8ms) table_remove --name "terms"
952
+ delete (0.9ms) delete --key "20170303115054" --table "schema_versions"
953
+ table_remove (11.8ms) table_remove --name "posts"
954
+ delete (1.4ms) delete --key "20170301061420" --table "schema_versions"
955
+ table_remove (1.3ms) table_remove --name "ages"
956
+ object_exist (1.6ms) object_exist --name "schema_versions"
957
+ select (1.1ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
958
+ table_create (53.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
959
+ column_create (49.5ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
960
+ column_create (49.8ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
961
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
962
+ table_create (44.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
963
+ schema (23.5ms) schema
964
+ column_create (93.5ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
965
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
966
+ table_create (51.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
967
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
968
+ object_exist (1.4ms) object_exist --name "schema_versions"
969
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
970
+ object_exist (1.7ms) object_exist --name "schema_versions"
971
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
972
+ table_remove (6.4ms) table_remove --name "ages"
973
+ delete (0.8ms) delete --key "20170303115135" --table "schema_versions"
974
+ table_remove (7.8ms) table_remove --name "terms"
975
+ delete (1.6ms) delete --key "20170303115054" --table "schema_versions"
976
+ table_remove (14.9ms) table_remove --name "posts"
977
+ delete (3.2ms) delete --key "20170301061420" --table "schema_versions"
978
+ table_remove (1.1ms) table_remove --name "ages"
979
+ object_exist (1.7ms) object_exist --name "schema_versions"
980
+ select (1.6ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
981
+ table_create (58.2ms) table_create --flags "TABLE_NO_KEY" --name "posts"
982
+ column_create (49.5ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
983
+ column_create (49.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
984
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
985
+ table_create (44.8ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
986
+ schema (45.9ms) schema
987
+ column_create (104.0ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
988
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
989
+ table_create (43.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
990
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
991
+ object_exist (1.1ms) object_exist --name "schema_versions"
992
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
993
+ table_remove (6.6ms) table_remove --name "ages"
994
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
995
+ table_remove (8.1ms) table_remove --name "terms"
996
+ delete (0.8ms) delete --key "20170303115054" --table "schema_versions"
997
+ table_remove (15.2ms) table_remove --name "posts"
998
+ delete (1.0ms) delete --key "20170301061420" --table "schema_versions"
999
+ table_remove (1.1ms) table_remove --name "ages"
1000
+ object_exist (1.2ms) object_exist --name "schema_versions"
1001
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1002
+ table_create (54.5ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1003
+ column_create (41.7ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1004
+ column_create (49.4ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1005
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
1006
+ table_create (51.8ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1007
+ schema (43.2ms) schema
1008
+ column_create (107.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1009
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1010
+ table_create (50.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1011
+ load (2.9ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1012
+ object_exist (1.2ms) object_exist --name "schema_versions"
1013
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1014
+ table_remove (7.0ms) table_remove --name "ages"
1015
+ delete (1.1ms) delete --key "20170303115135" --table "schema_versions"
1016
+ table_remove (8.0ms) table_remove --name "terms"
1017
+ delete (0.9ms) delete --key "20170303115054" --table "schema_versions"
1018
+ table_remove (15.3ms) table_remove --name "posts"
1019
+ delete (1.0ms) delete --key "20170301061420" --table "schema_versions"
1020
+ table_remove (0.9ms) table_remove --name "ages"
1021
+ object_exist (1.3ms) object_exist --name "schema_versions"
1022
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1023
+ table_create (61.9ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1024
+ column_create (50.2ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1025
+ column_create (48.8ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1026
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
1027
+ table_create (43.9ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1028
+ schema (42.0ms) schema
1029
+ column_create (100.2ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1030
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1031
+ table_create (51.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1032
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1033
+ object_exist (1.2ms) object_exist --name "schema_versions"
1034
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1035
+ table_remove (7.2ms) table_remove --name "ages"
1036
+ delete (1.1ms) delete --key "20170303115135" --table "schema_versions"
1037
+ table_remove (6.7ms) table_remove --name "terms"
1038
+ delete (1.0ms) delete --key "20170303115054" --table "schema_versions"
1039
+ table_remove (7.7ms) table_remove --name "posts"
1040
+ delete (1.1ms) delete --key "20170301061420" --table "schema_versions"
1041
+ table_remove (0.7ms) table_remove --name "ages"
1042
+ object_exist (1.4ms) object_exist --name "schema_versions"
1043
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1044
+ table_create (59.5ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1045
+ column_create (41.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1046
+ column_create (49.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1047
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
1048
+ table_create (52.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1049
+ schema (43.4ms) schema
1050
+ column_create (90.1ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1051
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1052
+ table_create (43.5ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1053
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1054
+ object_exist (1.2ms) object_exist --name "schema_versions"
1055
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1056
+ table_remove (7.1ms) table_remove --name "ages"
1057
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1058
+ table_remove (0.8ms) table_remove --name "ages"
1059
+ object_exist (1.4ms) object_exist --name "schema_versions"
1060
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1061
+ table_create (49.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1062
+ load (1.3ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1063
+ object_exist (1.2ms) object_exist --name "schema_versions"
1064
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1065
+ table_remove (6.3ms) table_remove --name "ages"
1066
+ delete (1.1ms) delete --key "20170303115135" --table "schema_versions"
1067
+ table_remove (0.8ms) table_remove --name "ages"
1068
+ object_exist (1.1ms) object_exist --name "schema_versions"
1069
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1070
+ table_create (55.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1071
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1072
+ object_exist (1.2ms) object_exist --name "schema_versions"
1073
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1074
+ table_remove (6.6ms) table_remove --name "ages"
1075
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1076
+ table_remove (0.7ms) table_remove --name "ages"
1077
+ object_exist (1.2ms) object_exist --name "schema_versions"
1078
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1079
+ table_create (43.0ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1080
+ load (3.3ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1081
+ object_exist (1.2ms) object_exist --name "schema_versions"
1082
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1083
+ table_remove (5.5ms) table_remove --name "ages"
1084
+ delete (0.9ms) delete --key "20170303115135" --table "schema_versions"
1085
+ table_remove (0.7ms) table_remove --name "ages"
1086
+ object_exist (1.0ms) object_exist --name "schema_versions"
1087
+ select (4.3ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1088
+ table_create (56.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1089
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1090
+ object_exist (1.4ms) object_exist --name "schema_versions"
1091
+ select (1.2ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1092
+ table_remove (7.1ms) table_remove --name "ages"
1093
+ delete (1.1ms) delete --key "20170303115135" --table "schema_versions"
1094
+ table_remove (0.8ms) table_remove --name "ages"
1095
+ object_exist (1.4ms) object_exist --name "schema_versions"
1096
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1097
+ table_create (59.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1098
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1099
+ object_exist (1.3ms) object_exist --name "schema_versions"
1100
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1101
+ table_remove (5.7ms) table_remove --name "ages"
1102
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1103
+ table_remove (0.8ms) table_remove --name "ages"
1104
+ object_exist (1.4ms) object_exist --name "schema_versions"
1105
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1106
+ table_remove (1.1ms) table_remove --name "ages"
1107
+ object_exist (1.2ms) object_exist --name "schema_versions"
1108
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1109
+ table_create (53.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1110
+ load (2.9ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1111
+ object_exist (1.2ms) object_exist --name "schema_versions"
1112
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1113
+ table_remove (6.0ms) table_remove --name "ages"
1114
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1115
+ table_remove (0.8ms) table_remove --name "ages"
1116
+ object_exist (1.5ms) object_exist --name "schema_versions"
1117
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1118
+ table_create (65.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1119
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1120
+ object_exist (1.2ms) object_exist --name "schema_versions"
1121
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1122
+ table_remove (5.5ms) table_remove --name "ages"
1123
+ delete (0.9ms) delete --key "20170303115135" --table "schema_versions"
1124
+ table_remove (0.6ms) table_remove --name "ages"
1125
+ object_exist (1.1ms) object_exist --name "schema_versions"
1126
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1127
+ table_remove (0.7ms) table_remove --name "ages"
1128
+ object_exist (1.3ms) object_exist --name "schema_versions"
1129
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1130
+ table_create (99.4ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1131
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1132
+ object_exist (1.3ms) object_exist --name "schema_versions"
1133
+ select (1.1ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1134
+ table_remove (6.4ms) table_remove --name "ages"
1135
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1136
+ table_remove (0.9ms) table_remove --name "ages"
1137
+ object_exist (1.5ms) object_exist --name "schema_versions"
1138
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1139
+ table_create (60.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1140
+ load (3.5ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1141
+ object_exist (1.3ms) object_exist --name "schema_versions"
1142
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1143
+ table_remove (5.7ms) table_remove --name "ages"
1144
+ delete (1.1ms) delete --key "20170303115135" --table "schema_versions"
1145
+ table_create (68.9ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1146
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1147
+ object_exist (1.3ms) object_exist --name "schema_versions"
1148
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1149
+ table_remove (10.8ms) table_remove --name "ages"
1150
+ delete (0.9ms) delete --key "20170303115135" --table "schema_versions"
1151
+ table_create (42.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1152
+ load (1.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1153
+ object_exist (1.3ms) object_exist --name "schema_versions"
1154
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1155
+ table_remove (11.5ms) table_remove --name "ages"
1156
+ delete (1.7ms) delete --key "20170303115135" --table "schema_versions"
1157
+ table_create (60.1ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1158
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1159
+ object_exist (1.2ms) object_exist --name "schema_versions"
1160
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1161
+ table_remove (6.4ms) table_remove --name "ages"
1162
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1163
+ table_remove (16.4ms) table_remove --name "ages"
1164
+ object_exist (1.1ms) object_exist --name "schema_versions"
1165
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1166
+ table_create (53.7ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1167
+ load (3.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1168
+ object_exist (1.2ms) object_exist --name "schema_versions"
1169
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1170
+ table_remove (6.2ms) table_remove --name "ages"
1171
+ delete (0.9ms) delete --key "20170303115135" --table "schema_versions"
1172
+ table_remove (8.7ms) table_remove --name "terms"
1173
+ delete (0.9ms) delete --key "20170303115054" --table "schema_versions"
1174
+ table_remove (16.2ms) table_remove --name "posts"
1175
+ delete (1.1ms) delete --key "20170301061420" --table "schema_versions"
1176
+ table_remove (0.9ms) table_remove --name "ages"
1177
+ object_exist (1.2ms) object_exist --name "schema_versions"
1178
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1179
+ table_create (65.9ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1180
+ column_create (40.9ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1181
+ column_create (41.8ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1182
+ load (3.2ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
1183
+ table_create (43.8ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1184
+ schema (43.7ms) schema
1185
+ column_create (88.6ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1186
+ load (1.3ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1187
+ object_exist (1.2ms) object_exist --name "schema_versions"
1188
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1189
+ table_create (176.4ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1190
+ load (2.9ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1191
+ object_exist (1.2ms) object_exist --name "schema_versions"
1192
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1193
+ table_remove (7.8ms) table_remove --name "ages"
1194
+ delete (1.0ms) delete --key "20170303115135" --table "schema_versions"
1195
+ table_remove (9.3ms) table_remove --name "terms"
1196
+ delete (0.9ms) delete --key "20170303115054" --table "schema_versions"
1197
+ table_create (85.0ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1198
+ schema (39.4ms) schema
1199
+ column_create (93.9ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1200
+ load (2.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1201
+ table_create (51.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1202
+ load (3.0ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1203
+ object_exist (1.3ms) object_exist --name "schema_versions"
1204
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1205
+ object_exist (14.1ms) object_exist --name "schema_versions"
1206
+ table_create (80.6ms) table_create --flags "TABLE_PAT_KEY" --key_type "UInt64" --name "schema_versions"
1207
+ object_exist (1.0ms) object_exist --name "schema_versions"
1208
+ select (0.8ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1209
+ table_create (30.3ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1210
+ column_create (34.3ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1211
+ column_create (31.7ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1212
+ load (2.7ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
1213
+ table_create (37.2ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1214
+ schema (4.0ms) schema
1215
+ column_create (62.7ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1216
+ load (1.8ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1217
+ table_create (21.8ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1218
+ load (2.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"
1219
+ object_exist (1.2ms) object_exist --name "schema_versions"
1220
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1221
+ table_remove (0.8ms) table_remove --name "ages"
1222
+ delete (0.8ms) delete --key "20170303115135" --table "schema_versions"
1223
+ table_remove (2.4ms) table_remove --name "terms"
1224
+ delete (0.8ms) delete --key "20170303115054" --table "schema_versions"
1225
+ table_remove (1.4ms) table_remove --name "posts"
1226
+ delete (0.8ms) delete --key "20170301061420" --table "schema_versions"
1227
+ object_exist (4.6ms) object_exist --name "schema_versions"
1228
+ select (1.0ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1229
+ object_exist (1.1ms) object_exist --name "schema_versions"
1230
+ select (0.9ms) select --limit "-1" --output_columns "_key" --sort_keys "_key" --sortby "_key" --table "schema_versions"
1231
+ table_create (26.6ms) table_create --flags "TABLE_NO_KEY" --name "posts"
1232
+ column_create (33.8ms) column_create --flags "COLUMN_SCALAR" --name "title" --table "posts" --type "ShortText"
1233
+ column_create (25.1ms) column_create --flags "COLUMN_SCALAR" --name "body" --table "posts" --type "Text"
1234
+ load (2.5ms) load --table "schema_versions" --values "[{\"_key\":20170301061420}]"
1235
+ table_create (45.5ms) table_create --default_tokenizer "TokenBigram" --flags "TABLE_PAT_KEY" --key_type "ShortText" --name "terms" --normalizer "NormalizerAuto"
1236
+ schema (3.7ms) schema
1237
+ column_create (63.4ms) column_create --flags "COLUMN_INDEX|WITH_POSITION" --name "posts_body" --source "body" --table "terms" --type "posts"
1238
+ load (2.4ms) load --table "schema_versions" --values "[{\"_key\":20170303115054}]"
1239
+ table_create (35.6ms) table_create --flags "TABLE_HASH_KEY" --key_type "UInt32" --name "ages"
1240
+ load (1.1ms) load --table "schema_versions" --values "[{\"_key\":20170303115135}]"