scenic-oracle_adapter 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/scenic/adapters/oracle.rb +11 -2
- data/lib/scenic/oracle_adapter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc29d851c72aab3e3ff74f1a51fe0afc03f6acb9d1e4f9619027c231ad1f2729
|
4
|
+
data.tar.gz: 303764a51df609bcec295a8b495a0beb0dd3575d678060a26a5d8ed5a7b61232
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5584138f239fa8d5df30bcefa0fa6ccf25ee870c4759bf578aed41ea381d429a8ae5bf379a1103fedbe68de645e17d055f4797cb1f596e38f25e6d437edb2ae5
|
7
|
+
data.tar.gz: c255d823fec8652adedb46ccd1c3638670cfdde2431ab392391fc52f0eb0b570ede4c416a77767b7ec68b0de2db0ad4a1eab301defd31f3a5a65afcb7899d3d1
|
data/README.md
CHANGED
@@ -28,14 +28,14 @@ end
|
|
28
28
|
|
29
29
|
While you can use any Oracle instance for development, it's easiest to use Docker and docker compose.
|
30
30
|
|
31
|
-
Note that the Oracle container takes up to two minutes to start and become available. If you're doing active development you probably want to start the containers in detached mode: `docker
|
31
|
+
Note that the Oracle container takes up to two minutes to start and become available. If you're doing active development you probably want to start the containers in detached mode: `docker compose up -d`. This starts everything in the background and allows you to use `docker compose exec` to run commands on the already running containers:
|
32
32
|
|
33
33
|
- Run specs: `docker compose exec gem bin/test`
|
34
34
|
- Open a console: `docker compose exec gem bin/console`
|
35
35
|
|
36
36
|
## Tests
|
37
37
|
|
38
|
-
If you just want to run the test suite you can use `docker
|
38
|
+
If you just want to run the test suite you can use `docker compose run --rm gem bin/test`. Again, because the Oracle container takes so long to start up, the first execution will take a while. The test suite will wait for the database container to become available. Subsequent executions will be faster.
|
39
39
|
|
40
40
|
By default, the test suite will attempt to connect to a local docker Oracle instance (see `spec/spec_helper.rb` for connection details).
|
41
41
|
You can override the database URL by supplying a value to the `DATABASE_URL` environment variable.
|
@@ -74,8 +74,17 @@ module Scenic
|
|
74
74
|
select_all(<<~EOSQL)
|
75
75
|
select lower(uo.object_name) as name, lower(ud.referenced_name) as dependency
|
76
76
|
from user_objects uo
|
77
|
-
left join user_dependencies ud on
|
78
|
-
|
77
|
+
left join user_dependencies ud on
|
78
|
+
uo.object_name = ud.name
|
79
|
+
and (
|
80
|
+
(ud.referenced_type in ('VIEW', 'MATERIALIZED VIEW'))
|
81
|
+
OR
|
82
|
+
(
|
83
|
+
ud.referenced_type IN ('TABLE')
|
84
|
+
AND
|
85
|
+
ud.referenced_name in (select mview_name from user_mviews)
|
86
|
+
)
|
87
|
+
)
|
79
88
|
and ud.referenced_name in (select object_name from user_objects)
|
80
89
|
and ud.referenced_owner = user
|
81
90
|
where uo.object_type in ('VIEW', 'MATERIALIZED VIEW')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scenic-oracle_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Dinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scenic
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
|
-
rubygems_version: 3.5.
|
161
|
+
rubygems_version: 3.5.4
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Oracle adapter for thoughtbot/scenic
|