activerecord-timescaledb-adapter 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.standard.yml +3 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +95 -0
- data/LICENSE.txt +21 -0
- data/README.md +37 -0
- data/Rakefile +10 -0
- data/lib/active_record/connection_adapters/timescaledb/version.rb +9 -0
- data/lib/active_record/connection_adapters/timescaledb_adapter.rb +13 -0
- data/lib/active_record/timescale/base.rb +44 -0
- data/lib/active_record/timescale/schema_migration.rb +154 -0
- data/lib/activerecord-timescaledb-adapter.rb +3 -0
- data/sig/activerecord/timescaledb/adapter.rbs +8 -0
- metadata +171 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3aa5071de7bc34242ec33c7cedc277ca71a45752978b8facf0da5d930b92a858
|
4
|
+
data.tar.gz: c1b2ac532da6fe80ea97358849dfe5fae6329290e9f75d777334e638114b3009
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 28fd541927483c1c36ba4dbbda4e56da8798806bd41458bf3af306d74552bb419a0f2049a4e4b38023262db8cec62a2edd359d1368b70c19fb69eccc5a97eb9a
|
7
|
+
data.tar.gz: aab45a7bf415ee81230a2aa4bd5c84569be4dd6219ff48fab5ea4b94f39dbb9f83d1c799936617ce7cdad924a83b41c06784ca2d09ddec73940fd7ce2555291f
|
data/.rspec
ADDED
data/.standard.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
activerecord-timescaledb-adapter (0.1.0)
|
5
|
+
activerecord (~> 6.0.0)
|
6
|
+
activesupport (~> 6.0.0)
|
7
|
+
pg (~> 1.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
activemodel (6.0.6)
|
13
|
+
activesupport (= 6.0.6)
|
14
|
+
activerecord (6.0.6)
|
15
|
+
activemodel (= 6.0.6)
|
16
|
+
activesupport (= 6.0.6)
|
17
|
+
activerecord-nulldb-adapter (0.8.0)
|
18
|
+
activerecord (>= 5.2.0, < 7.1)
|
19
|
+
activesupport (6.0.6)
|
20
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
21
|
+
i18n (>= 0.7, < 2)
|
22
|
+
minitest (~> 5.1)
|
23
|
+
tzinfo (~> 1.1)
|
24
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
25
|
+
ast (2.4.2)
|
26
|
+
coderay (1.1.3)
|
27
|
+
concurrent-ruby (1.1.10)
|
28
|
+
diff-lcs (1.5.0)
|
29
|
+
i18n (1.12.0)
|
30
|
+
concurrent-ruby (~> 1.0)
|
31
|
+
json (2.6.2)
|
32
|
+
method_source (1.0.0)
|
33
|
+
minitest (5.16.3)
|
34
|
+
parallel (1.22.1)
|
35
|
+
parser (3.1.2.1)
|
36
|
+
ast (~> 2.4.1)
|
37
|
+
pg (1.4.5)
|
38
|
+
pry (0.14.1)
|
39
|
+
coderay (~> 1.1)
|
40
|
+
method_source (~> 1.0)
|
41
|
+
rainbow (3.1.1)
|
42
|
+
rake (13.0.6)
|
43
|
+
regexp_parser (2.6.1)
|
44
|
+
rexml (3.2.5)
|
45
|
+
rspec (3.12.0)
|
46
|
+
rspec-core (~> 3.12.0)
|
47
|
+
rspec-expectations (~> 3.12.0)
|
48
|
+
rspec-mocks (~> 3.12.0)
|
49
|
+
rspec-core (3.12.0)
|
50
|
+
rspec-support (~> 3.12.0)
|
51
|
+
rspec-expectations (3.12.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.12.0)
|
54
|
+
rspec-mocks (3.12.0)
|
55
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
56
|
+
rspec-support (~> 3.12.0)
|
57
|
+
rspec-support (3.12.0)
|
58
|
+
rubocop (1.39.0)
|
59
|
+
json (~> 2.3)
|
60
|
+
parallel (~> 1.10)
|
61
|
+
parser (>= 3.1.2.1)
|
62
|
+
rainbow (>= 2.2.2, < 4.0)
|
63
|
+
regexp_parser (>= 1.8, < 3.0)
|
64
|
+
rexml (>= 3.2.5, < 4.0)
|
65
|
+
rubocop-ast (>= 1.23.0, < 2.0)
|
66
|
+
ruby-progressbar (~> 1.7)
|
67
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
68
|
+
rubocop-ast (1.23.0)
|
69
|
+
parser (>= 3.1.1.0)
|
70
|
+
rubocop-performance (1.15.1)
|
71
|
+
rubocop (>= 1.7.0, < 2.0)
|
72
|
+
rubocop-ast (>= 0.4.0)
|
73
|
+
ruby-progressbar (1.11.0)
|
74
|
+
standard (1.18.1)
|
75
|
+
rubocop (= 1.39.0)
|
76
|
+
rubocop-performance (= 1.15.1)
|
77
|
+
thread_safe (0.3.6)
|
78
|
+
tzinfo (1.2.10)
|
79
|
+
thread_safe (~> 0.1)
|
80
|
+
unicode-display_width (2.3.0)
|
81
|
+
zeitwerk (2.6.6)
|
82
|
+
|
83
|
+
PLATFORMS
|
84
|
+
x86_64-darwin-19
|
85
|
+
|
86
|
+
DEPENDENCIES
|
87
|
+
activerecord-nulldb-adapter
|
88
|
+
activerecord-timescaledb-adapter!
|
89
|
+
pry
|
90
|
+
rake (~> 13.0)
|
91
|
+
rspec (~> 3.0)
|
92
|
+
standard (~> 1.3)
|
93
|
+
|
94
|
+
BUNDLED WITH
|
95
|
+
2.3.26
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Evan Duncan
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# ActiveRecord TimescaleDB Adapter
|
2
|
+
|
3
|
+
The activerecord-timescaledb-adapter provides access to features of the [Timescale](https://www.timescale.com/) Postgres extension from ActiveRecord.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install the gem and add to the application's Gemfile by executing:
|
8
|
+
|
9
|
+
$ bundle add activerecord-timescaledb-adapter
|
10
|
+
|
11
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
12
|
+
|
13
|
+
$ gem install activerecord-timescaledb-adapter
|
14
|
+
|
15
|
+
## Usage
|
16
|
+
|
17
|
+
TODO: Write usage instructions here
|
18
|
+
|
19
|
+
## Roadmap
|
20
|
+
|
21
|
+
- [] [Hypertable](https://docs.timescale.com/api/latest/hypertable/) ActiveRecord::Migration methods
|
22
|
+
- [] [Distributed Hypertable](https://docs.timescale.com/api/latest/distributed-hypertables/) ActiveRecord::Migration methods
|
23
|
+
- [] [Hyperfunction](https://docs.timescale.com/api/latest/hyperfunctions/)s on ActiveRecord models
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/grnhse/activerecord-timescaledb-adapter.
|
34
|
+
|
35
|
+
## License
|
36
|
+
|
37
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_record"
|
4
|
+
require "active_record/connection_adapters/postgresql_adapter"
|
5
|
+
require "active_record/connection_adapters/timescaledb/version"
|
6
|
+
|
7
|
+
module ActiveRecord
|
8
|
+
module ConnectionAdapters
|
9
|
+
class TimescaleDBAdapter < PostgreSQLAdapter
|
10
|
+
ADAPTER_NAME = "TimescaleDB"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveRecord
|
4
|
+
module Timescale
|
5
|
+
class Base < ActiveRecord::Base
|
6
|
+
# The first aggregate allows you to get the value of one column as ordered by another.
|
7
|
+
# For example, first(temperature, time) returns the earliest temperature
|
8
|
+
# value based on time within an aggregate group.
|
9
|
+
#
|
10
|
+
# The last aggregate allows you to get the value of one column as ordered by another.
|
11
|
+
# For example, last(temperature, time) returns the latest temperature
|
12
|
+
# value based on time within an aggregate group.
|
13
|
+
%i[first last].each do |method|
|
14
|
+
scope method, lambda do |value, time|
|
15
|
+
select(sanitize_sql(["#{method}(?, ?)", value, time]))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# @param value [*] A set of values to partition into a histogram
|
20
|
+
# @param min [Integer] The histogram's lower bound used in bucketing (inclusive)
|
21
|
+
# @param max [Integer] The histogram's upper bound used in bucketing (exclusive)
|
22
|
+
# @param nbuckets [Integer] The integer value for the number of histogram buckets (partitions)
|
23
|
+
scope :histogram, lambda do |value, min, max, nbuckets|
|
24
|
+
select(sanitize_sql(["histogram(?, ?, ?, ?)", value, min, max, nbuckets]))
|
25
|
+
end
|
26
|
+
|
27
|
+
class << self
|
28
|
+
# Get approximate row count for hypertable, distributed hypertable, or regular
|
29
|
+
# PostgreSQL table based on catalog estimates. This function supports tables
|
30
|
+
# with nested inheritance and declarative partitioning.
|
31
|
+
#
|
32
|
+
# The accuracy of approximate_row_count depends on the database having up-to-date statistics about
|
33
|
+
# the table or hypertable, which are updated by VACUUM, ANALYZE, and a few DDL commands.
|
34
|
+
# If you have auto-vacuum configured on your table or hypertable, or changes to the
|
35
|
+
# table are relatively infrequent, you might not need to explicitly ANALYZE your table as shown below.
|
36
|
+
# Otherwise, if your table statistics are too out-of-date, running this command updates
|
37
|
+
# your statistics and yields more accurate approximation results.
|
38
|
+
def approximate_row_count
|
39
|
+
execute sanitize_sql(["SELECT * FROM approximate_row_count(?)", quote_table_name(table_name)])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_record"
|
4
|
+
require "active_support/concern"
|
5
|
+
|
6
|
+
module ActiveRecord
|
7
|
+
module Timescale
|
8
|
+
module SchemaMigration
|
9
|
+
extend ActiveSupport::Concern
|
10
|
+
|
11
|
+
# Create a Hypertable from a postgres table
|
12
|
+
# An existing table can be used or, if given a block, a new table will be created.
|
13
|
+
#
|
14
|
+
# Examples:
|
15
|
+
#
|
16
|
+
# create_hyper_table :check_ins, time_column_name: 'checked_in_at', id: false do |t|
|
17
|
+
# t.references :user
|
18
|
+
# t.datetime :checked_in_at, null: false, index: true
|
19
|
+
# t.timestamps
|
20
|
+
# end
|
21
|
+
#
|
22
|
+
# # check_ins table already exists
|
23
|
+
# create_hyper_table :check_ins, time_column_name: 'checked_in_at', migrate_data: true
|
24
|
+
#
|
25
|
+
# # Simplest example
|
26
|
+
# create_hyper_table :check_ins
|
27
|
+
#
|
28
|
+
# @param relation [String] Identifier of table to convert to hypertable.
|
29
|
+
# @param options.time_column_name [String] Name of the column containing time values as well as the primary column to partition by.
|
30
|
+
# @param options.partitioning_column [String, nil] Name of an additional column to partition by.
|
31
|
+
# @param options.number_partitions [Integer, nil] Number of hash partitions to use for partitioning_column. Must be > 0. Default is the number of data_nodes.
|
32
|
+
# @param options.chunk_time_interval [String, Integer, nil] Interval in event time that each chunk covers. Must be > 0. Default is 7 days.
|
33
|
+
# @param options.create_default_indexes [Boolean, nil] Boolean whether to create default indexes on time/partitioning columns. Default is TRUE.
|
34
|
+
# @param options.if_not_exists [Boolean, nil] Boolean whether to print warning if table already converted to hypertable or raise exception. Default is FALSE.
|
35
|
+
# @param options.partitioning_func [String, nil] The function to use for calculating a value's partition.
|
36
|
+
# @param options.associated_schema_name [String, nil] Name of the schema for internal hypertable tables. Default is _timescaledb_internal.
|
37
|
+
# @param options.associated_table_prefix [String, nil] Prefix for internal hypertable chunk names. Default is _hyper.
|
38
|
+
# @param options.migrate_data [Boolean, nil] Set to TRUE to migrate any existing data from the relation table to chunks in the new hypertable. A non-empty table generates an error without this option. Large tables may take significant time to migrate. Default is FALSE.
|
39
|
+
# @param options.time_partitioning_func [String, nil] Function to convert incompatible primary time column values to compatible ones. The function must be IMMUTABLE.
|
40
|
+
# @param options.replicator_factor [Integer, nil] The number of data nodes to which the same data is written to. This is done by creating chunk copies on this amount of data nodes. Must be >= 1; If not set, the default value is determined by the timescaledb.hypertable_replication_factor_default GUC.
|
41
|
+
# @param options.data_nodes [Array<String>, nil] The set of data nodes used for the distributed hypertable. If not present, defaults to all data nodes known by the access node (the node on which the distributed hypertable is created).
|
42
|
+
# @param options.distributed [Boolean, nil] Set to TRUE to create distributed hypertable. If not provided, value is determined by the timescaledb.hypertable_distributed_default GUC. When creating a distributed hypertable, consider using create_distributed_hypertable in place of create_hypertable. Default is NULL.
|
43
|
+
def create_hyper_table(relation, time_column_name: "created_at", **options, &block)
|
44
|
+
hyper_table_options = HyperTableOptions.new(**options)
|
45
|
+
create_table(relation, **hyper_table_options.args, &block) unless block.nil?
|
46
|
+
execute "SELECT create_hyper_table(#{quote_table_name(relation)}, #{quote_column_name(time_column_name)}, #{hyper_table_options.to_sql})"
|
47
|
+
end
|
48
|
+
|
49
|
+
# See create_hyper_table for examples. Works exactly the same but the distributed option is forced to TRUE
|
50
|
+
def create_distributed_hyper_table(relation, **options, &block)
|
51
|
+
create_hyper_table(relation, **options.merge({distributed: true}), &block)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @param relation [String] Name of the hypertable or continuous aggregate to create the policy for.
|
55
|
+
# @param drop_after [String, Integer] Chunks fully older than this interval when the policy is run are dropped
|
56
|
+
# @param if_not_exists [Boolean, nil] Set to true to avoid throwing an error if the drop_chunks_policy already exists. A notice is issued instead. Defaults to false.
|
57
|
+
def add_retention_policy(relation, drop_after:, if_not_exists: false)
|
58
|
+
drop_after_string =
|
59
|
+
if drop_after.is_a? String
|
60
|
+
"INTERVAL '#{drop_after}'"
|
61
|
+
else
|
62
|
+
"BIGINT '#{drop_after}'"
|
63
|
+
end
|
64
|
+
|
65
|
+
args = []
|
66
|
+
args << quote_table_name(relation)
|
67
|
+
args << drop_after_string
|
68
|
+
args << "if_not_exists => TRUE" if if_not_exists
|
69
|
+
|
70
|
+
execute "SELECT add_retention_policy(#{args.join(", ")})"
|
71
|
+
end
|
72
|
+
|
73
|
+
class HyperTableOptions
|
74
|
+
def initialize(
|
75
|
+
partitioning_column: nil,
|
76
|
+
number_partitions: nil,
|
77
|
+
chunk_time_interval: "7 days",
|
78
|
+
create_default_indexes: true,
|
79
|
+
if_not_exists: false,
|
80
|
+
partitioning_func: nil,
|
81
|
+
associated_schema_name: "_timescaledb_internal",
|
82
|
+
associated_table_prefix: "_hyper",
|
83
|
+
migrate_data: false,
|
84
|
+
time_partitioning_func: nil,
|
85
|
+
replicator_factor: nil,
|
86
|
+
data_nodes: [],
|
87
|
+
distributed: nil,
|
88
|
+
**other_args
|
89
|
+
)
|
90
|
+
|
91
|
+
@partitioning_column = partitioning_column
|
92
|
+
@number_partitions = number_partitions
|
93
|
+
@chunk_time_interval = chunk_time_interval
|
94
|
+
@create_default_indexes = create_default_indexes
|
95
|
+
@if_not_exists = if_not_exists
|
96
|
+
@partitioning_func = partitioning_func
|
97
|
+
@associated_schema_name = associated_schema_name
|
98
|
+
@associated_table_prefix = associated_table_prefix
|
99
|
+
@migrate_data = migrate_data
|
100
|
+
@time_partitioning_func = time_partitioning_func
|
101
|
+
@replicator_factor = replicator_factor
|
102
|
+
@data_nodes = data_nodes
|
103
|
+
@distributed = distributed
|
104
|
+
@other_args = other_args
|
105
|
+
end
|
106
|
+
|
107
|
+
def args
|
108
|
+
@other_args.merge(
|
109
|
+
{
|
110
|
+
partitioning_column: @partitioning_column,
|
111
|
+
number_partitions: @number_partitions,
|
112
|
+
chunk_time_interval: @chunk_time_interval,
|
113
|
+
create_default_indexes: @create_default_indexes,
|
114
|
+
if_not_exists: @if_not_exists,
|
115
|
+
partitioning_func: @partitioning_func,
|
116
|
+
associated_schema_name: @associated_schema_name,
|
117
|
+
associated_table_prefix: @associated_table_prefix,
|
118
|
+
migrate_data: @migrate_data,
|
119
|
+
time_partitioning_func: @time_partitioning_func,
|
120
|
+
replicator_factor: @replicator_factor,
|
121
|
+
data_nodes: @data_nodes,
|
122
|
+
distributed: @distributed
|
123
|
+
}
|
124
|
+
)
|
125
|
+
end
|
126
|
+
|
127
|
+
def to_sql
|
128
|
+
sql = []
|
129
|
+
sql << "partitioning_column => '#{@partioning_column}'" unless @partitioning_column.nil?
|
130
|
+
sql << "number_partitions => #{@number_partitions}" unless @number_partitions.nil?
|
131
|
+
sql << "if_not_exists => #{@if_not_exists}"
|
132
|
+
sql << "partitioning_func => '#{@partitioning_func}'" unless @partitioning_func.nil?
|
133
|
+
sql << "associated_schema_name => '#{@associated_schema_name}'"
|
134
|
+
sql << "associated_table_prefix => '#{@associated_table_prefix}'"
|
135
|
+
sql << "migrate_data => #{@migrate_data}"
|
136
|
+
sql << "time_partitioning_func => '#{@time_partitioning_func}'" unless @time_partitioning_func.nil?
|
137
|
+
sql << "replicator_factor => #{@replicator_factor}" unless @replicator_factor.nil?
|
138
|
+
sql << "data_nodes => '{ #{@data_nodes.join(", ")} }'" if @data_nodes.any?
|
139
|
+
sql << "disstributed => #{@distributed}" unless @distributed.nil?
|
140
|
+
sql <<
|
141
|
+
if @chunk_time_interval.is_a? String
|
142
|
+
"chunk_time_interval => INTERVAL '#{@chunk_time_interval}'"
|
143
|
+
else
|
144
|
+
"chunk_time_interval => #{@chunk_time_interval}"
|
145
|
+
end
|
146
|
+
|
147
|
+
sql.join(", ")
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
ActiveRecord::Migration.send(:include, ActiveRecord::Timescale::SchemaMigration)
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activerecord-timescaledb-adapter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Evan Duncan
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 6.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 6.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 6.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 6.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pg
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '13.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '13.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: standard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: activerecord-nulldb-adapter
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: The activerecord-timescaledb-adapter provides access to features of the
|
126
|
+
Timescale Postgres extension from ActiveRecord.
|
127
|
+
email:
|
128
|
+
- evan.duncan@greenhouse.io
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".rspec"
|
134
|
+
- ".standard.yml"
|
135
|
+
- Gemfile
|
136
|
+
- Gemfile.lock
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- lib/active_record/connection_adapters/timescaledb/version.rb
|
141
|
+
- lib/active_record/connection_adapters/timescaledb_adapter.rb
|
142
|
+
- lib/active_record/timescale/base.rb
|
143
|
+
- lib/active_record/timescale/schema_migration.rb
|
144
|
+
- lib/activerecord-timescaledb-adapter.rb
|
145
|
+
- sig/activerecord/timescaledb/adapter.rbs
|
146
|
+
homepage: https://github.com/grnhse/activerecord-timescaledb-adapter
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata:
|
150
|
+
homepage_uri: https://github.com/grnhse/activerecord-timescaledb-adapter
|
151
|
+
source_code_uri: https://github.com/grnhse/activerecord-timescaledb-adapter
|
152
|
+
post_install_message:
|
153
|
+
rdoc_options: []
|
154
|
+
require_paths:
|
155
|
+
- lib
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 2.6.0
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
requirements: []
|
167
|
+
rubygems_version: 3.0.3
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: A TimescaleDB adapter
|
171
|
+
test_files: []
|