timescaledb 0.1.4 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/.tool-versions +1 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +6 -3
  7. data/Gemfile.scenic +7 -0
  8. data/Gemfile.scenic.lock +121 -0
  9. data/README.md +35 -18
  10. data/Rakefile +7 -1
  11. data/bin/console +3 -3
  12. data/bin/setup +2 -0
  13. data/bin/tsdb +7 -7
  14. data/examples/{Gemfile → all_in_one/Gemfile} +0 -0
  15. data/examples/{Gemfile.lock → all_in_one/Gemfile.lock} +0 -0
  16. data/examples/{all_in_one.rb → all_in_one/all_in_one.rb} +1 -1
  17. data/examples/ranking/.gitattributes +7 -0
  18. data/examples/ranking/.gitignore +29 -0
  19. data/examples/ranking/.ruby-version +1 -0
  20. data/examples/ranking/Gemfile +33 -0
  21. data/examples/ranking/Gemfile.lock +189 -0
  22. data/examples/ranking/README.md +166 -0
  23. data/examples/ranking/Rakefile +6 -0
  24. data/examples/ranking/app/controllers/application_controller.rb +2 -0
  25. data/examples/ranking/app/controllers/concerns/.keep +0 -0
  26. data/examples/ranking/app/jobs/application_job.rb +7 -0
  27. data/examples/ranking/app/models/application_record.rb +3 -0
  28. data/examples/ranking/app/models/concerns/.keep +0 -0
  29. data/examples/ranking/app/models/game.rb +2 -0
  30. data/examples/ranking/app/models/play.rb +7 -0
  31. data/examples/ranking/bin/bundle +114 -0
  32. data/examples/ranking/bin/rails +4 -0
  33. data/examples/ranking/bin/rake +4 -0
  34. data/examples/ranking/bin/setup +33 -0
  35. data/examples/ranking/config/application.rb +39 -0
  36. data/examples/ranking/config/boot.rb +4 -0
  37. data/examples/ranking/config/credentials.yml.enc +1 -0
  38. data/examples/ranking/config/database.yml +86 -0
  39. data/examples/ranking/config/environment.rb +5 -0
  40. data/examples/ranking/config/environments/development.rb +60 -0
  41. data/examples/ranking/config/environments/production.rb +75 -0
  42. data/examples/ranking/config/environments/test.rb +53 -0
  43. data/examples/ranking/config/initializers/cors.rb +16 -0
  44. data/examples/ranking/config/initializers/filter_parameter_logging.rb +8 -0
  45. data/examples/ranking/config/initializers/inflections.rb +16 -0
  46. data/examples/ranking/config/initializers/timescale.rb +2 -0
  47. data/examples/ranking/config/locales/en.yml +33 -0
  48. data/examples/ranking/config/puma.rb +43 -0
  49. data/examples/ranking/config/routes.rb +6 -0
  50. data/examples/ranking/config/storage.yml +34 -0
  51. data/examples/ranking/config.ru +6 -0
  52. data/examples/ranking/db/migrate/20220209120747_create_games.rb +10 -0
  53. data/examples/ranking/db/migrate/20220209120910_create_plays.rb +19 -0
  54. data/examples/ranking/db/migrate/20220209143347_create_score_per_hours.rb +5 -0
  55. data/examples/ranking/db/schema.rb +47 -0
  56. data/examples/ranking/db/seeds.rb +7 -0
  57. data/examples/ranking/db/views/score_per_hours_v01.sql +7 -0
  58. data/examples/ranking/lib/tasks/.keep +0 -0
  59. data/examples/ranking/log/.keep +0 -0
  60. data/examples/ranking/public/robots.txt +1 -0
  61. data/examples/ranking/storage/.keep +0 -0
  62. data/examples/ranking/tmp/.keep +0 -0
  63. data/examples/ranking/tmp/pids/.keep +0 -0
  64. data/examples/ranking/tmp/storage/.keep +0 -0
  65. data/examples/ranking/vendor/.keep +0 -0
  66. data/lib/{timescale → timescaledb}/acts_as_hypertable/core.rb +1 -1
  67. data/lib/{timescale → timescaledb}/acts_as_hypertable.rb +6 -6
  68. data/lib/{timescale → timescaledb}/chunk.rb +1 -1
  69. data/lib/{timescale → timescaledb}/compression_settings.rb +3 -2
  70. data/lib/{timescale → timescaledb}/continuous_aggregates.rb +5 -4
  71. data/lib/timescaledb/dimensions.rb +6 -0
  72. data/lib/{timescale → timescaledb}/hypertable.rb +5 -5
  73. data/lib/timescaledb/job.rb +10 -0
  74. data/lib/{timescale → timescaledb}/job_stats.rb +3 -4
  75. data/lib/{timescale → timescaledb}/migration_helpers.rb +51 -13
  76. data/lib/timescaledb/scenic/adapter.rb +55 -0
  77. data/lib/timescaledb/scenic/extension.rb +72 -0
  78. data/lib/timescaledb/schema_dumper.rb +91 -0
  79. data/lib/{timescale → timescaledb}/stats_report.rb +2 -2
  80. data/lib/timescaledb/version.rb +3 -0
  81. data/lib/timescaledb.rb +64 -0
  82. data/{timescale.gemspec → timescaledb.gemspec} +5 -4
  83. metadata +92 -23
  84. data/lib/timescale/dimensions.rb +0 -7
  85. data/lib/timescale/job.rb +0 -13
  86. data/lib/timescale/schema_dumper.rb +0 -24
  87. data/lib/timescale/version.rb +0 -3
  88. data/lib/timescale.rb +0 -50
data/lib/timescale.rb DELETED
@@ -1,50 +0,0 @@
1
- require 'active_record'
2
-
3
- require_relative 'timescale/acts_as_hypertable'
4
- require_relative 'timescale/acts_as_hypertable/core'
5
- require_relative 'timescale/chunk'
6
- require_relative 'timescale/compression_settings'
7
- require_relative 'timescale/continuous_aggregates'
8
- require_relative 'timescale/dimensions'
9
- require_relative 'timescale/hypertable'
10
- require_relative 'timescale/job'
11
- require_relative 'timescale/job_stats'
12
- require_relative 'timescale/stats_report'
13
- require_relative 'timescale/migration_helpers'
14
- require_relative 'timescale/version'
15
-
16
- module Timescale
17
- module_function
18
-
19
- def chunks
20
- Chunk.all
21
- end
22
-
23
- def hypertables
24
- Hypertable.all
25
- end
26
-
27
- def continuous_aggregates
28
- ContinuousAggregates.all
29
- end
30
-
31
- def compression_settings
32
- CompressionSettings.all
33
- end
34
-
35
- def jobs
36
- Job.all
37
- end
38
-
39
- def job_stats
40
- JobStats.all
41
- end
42
-
43
- def stats(scope=Hypertable.all)
44
- StatsReport.resume(scope)
45
- end
46
-
47
- def default_hypertable_options
48
- Timescale::ActsAsHypertable::DEFAULT_OPTIONS
49
- end
50
- end