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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bcdb570493bef7acba3abf039b26ba4cabed959feb2f4a3a136511dd9a406ea
4
- data.tar.gz: 2da1484c10b74d90bddc038ef5f119b564cc59713c51a08617dea94e27a3f96d
3
+ metadata.gz: 12ca6e91010fefc44df470e59229c911e608d6f5f6ea050e4c21c6ac6e4d7198
4
+ data.tar.gz: 260fbde5b27fad913f07c36287c40dabf71f0406070a15108cabffdfdd8eb642
5
5
  SHA512:
6
- metadata.gz: c9ff80955d26f8c73bfe6990283a8eb44835d358185cffd1831d9460bc0b511083a8079af16f57387764b4113a661b5d98d26b4b64b93813a6a03e0d8e3d5b41
7
- data.tar.gz: 405cb5cbcfba01e3df57d37d609d86ae9742b2d02e479887dd396ccac19f2ee8b81493927b8b4a11312bbe3671a714e814a0aab5fd1d8052201adae0adc64ea3
6
+ metadata.gz: d0fff688ccefa1a2ece721a45bfb300e9d52b8c24184460c82fc638327859dc31feb410922da25a844940ad598256de70b3b583e64cf230396a5cbbd62485f57
7
+ data.tar.gz: 518440fb6bb3851161df8beb6ea4911428f45f72fb4736e16465b0081648371c0db7a17fcc5662d35bd1d7c4475ef287954bedf2882b5b18639d4d48a8a6bded
data/CHANGELOG CHANGED
@@ -1,2 +1,4 @@
1
1
  v0.0.2
2
- - Make `create_view` and `create_materialized_view` reversible
2
+ - Make `create_view` and `create_materialized_view` reversible
3
+ v0.0.3
4
+ - Allow `create materialized view` to create a view without running it
@@ -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 "CREATE MATERIALIZED VIEW #{quote_table_name(name)} AS #{sql_definition}"
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.2'
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', '~> 1.15'
32
- spec.add_development_dependency 'rake', '~> 10.0'
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.2
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: 2023-04-05 00:00:00.000000000 Z
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: '1.15'
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: '1.15'
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: '10.0'
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: '10.0'
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.1
124
+ rubygems_version: 3.0.3
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: OracleEnhanced adapter for Scenic gem.