scenic_oracle_enhanced_adapter 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -1
- data/lib/scenic/adapters/oracle_enhanced.rb +8 -4
- data/scenic_oracle_enhanced_adapter.gemspec +3 -3
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ca6e91010fefc44df470e59229c911e608d6f5f6ea050e4c21c6ac6e4d7198
|
4
|
+
data.tar.gz: 260fbde5b27fad913f07c36287c40dabf71f0406070a15108cabffdfdd8eb642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fff688ccefa1a2ece721a45bfb300e9d52b8c24184460c82fc638327859dc31feb410922da25a844940ad598256de70b3b583e64cf230396a5cbbd62485f57
|
7
|
+
data.tar.gz: 518440fb6bb3851161df8beb6ea4911428f45f72fb4736e16465b0081648371c0db7a17fcc5662d35bd1d7c4475ef287954bedf2882b5b18639d4d48a8a6bded
|
data/CHANGELOG
CHANGED
@@ -30,14 +30,18 @@ module Scenic
|
|
30
30
|
execute "DROP VIEW #{quote_table_name(name)}"
|
31
31
|
end
|
32
32
|
|
33
|
-
def create_materialized_view(name, sql_definition)
|
34
|
-
execute
|
33
|
+
def create_materialized_view(name, sql_definition, no_data: false)
|
34
|
+
execute <<~SQL
|
35
|
+
CREATE MATERIALIZED VIEW #{quote_table_name(name)}
|
36
|
+
#{"BUILD DEFERRED\n" if no_data}AS
|
37
|
+
#{sql_definition}
|
38
|
+
SQL
|
35
39
|
end
|
36
40
|
|
37
|
-
def update_materialized_view(name, sql_definition)
|
41
|
+
def update_materialized_view(name, sql_definition, no_data: false)
|
38
42
|
# IndexReapplication.new(connection: connection).on(name) do
|
39
43
|
drop_materialized_view(name)
|
40
|
-
create_materialized_view(name, sql_definition)
|
44
|
+
create_materialized_view(name, sql_definition, no_data: no_data)
|
41
45
|
# end
|
42
46
|
end
|
43
47
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'scenic_oracle_enhanced_adapter'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.4'
|
8
8
|
spec.authors = ['Stephen Margheim']
|
9
9
|
spec.email = ['margheim@mail.med.upenn.edu']
|
10
10
|
|
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
|
-
spec.add_development_dependency 'bundler', '
|
32
|
-
spec.add_development_dependency 'rake', '~>
|
31
|
+
spec.add_development_dependency 'bundler', '>= 2.2.10'
|
32
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
33
33
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
34
34
|
|
35
35
|
spec.add_dependency 'activerecord', '>= 4.0.0'
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scenic_oracle_enhanced_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Margheim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.10
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.0.3
|
124
|
+
rubygems_version: 3.0.3
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: OracleEnhanced adapter for Scenic gem.
|