sequel-inline_schema 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.md +7 -0
- data/lib/sequel/inline_schema.rb +1 -1
- data/lib/sequel/plugins/inline_schema.rb +1 -1
- data/spec/sequel/plugins/inline_schema_spec.rb +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91f36b1a394db9b347d6cf2b6a265cc48d0f12892c6ac80ae9f4cea728a86fcd
|
|
4
|
+
data.tar.gz: be5fe9f645b1db9bc1b5d6837f1d5ad6fc40b212738b20289f7ef3f40f230f81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f11a1f9e6f3dd6b06a0376396975891d6f475eb67a5e5b6098aa3a7a21626ac017a942ca8a76db3add001c6271575e2777630b4dd374076944073710f9dbe4a
|
|
7
|
+
data.tar.gz: a3403f450e1da30e693473a62e4b264a5b93a1cb10307561273fe1a3b508e4881e9e04ec0c15250ec05d10ecca7024f462a8d777a011c9f5b3dabf8aa929d6b5
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.md
CHANGED
data/lib/sequel/inline_schema.rb
CHANGED
|
@@ -211,7 +211,7 @@ module Sequel::Plugins::InlineSchema
|
|
|
211
211
|
options = self.view_options.merge( options )
|
|
212
212
|
|
|
213
213
|
self.db.log_info "Creating view %s(%p): %s" % [ self.table_name, options, dataset.sql ]
|
|
214
|
-
self.db.
|
|
214
|
+
self.db.create_view( self.table_name, dataset, options )
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
|
|
@@ -198,7 +198,7 @@ describe Sequel::Plugins::InlineSchema do
|
|
|
198
198
|
view_class.create_view
|
|
199
199
|
|
|
200
200
|
expect( db.sqls ).to include(
|
|
201
|
-
%{CREATE
|
|
201
|
+
%{CREATE VIEW "#{view}" AS SELECT "age", count(*) AS "count" FROM "#{table}" GROUP BY "age"}
|
|
202
202
|
)
|
|
203
203
|
end
|
|
204
204
|
|
|
@@ -215,7 +215,7 @@ describe Sequel::Plugins::InlineSchema do
|
|
|
215
215
|
materialized_view_class.create_view
|
|
216
216
|
|
|
217
217
|
expect( db.sqls ).to include(
|
|
218
|
-
%{CREATE
|
|
218
|
+
%{CREATE MATERIALIZED VIEW "#{view}" AS SELECT "age", count(*) AS "count" } +
|
|
219
219
|
%{FROM "#{table}" GROUP BY "age"}
|
|
220
220
|
)
|
|
221
221
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel-inline_schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Granger
|
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
|
34
34
|
jBZSA+N+xUTgUWpXjjwsLZjzJkhWATJWq+krNXcqpwXo6HsjmdUxoFMt63RBb+sI
|
|
35
35
|
XrxOxp8o0uOkU7FdLSGsyqJ2LzsR4obN
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2020-02-
|
|
37
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
|
38
38
|
dependencies:
|
|
39
39
|
- !ruby/object:Gem::Dependency
|
|
40
40
|
name: sequel
|
metadata.gz.sig
CHANGED
|
Binary file
|