activerecord-oracle_enhanced-adapter 1.3.2 → 1.4.0
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.
- data/Gemfile +0 -2
- data/History.txt +19 -0
- data/README.md +378 -0
- data/RUNNING_TESTS.md +45 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/activerecord-oracle_enhanced-adapter.gemspec +6 -9
- data/lib/active_record/connection_adapters/oracle_enhanced.rake +34 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb +209 -57
- data/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb +22 -1
- data/lib/active_record/connection_adapters/oracle_enhanced_column.rb +17 -3
- data/lib/active_record/connection_adapters/oracle_enhanced_context_index.rb +19 -3
- data/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb +75 -17
- data/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb +41 -2
- data/lib/active_record/connection_adapters/oracle_enhanced_procedures.rb +3 -3
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb +40 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb +10 -3
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements.rb +49 -10
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb +1 -1
- data/lib/active_record/connection_adapters/oracle_enhanced_structure_dump.rb +54 -54
- data/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb +33 -5
- data/spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb +66 -5
- data/spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb +162 -13
- data/spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb +1 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb +1 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb +43 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb +150 -1
- data/spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb +5 -4
- data/spec/spec_helper.rb +3 -1
- metadata +38 -52
- data/README.rdoc +0 -89
- data/RUNNING_TESTS.rdoc +0 -28
data/README.rdoc
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
= activerecord-oracle_enhanced-adapter
|
2
|
-
|
3
|
-
Oracle enhanced adapter for ActiveRecord
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases
|
8
|
-
from Rails which are extracted from current real projects' monkey patches of original Oracle adapter.
|
9
|
-
|
10
|
-
See http://wiki.github.com/rsim/oracle-enhanced for usage information.
|
11
|
-
|
12
|
-
For questions and feature discussion please use http://groups.google.com/group/oracle-enhanced
|
13
|
-
|
14
|
-
Blog posts about oracle_enhanced can be found at http://blog.rayapps.com/category/oracle_enhanced
|
15
|
-
|
16
|
-
== REQUIREMENTS:
|
17
|
-
|
18
|
-
* Latest version works (has been tested) with ActiveRecord version 2.3 and 3.0 (these are the same as Rails versions)
|
19
|
-
* Can be used on the following Ruby platforms:
|
20
|
-
* MRI - requires ruby-oci8 2.0 gem to connect to Oracle (2.0.4 or later recommended)
|
21
|
-
* Ruby/YARV 1.9.2 - requires ruby-oci8 2.0 library to connect to Oracle
|
22
|
-
* JRuby 1.5 - uses JDBC driver ojdbc14.jar to connect to Oracle (should be in JRUBY_HOME/lib or in Java class path)
|
23
|
-
* Requires ruby-plsql gem to support custom create, update and delete methods (but can be used without ruby-plsql if this functionality is not needed)
|
24
|
-
|
25
|
-
== INSTALL:
|
26
|
-
|
27
|
-
* [sudo] gem install activerecord-oracle_enhanced-adapter
|
28
|
-
|
29
|
-
In addition install either ruby-oci8 (for MRI/YARV) or copy Oracle JDBC driver to $JRUBY_HOME/lib (for JRuby).
|
30
|
-
|
31
|
-
== RUNNING TESTS:
|
32
|
-
|
33
|
-
See RUNNING_TESTS.rdoc
|
34
|
-
|
35
|
-
== LINKS
|
36
|
-
|
37
|
-
* Source code: http://github.com/rsim/oracle-enhanced
|
38
|
-
* Bug reports / Feature requests: http://github.com/rsim/oracle-enhanced/issues
|
39
|
-
* Discuss at oracle_enhanced adapter group: http://groups.google.com/group/oracle-enhanced
|
40
|
-
|
41
|
-
== CONTRIBUTORS:
|
42
|
-
|
43
|
-
* Raimonds Simanovskis
|
44
|
-
* Jorge Dias
|
45
|
-
* James Wylder
|
46
|
-
* Rob Christie
|
47
|
-
* Nate Wieger
|
48
|
-
* Edgars Beigarts
|
49
|
-
* Lachlan Laycock
|
50
|
-
* toddwf
|
51
|
-
* Anton Jenkins
|
52
|
-
* Dave Smylie
|
53
|
-
* Alex Rothenberg
|
54
|
-
* Billy Reisinger
|
55
|
-
* David Blain
|
56
|
-
* Joe Khoobyar
|
57
|
-
* Edvard Majakari
|
58
|
-
* Beau Fabry
|
59
|
-
* Simon Chiang
|
60
|
-
* Peter Nyberg
|
61
|
-
* Dwayne Litzenberger
|
62
|
-
* Aaron Patterson
|
63
|
-
* Darcy Schultz
|
64
|
-
* Alexi Rahman
|
65
|
-
|
66
|
-
== LICENSE:
|
67
|
-
|
68
|
-
(The MIT License)
|
69
|
-
|
70
|
-
Copyright (c) 2008-2011 Graham Jenkins, Michael Schoen, Raimonds Simanovskis
|
71
|
-
|
72
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
73
|
-
a copy of this software and associated documentation files (the
|
74
|
-
'Software'), to deal in the Software without restriction, including
|
75
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
76
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
77
|
-
permit persons to whom the Software is furnished to do so, subject to
|
78
|
-
the following conditions:
|
79
|
-
|
80
|
-
The above copyright notice and this permission notice shall be
|
81
|
-
included in all copies or substantial portions of the Software.
|
82
|
-
|
83
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
84
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
85
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
86
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
87
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
88
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
89
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/RUNNING_TESTS.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== Creating the test database
|
2
|
-
|
3
|
-
You need Oracle database (version 10.2 or later) with SYS and SYSTEM use access.
|
4
|
-
|
5
|
-
If you are on a Mac OS X 10.6 then use these instructions http://blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard to install local Oracle DB 10.2.0.4. Other option is to use Linux VM and install Oracle DB on it.
|
6
|
-
|
7
|
-
If you are on Linux (or will use Linux virtual machine) and need Oracle DB just for running tests then Oracle DB XE edition is enough. See http://www.oracle.com/technetwork/database/express-edition/downloads/index.html for download links and instructions.
|
8
|
-
|
9
|
-
If you are getting ORA-12520 errors when running tests then it means that Oracle cannot create enough processes to handle many connections (as during tests many connections are created and destroyed). In this case you need to log in as SYSTEM user and execute e.g.
|
10
|
-
alter system set processes=200 scope=spfile;
|
11
|
-
to increase process limit and then restart the database (this will be necessary if Oracle XE will be used as default processes limit is 40).
|
12
|
-
|
13
|
-
== Ruby versions
|
14
|
-
|
15
|
-
It is recommended to use RVM (http://rvm.beginrescueend.com) to run tests with different Ruby implementations. oracle_enhanced is mainly tested with MRI 1.8.7 (all Rails versions) and 1.9.2 (Rails 3) and JRuby 1.5.
|
16
|
-
|
17
|
-
== Running tests
|
18
|
-
|
19
|
-
* Create Oracle database schema for test purposes. Review spec/spec_helper.rb to see default schema/user names and database names (use environment variables to override defaults)
|
20
|
-
* If you use RVM then switch to corresponding Ruby (1.8.7, 1.9.2 or JRuby) and it is recommended to create isolated gemset for test purposes (e.g. rvm create gemset oracle_enhanced)
|
21
|
-
* Install bundler with
|
22
|
-
gem install bundler
|
23
|
-
* Set RAILS_GEM_VERSION to Rails version that you would like to use in oracle_enhanced tests, e.g.
|
24
|
-
export RAILS_GEM_VERSION=3.0.3
|
25
|
-
* Install necessary gems with
|
26
|
-
bundle install
|
27
|
-
* Run tests with
|
28
|
-
rake spec
|