timescaledb 0.1.4 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +6 -3
- data/Gemfile.scenic +7 -0
- data/Gemfile.scenic.lock +121 -0
- data/README.md +35 -18
- data/Rakefile +7 -1
- data/bin/console +3 -3
- data/bin/setup +2 -0
- data/bin/tsdb +7 -7
- data/examples/{Gemfile → all_in_one/Gemfile} +0 -0
- data/examples/{Gemfile.lock → all_in_one/Gemfile.lock} +0 -0
- data/examples/{all_in_one.rb → all_in_one/all_in_one.rb} +1 -1
- data/examples/ranking/.gitattributes +7 -0
- data/examples/ranking/.gitignore +29 -0
- data/examples/ranking/.ruby-version +1 -0
- data/examples/ranking/Gemfile +33 -0
- data/examples/ranking/Gemfile.lock +189 -0
- data/examples/ranking/README.md +166 -0
- data/examples/ranking/Rakefile +6 -0
- data/examples/ranking/app/controllers/application_controller.rb +2 -0
- data/examples/ranking/app/controllers/concerns/.keep +0 -0
- data/examples/ranking/app/jobs/application_job.rb +7 -0
- data/examples/ranking/app/models/application_record.rb +3 -0
- data/examples/ranking/app/models/concerns/.keep +0 -0
- data/examples/ranking/app/models/game.rb +2 -0
- data/examples/ranking/app/models/play.rb +7 -0
- data/examples/ranking/bin/bundle +114 -0
- data/examples/ranking/bin/rails +4 -0
- data/examples/ranking/bin/rake +4 -0
- data/examples/ranking/bin/setup +33 -0
- data/examples/ranking/config/application.rb +39 -0
- data/examples/ranking/config/boot.rb +4 -0
- data/examples/ranking/config/credentials.yml.enc +1 -0
- data/examples/ranking/config/database.yml +86 -0
- data/examples/ranking/config/environment.rb +5 -0
- data/examples/ranking/config/environments/development.rb +60 -0
- data/examples/ranking/config/environments/production.rb +75 -0
- data/examples/ranking/config/environments/test.rb +53 -0
- data/examples/ranking/config/initializers/cors.rb +16 -0
- data/examples/ranking/config/initializers/filter_parameter_logging.rb +8 -0
- data/examples/ranking/config/initializers/inflections.rb +16 -0
- data/examples/ranking/config/initializers/timescale.rb +2 -0
- data/examples/ranking/config/locales/en.yml +33 -0
- data/examples/ranking/config/puma.rb +43 -0
- data/examples/ranking/config/routes.rb +6 -0
- data/examples/ranking/config/storage.yml +34 -0
- data/examples/ranking/config.ru +6 -0
- data/examples/ranking/db/migrate/20220209120747_create_games.rb +10 -0
- data/examples/ranking/db/migrate/20220209120910_create_plays.rb +19 -0
- data/examples/ranking/db/migrate/20220209143347_create_score_per_hours.rb +5 -0
- data/examples/ranking/db/schema.rb +47 -0
- data/examples/ranking/db/seeds.rb +7 -0
- data/examples/ranking/db/views/score_per_hours_v01.sql +7 -0
- data/examples/ranking/lib/tasks/.keep +0 -0
- data/examples/ranking/log/.keep +0 -0
- data/examples/ranking/public/robots.txt +1 -0
- data/examples/ranking/storage/.keep +0 -0
- data/examples/ranking/tmp/.keep +0 -0
- data/examples/ranking/tmp/pids/.keep +0 -0
- data/examples/ranking/tmp/storage/.keep +0 -0
- data/examples/ranking/vendor/.keep +0 -0
- data/lib/{timescale → timescaledb}/acts_as_hypertable/core.rb +1 -1
- data/lib/{timescale → timescaledb}/acts_as_hypertable.rb +6 -6
- data/lib/{timescale → timescaledb}/chunk.rb +1 -1
- data/lib/{timescale → timescaledb}/compression_settings.rb +3 -2
- data/lib/{timescale → timescaledb}/continuous_aggregates.rb +5 -4
- data/lib/timescaledb/dimensions.rb +6 -0
- data/lib/{timescale → timescaledb}/hypertable.rb +5 -5
- data/lib/timescaledb/job.rb +10 -0
- data/lib/{timescale → timescaledb}/job_stats.rb +3 -4
- data/lib/{timescale → timescaledb}/migration_helpers.rb +51 -13
- data/lib/timescaledb/scenic/adapter.rb +55 -0
- data/lib/timescaledb/scenic/extension.rb +72 -0
- data/lib/timescaledb/schema_dumper.rb +91 -0
- data/lib/{timescale → timescaledb}/stats_report.rb +2 -2
- data/lib/timescaledb/version.rb +3 -0
- data/lib/timescaledb.rb +64 -0
- data/{timescale.gemspec → timescaledb.gemspec} +5 -4
- metadata +92 -23
- data/lib/timescale/dimensions.rb +0 -7
- data/lib/timescale/job.rb +0 -13
- data/lib/timescale/schema_dumper.rb +0 -24
- data/lib/timescale/version.rb +0 -3
- 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
|