oracle-enhanced-enhanced 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc ADDED
@@ -0,0 +1,56 @@
1
+ = oracle-enhanced-enhanced
2
+
3
+ While an outstanding offering that enables us to use Oracle as our database (whether we like it or not), the Oracle
4
+ Enhanced ActiveRecord Adapter (link[https://github.com/rsim/oracle-enhanced]) has a few behaviours that I find myself
5
+ overriding in all my Rails projects. Made sense to throw them all into a gem.
6
+
7
+ == How It Works
8
+
9
+ Add this gem to your project and it will override the following defaults:
10
+
11
+ * sequences will be created with the +start_value+ options: <tt>1 NOCACHE ORDER</tt>
12
+ * +cache_columns+ is set to +true+, saving loads in terms of data dictionary lookups (but requiring a restart if you change a table)
13
+ * +TEXT+ fields are stored as <tt>VARCHAR2(4000)</tt> instead of +CLOB+
14
+
15
+ === Converting CLOB Columns to VARCHAR2
16
+
17
+ You can convert existing +CLOB+ columns to <tt>VARCHAR2(4000)</tt> in a migration using:
18
+
19
+ class ConvertTextColumns < ActiveRecord::Migration
20
+ def self.up
21
+ convert_clob_to_varchar2 :table_name, :column_name
22
+ end
23
+
24
+ def self.down
25
+ convert_varchar2_to_clob :table_name, :column_name
26
+ end
27
+ end
28
+
29
+ You can optionally specify the <tt>VARCHAR2</tt> size as a third parameter to <tt>convert_clob_to_varchar2</tt>.
30
+
31
+ === Other Methods
32
+
33
+ You can at any time change the text representation by calling +set_text_storage_representation+. See the rdoc for more details.
34
+
35
+ There are also helper methods <tt>text_is_clob?</tt> and <tt>text_is_varchar2?</tt>, and a new constant <tt>VARCHAR2_MAX_LENGTH</tt>. Note
36
+ that these are added to <tt>ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter</tt>.
37
+ ==
38
+
39
+ == Known Issues
40
+
41
+ None
42
+
43
+ == Contributing
44
+
45
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
46
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
47
+ * Fork the project
48
+ * Start a feature/bugfix branch
49
+ * Commit and push until you are happy with your contribution
50
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
51
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
52
+
53
+ == Copyright
54
+
55
+ Copyright (c) 2011 Steve Lamotte. See LICENSE.txt for further details.
56
+
@@ -1,7 +1,7 @@
1
1
  module Oracle
2
2
  module Enhanced
3
3
  module Enhanced
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oracle-enhanced-enhanced
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve Lamotte
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-16 00:00:00 -05:00
18
+ date: 2011-05-18 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -49,6 +49,7 @@ files:
49
49
  - .gitignore
50
50
  - Gemfile
51
51
  - Gemfile.lock
52
+ - README.rdoc
52
53
  - Rakefile
53
54
  - lib/oracle-enhanced-enhanced.rb
54
55
  - lib/oracle-enhanced-enhanced/version.rb