activerecord-jdbc-adapter 1.3.13 → 1.3.14
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +212 -33
- data/Appraisals +10 -12
- data/History.md +17 -0
- data/lib/arel/visitors/db2.rb +24 -1
- data/lib/arel/visitors/derby.rb +24 -0
- data/lib/arjdbc.rb +6 -0
- data/lib/arjdbc/db2/adapter.rb +61 -50
- data/lib/arjdbc/derby/adapter.rb +1 -1
- data/lib/arjdbc/jdbc/adapter_java.jar +0 -0
- data/lib/arjdbc/jdbc/type_cast.rb +3 -2
- data/lib/arjdbc/mysql/adapter.rb +75 -4
- data/lib/arjdbc/mysql/bulk_change_table.rb +48 -8
- data/lib/arjdbc/oracle/adapter.rb +1 -0
- data/lib/arjdbc/oracle/column.rb +1 -1
- data/lib/arjdbc/postgresql/adapter.rb +3 -0
- data/lib/arjdbc/version.rb +1 -1
- data/rakelib/02-test.rake +13 -23
- data/src/java/arjdbc/jdbc/RubyJdbcConnection.java +38 -19
- metadata +242 -240
- checksums.yaml +0 -7
data/lib/arjdbc/version.rb
CHANGED
data/rakelib/02-test.rake
CHANGED
@@ -17,27 +17,6 @@ task 'test_postgresql_with_hint' do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def set_test_task_compat_version(task)
|
21
|
-
task.ruby_opts << '-v' if RUBY_VERSION =~ /1\.8/
|
22
|
-
if defined?(JRUBY_VERSION)
|
23
|
-
task.ruby_opts << "--#{RUBY_VERSION[/^(\d+\.\d+)/, 1]}"
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def set_task_description(task, desc)
|
28
|
-
unless task.is_a?(Rake::Task)
|
29
|
-
task = task.name if task.is_a?(Rake::TestTask)
|
30
|
-
task = Rake::Task[task]
|
31
|
-
end
|
32
|
-
# reset the description set-up by TestTask :
|
33
|
-
if task.instance_variable_defined? :@full_comment
|
34
|
-
task.instance_variable_set(:@full_comment, nil)
|
35
|
-
else
|
36
|
-
task.instance_variable_get(:@comments).clear
|
37
|
-
end
|
38
|
-
task.add_description(desc)
|
39
|
-
end
|
40
|
-
|
41
20
|
task 'test_appraisal_hint' do
|
42
21
|
next if File.exists?('.disable-appraisal-hint')
|
43
22
|
unless (ENV['BUNDLE_GEMFILE'] || '') =~ /gemfiles\/.*?\.gemfile/
|
@@ -72,11 +51,22 @@ def test_task_for(adapter, options = {})
|
|
72
51
|
test_task.libs.push *FileList["activerecord-jdbc#{adapter}*/lib"]
|
73
52
|
end
|
74
53
|
test_task.libs << 'test'
|
75
|
-
|
54
|
+
test_task.ruby_opts << '-v' if RUBY_VERSION.index('1.8') == 0
|
55
|
+
# set current Ruby compatibility version on JRuby <= 1.7 :
|
56
|
+
if defined?(JRUBY_VERSION) && JRUBY_VERSION.index('1.7') == 0
|
57
|
+
test_task.ruby_opts << "--#{RUBY_VERSION[/^(\d+\.\d+)/, 1]}"
|
58
|
+
end
|
76
59
|
test_task.verbose = true if $VERBOSE
|
77
60
|
yield(test_task) if block_given?
|
78
61
|
end
|
79
|
-
|
62
|
+
task = Rake::Task[name]
|
63
|
+
# reset the description set-up by Rake::TestTask :
|
64
|
+
if task.instance_variable_defined? :@full_comment
|
65
|
+
task.instance_variable_set(:@full_comment, nil)
|
66
|
+
else
|
67
|
+
task.instance_variable_get(:@comments).clear
|
68
|
+
end
|
69
|
+
task.add_description(desc)
|
80
70
|
test_task
|
81
71
|
end
|
82
72
|
|
@@ -53,6 +53,7 @@ import java.sql.Timestamp;
|
|
53
53
|
import java.sql.Types;
|
54
54
|
import java.util.ArrayList;
|
55
55
|
import java.util.Calendar;
|
56
|
+
import java.util.Collection;
|
56
57
|
import java.util.LinkedHashMap;
|
57
58
|
import java.util.List;
|
58
59
|
import java.util.Map;
|
@@ -1104,9 +1105,9 @@ public class RubyJdbcConnection extends RubyObject {
|
|
1104
1105
|
@JRubyMethod(name = {"columns", "columns_internal"}, required = 1, optional = 2)
|
1105
1106
|
public IRubyObject columns_internal(final ThreadContext context, final IRubyObject[] args)
|
1106
1107
|
throws SQLException {
|
1107
|
-
return withConnection(context, new Callable<
|
1108
|
-
public
|
1109
|
-
ResultSet columns = null
|
1108
|
+
return withConnection(context, new Callable<RubyArray>() {
|
1109
|
+
public RubyArray call(final Connection connection) throws SQLException {
|
1110
|
+
ResultSet columns = null;
|
1110
1111
|
try {
|
1111
1112
|
final String tableName = args[0].toString();
|
1112
1113
|
// optionals (NOTE: catalog argumnet was never used before 1.3.0) :
|
@@ -1127,12 +1128,10 @@ public class RubyJdbcConnection extends RubyObject {
|
|
1127
1128
|
|
1128
1129
|
final DatabaseMetaData metaData = connection.getMetaData();
|
1129
1130
|
columns = metaData.getColumns(components.catalog, components.schema, components.name, null);
|
1130
|
-
|
1131
|
-
return unmarshalColumns(context, metaData, columns, primaryKeys);
|
1131
|
+
return unmarshalColumns(context, metaData, components, columns);
|
1132
1132
|
}
|
1133
1133
|
finally {
|
1134
1134
|
close(columns);
|
1135
|
-
close(primaryKeys);
|
1136
1135
|
}
|
1137
1136
|
}
|
1138
1137
|
});
|
@@ -1484,8 +1483,8 @@ public class RubyJdbcConnection extends RubyObject {
|
|
1484
1483
|
return callMethod(context, "adapter");
|
1485
1484
|
}
|
1486
1485
|
|
1487
|
-
protected final
|
1488
|
-
return getAdapter(context).callMethod(context, "jdbc_column_class");
|
1486
|
+
protected final RubyClass getJdbcColumnClass(final ThreadContext context) {
|
1487
|
+
return (RubyClass) getAdapter(context).callMethod(context, "jdbc_column_class");
|
1489
1488
|
}
|
1490
1489
|
|
1491
1490
|
protected JdbcConnectionFactory getConnectionFactory() throws RaiseException {
|
@@ -1951,7 +1950,7 @@ public class RubyJdbcConnection extends RubyObject {
|
|
1951
1950
|
}
|
1952
1951
|
return array;
|
1953
1952
|
}
|
1954
|
-
finally { value.free(); }
|
1953
|
+
finally { if ( value != null ) value.free(); }
|
1955
1954
|
}
|
1956
1955
|
|
1957
1956
|
protected IRubyObject xmlToRuby(final ThreadContext context,
|
@@ -1959,9 +1958,11 @@ public class RubyJdbcConnection extends RubyObject {
|
|
1959
1958
|
throws SQLException {
|
1960
1959
|
final SQLXML xml = resultSet.getSQLXML(column);
|
1961
1960
|
try {
|
1961
|
+
if ( xml == null || resultSet.wasNull() ) return runtime.getNil();
|
1962
|
+
|
1962
1963
|
return RubyString.newUnicodeString(runtime, xml.getString());
|
1963
1964
|
}
|
1964
|
-
finally { xml.free(); }
|
1965
|
+
finally { if ( xml != null ) xml.free(); }
|
1965
1966
|
}
|
1966
1967
|
|
1967
1968
|
protected void setStatementParameters(final ThreadContext context,
|
@@ -2922,23 +2923,24 @@ public class RubyJdbcConnection extends RubyObject {
|
|
2922
2923
|
return defaultValue == null ? runtime.getNil() : RubyString.newUnicodeString(runtime, defaultValue);
|
2923
2924
|
}
|
2924
2925
|
|
2925
|
-
private
|
2926
|
-
final DatabaseMetaData metaData, final
|
2926
|
+
private RubyArray unmarshalColumns(final ThreadContext context,
|
2927
|
+
final DatabaseMetaData metaData, final TableName components, final ResultSet results)
|
2927
2928
|
throws SQLException {
|
2928
2929
|
|
2929
2930
|
final Ruby runtime = context.getRuntime();
|
2930
|
-
final
|
2931
|
+
final RubyClass JdbcColumn = getJdbcColumnClass(context);
|
2931
2932
|
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2933
|
+
// NOTE: primary/primary= methods were removed from Column in AR 4.2
|
2934
|
+
final boolean setPrimary = JdbcColumn.isMethodBound("primary=", false);
|
2935
|
+
|
2936
|
+
final Collection<String> primaryKeyNames =
|
2937
|
+
setPrimary ? getPrimaryKeyNames(metaData, components) : null;
|
2936
2938
|
|
2937
2939
|
final RubyArray columns = runtime.newArray();
|
2938
2940
|
final IRubyObject config = getConfig(context);
|
2939
2941
|
while ( results.next() ) {
|
2940
2942
|
final String colName = results.getString(COLUMN_NAME);
|
2941
|
-
IRubyObject column =
|
2943
|
+
IRubyObject column = JdbcColumn.callMethod(context, "new",
|
2942
2944
|
new IRubyObject[] {
|
2943
2945
|
config,
|
2944
2946
|
RubyString.newUnicodeString( runtime, caseConvertIdentifierForRails(metaData, colName) ),
|
@@ -2948,11 +2950,28 @@ public class RubyJdbcConnection extends RubyObject {
|
|
2948
2950
|
});
|
2949
2951
|
columns.append(column);
|
2950
2952
|
|
2951
|
-
if ( primaryKeyNames.contains(colName) ) {
|
2953
|
+
if ( primaryKeyNames != null && primaryKeyNames.contains(colName) ) {
|
2952
2954
|
column.callMethod(context, "primary=", runtime.getTrue());
|
2953
2955
|
}
|
2954
2956
|
}
|
2955
2957
|
return columns;
|
2958
|
+
|
2959
|
+
}
|
2960
|
+
|
2961
|
+
private static Collection<String> getPrimaryKeyNames(final DatabaseMetaData metaData,
|
2962
|
+
final TableName components) throws SQLException {
|
2963
|
+
ResultSet primaryKeys = null;
|
2964
|
+
try {
|
2965
|
+
primaryKeys = metaData.getPrimaryKeys(components.catalog, components.schema, components.name);
|
2966
|
+
final List<String> primaryKeyNames = new ArrayList<String>(4);
|
2967
|
+
while ( primaryKeys.next() ) {
|
2968
|
+
primaryKeyNames.add( primaryKeys.getString(COLUMN_NAME) );
|
2969
|
+
}
|
2970
|
+
return primaryKeyNames;
|
2971
|
+
}
|
2972
|
+
finally {
|
2973
|
+
close(primaryKeys);
|
2974
|
+
}
|
2956
2975
|
}
|
2957
2976
|
|
2958
2977
|
protected IRubyObject mapGeneratedKeys(
|
metadata
CHANGED
@@ -1,252 +1,254 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbc-adapter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.3.14
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
|
8
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
for popular databases such as Oracle, SQLServer, DB2, FireBird and even Java (embed)
|
31
|
-
databases: Derby, HSQLDB and H2. It allows to connect to virtually any JDBC-compliant
|
32
|
-
database with your JRuby on Rails application.'
|
33
|
-
email:
|
34
|
-
- nick@nicksieger.com
|
35
|
-
- ola.bini@gmail.com
|
36
|
-
- self@kares.org
|
12
|
+
|
13
|
+
date: 2015-01-28 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activerecord
|
17
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "2.2"
|
23
|
+
requirement: *id001
|
24
|
+
prerelease: false
|
25
|
+
type: :runtime
|
26
|
+
description: "AR-JDBC is a database adapter for Rails' ActiveRecord component designed to be used with JRuby built upon Java's JDBC API for database access. Provides (ActiveRecord) built-in adapters: MySQL, PostgreSQL and SQLite3 as well as adapters for popular databases such as Oracle, SQLServer, DB2, FireBird and even Java (embed) databases: Derby, HSQLDB and H2. It allows to connect to virtually any JDBC-compliant database with your JRuby on Rails application."
|
27
|
+
email:
|
28
|
+
- nick@nicksieger.com
|
29
|
+
- ola.bini@gmail.com
|
30
|
+
- self@kares.org
|
37
31
|
executables: []
|
32
|
+
|
38
33
|
extensions: []
|
34
|
+
|
39
35
|
extra_rdoc_files: []
|
40
|
-
|
41
|
-
|
42
|
-
- .
|
43
|
-
- .
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
- Rakefile
|
53
|
-
-
|
54
|
-
-
|
55
|
-
- lib/active_record/connection_adapters/
|
56
|
-
- lib/active_record/connection_adapters/
|
57
|
-
- lib/active_record/connection_adapters/
|
58
|
-
- lib/active_record/connection_adapters/
|
59
|
-
- lib/active_record/connection_adapters/
|
60
|
-
- lib/active_record/connection_adapters/
|
61
|
-
- lib/active_record/connection_adapters/
|
62
|
-
- lib/active_record/connection_adapters/
|
63
|
-
- lib/active_record/connection_adapters/
|
64
|
-
- lib/active_record/connection_adapters/
|
65
|
-
- lib/active_record/connection_adapters/
|
66
|
-
- lib/active_record/connection_adapters/
|
67
|
-
- lib/active_record/connection_adapters/
|
68
|
-
- lib/active_record/connection_adapters/
|
69
|
-
- lib/active_record/connection_adapters/
|
70
|
-
- lib/active_record/connection_adapters/
|
71
|
-
- lib/
|
72
|
-
- lib/
|
73
|
-
- lib/arel/visitors/
|
74
|
-
- lib/arel/visitors/
|
75
|
-
- lib/arel/visitors/
|
76
|
-
- lib/arel/visitors/
|
77
|
-
- lib/arel/visitors/
|
78
|
-
- lib/arel/visitors/
|
79
|
-
- lib/
|
80
|
-
- lib/arjdbc
|
81
|
-
- lib/arjdbc/db2
|
82
|
-
- lib/arjdbc/db2/
|
83
|
-
- lib/arjdbc/db2/
|
84
|
-
- lib/arjdbc/db2/
|
85
|
-
- lib/arjdbc/
|
86
|
-
- lib/arjdbc/derby
|
87
|
-
- lib/arjdbc/derby/
|
88
|
-
- lib/arjdbc/derby/
|
89
|
-
- lib/arjdbc/derby/
|
90
|
-
- lib/arjdbc/
|
91
|
-
- lib/arjdbc/
|
92
|
-
- lib/arjdbc/firebird
|
93
|
-
- lib/arjdbc/firebird/
|
94
|
-
- lib/arjdbc/
|
95
|
-
- lib/arjdbc/h2
|
96
|
-
- lib/arjdbc/h2/
|
97
|
-
- lib/arjdbc/
|
98
|
-
- lib/arjdbc/hsqldb
|
99
|
-
- lib/arjdbc/hsqldb/
|
100
|
-
- lib/arjdbc/hsqldb/
|
101
|
-
- lib/arjdbc/hsqldb/
|
102
|
-
- lib/arjdbc/
|
103
|
-
- lib/arjdbc/informix
|
104
|
-
- lib/arjdbc/informix/
|
105
|
-
- lib/arjdbc/
|
106
|
-
- lib/arjdbc/jdbc
|
107
|
-
- lib/arjdbc/jdbc/
|
108
|
-
- lib/arjdbc/jdbc/
|
109
|
-
- lib/arjdbc/jdbc/
|
110
|
-
- lib/arjdbc/jdbc/
|
111
|
-
- lib/arjdbc/jdbc/
|
112
|
-
- lib/arjdbc/jdbc/
|
113
|
-
- lib/arjdbc/jdbc/
|
114
|
-
- lib/arjdbc/jdbc/
|
115
|
-
- lib/arjdbc/jdbc/
|
116
|
-
- lib/arjdbc/jdbc/
|
117
|
-
- lib/arjdbc/jdbc/
|
118
|
-
- lib/arjdbc/jdbc/
|
119
|
-
- lib/arjdbc/jdbc/
|
120
|
-
- lib/arjdbc/jdbc/
|
121
|
-
- lib/arjdbc/jdbc/
|
122
|
-
- lib/arjdbc/jdbc/
|
123
|
-
- lib/arjdbc/jdbc/
|
124
|
-
- lib/arjdbc/jdbc/
|
125
|
-
- lib/arjdbc/
|
126
|
-
- lib/arjdbc/mimer
|
127
|
-
- lib/arjdbc/
|
128
|
-
- lib/arjdbc/mssql
|
129
|
-
- lib/arjdbc/mssql/
|
130
|
-
- lib/arjdbc/mssql/
|
131
|
-
- lib/arjdbc/mssql/
|
132
|
-
- lib/arjdbc/mssql/
|
133
|
-
- lib/arjdbc/mssql/
|
134
|
-
- lib/arjdbc/mssql/
|
135
|
-
- lib/arjdbc/
|
136
|
-
- lib/arjdbc/mysql
|
137
|
-
- lib/arjdbc/mysql/
|
138
|
-
- lib/arjdbc/mysql/
|
139
|
-
- lib/arjdbc/mysql/
|
140
|
-
- lib/arjdbc/mysql/
|
141
|
-
- lib/arjdbc/mysql/
|
142
|
-
- lib/arjdbc/
|
143
|
-
- lib/arjdbc/oracle
|
144
|
-
- lib/arjdbc/oracle/
|
145
|
-
- lib/arjdbc/oracle/
|
146
|
-
- lib/arjdbc/
|
147
|
-
- lib/arjdbc/postgresql
|
148
|
-
- lib/arjdbc/postgresql/
|
149
|
-
- lib/arjdbc/postgresql/base/
|
150
|
-
- lib/arjdbc/postgresql/
|
151
|
-
- lib/arjdbc/postgresql/
|
152
|
-
- lib/arjdbc/postgresql/
|
153
|
-
- lib/arjdbc/postgresql/
|
154
|
-
- lib/arjdbc/postgresql/
|
155
|
-
- lib/arjdbc/
|
156
|
-
- lib/arjdbc/
|
157
|
-
- lib/arjdbc/sqlite3
|
158
|
-
- lib/arjdbc/sqlite3/
|
159
|
-
- lib/arjdbc/sqlite3/
|
160
|
-
- lib/arjdbc/
|
161
|
-
- lib/arjdbc/sybase
|
162
|
-
- lib/arjdbc/
|
163
|
-
- lib/arjdbc/tasks
|
164
|
-
- lib/arjdbc/tasks/
|
165
|
-
- lib/arjdbc/tasks/
|
166
|
-
- lib/arjdbc/tasks/
|
167
|
-
- lib/arjdbc/tasks/
|
168
|
-
- lib/arjdbc/tasks/
|
169
|
-
- lib/arjdbc/tasks/
|
170
|
-
- lib/arjdbc/tasks/
|
171
|
-
- lib/arjdbc/tasks/
|
172
|
-
- lib/arjdbc/tasks/
|
173
|
-
- lib/arjdbc/tasks/
|
174
|
-
- lib/arjdbc/tasks/
|
175
|
-
- lib/arjdbc/
|
176
|
-
- lib/arjdbc/util/
|
177
|
-
- lib/arjdbc/util/
|
178
|
-
- lib/arjdbc/
|
179
|
-
- lib/
|
180
|
-
- lib/generators/jdbc/
|
181
|
-
- lib/
|
182
|
-
- lib/jdbc_adapter
|
183
|
-
- lib/jdbc_adapter/
|
184
|
-
-
|
185
|
-
-
|
186
|
-
- rails_generators/
|
187
|
-
- rails_generators/templates/
|
188
|
-
-
|
189
|
-
- rakelib/
|
190
|
-
- rakelib/
|
191
|
-
- rakelib/
|
192
|
-
- rakelib/
|
193
|
-
- rakelib/
|
194
|
-
-
|
195
|
-
- src/java/arjdbc/
|
196
|
-
- src/java/arjdbc/db2/
|
197
|
-
- src/java/arjdbc/
|
198
|
-
- src/java/arjdbc/derby/
|
199
|
-
- src/java/arjdbc/
|
200
|
-
- src/java/arjdbc/h2/
|
201
|
-
- src/java/arjdbc/
|
202
|
-
- src/java/arjdbc/
|
203
|
-
- src/java/arjdbc/
|
204
|
-
- src/java/arjdbc/jdbc/
|
205
|
-
- src/java/arjdbc/jdbc/
|
206
|
-
- src/java/arjdbc/jdbc/
|
207
|
-
- src/java/arjdbc/jdbc/
|
208
|
-
- src/java/arjdbc/
|
209
|
-
- src/java/arjdbc/mssql/
|
210
|
-
- src/java/arjdbc/mssql/
|
211
|
-
- src/java/arjdbc/
|
212
|
-
- src/java/arjdbc/mysql/
|
213
|
-
- src/java/arjdbc/
|
214
|
-
- src/java/arjdbc/oracle/
|
215
|
-
- src/java/arjdbc/
|
216
|
-
- src/java/arjdbc/postgresql/
|
217
|
-
- src/java/arjdbc/
|
218
|
-
- src/java/arjdbc/sqlite3/
|
219
|
-
- src/java/arjdbc/sqlite3/
|
220
|
-
- src/java/arjdbc/
|
221
|
-
- src/java/arjdbc/util/
|
36
|
+
|
37
|
+
files:
|
38
|
+
- .gitignore
|
39
|
+
- .travis.yml
|
40
|
+
- .yardopts
|
41
|
+
- Appraisals
|
42
|
+
- CONTRIBUTING.md
|
43
|
+
- Gemfile
|
44
|
+
- History.md
|
45
|
+
- LICENSE.txt
|
46
|
+
- README.md
|
47
|
+
- RUNNING_TESTS.md
|
48
|
+
- Rakefile
|
49
|
+
- Rakefile.jdbc
|
50
|
+
- activerecord-jdbc-adapter.gemspec
|
51
|
+
- lib/active_record/connection_adapters/as400_adapter.rb
|
52
|
+
- lib/active_record/connection_adapters/db2_adapter.rb
|
53
|
+
- lib/active_record/connection_adapters/derby_adapter.rb
|
54
|
+
- lib/active_record/connection_adapters/firebird_adapter.rb
|
55
|
+
- lib/active_record/connection_adapters/h2_adapter.rb
|
56
|
+
- lib/active_record/connection_adapters/hsqldb_adapter.rb
|
57
|
+
- lib/active_record/connection_adapters/informix_adapter.rb
|
58
|
+
- lib/active_record/connection_adapters/jdbc_adapter.rb
|
59
|
+
- lib/active_record/connection_adapters/jndi_adapter.rb
|
60
|
+
- lib/active_record/connection_adapters/mariadb_adapter.rb
|
61
|
+
- lib/active_record/connection_adapters/mssql_adapter.rb
|
62
|
+
- lib/active_record/connection_adapters/mysql2_adapter.rb
|
63
|
+
- lib/active_record/connection_adapters/mysql_adapter.rb
|
64
|
+
- lib/active_record/connection_adapters/oracle_adapter.rb
|
65
|
+
- lib/active_record/connection_adapters/postgresql_adapter.rb
|
66
|
+
- lib/active_record/connection_adapters/sqlite3_adapter.rb
|
67
|
+
- lib/active_record/connection_adapters/sqlserver_adapter.rb
|
68
|
+
- lib/activerecord-jdbc-adapter.rb
|
69
|
+
- lib/arel/visitors/compat.rb
|
70
|
+
- lib/arel/visitors/db2.rb
|
71
|
+
- lib/arel/visitors/derby.rb
|
72
|
+
- lib/arel/visitors/firebird.rb
|
73
|
+
- lib/arel/visitors/h2.rb
|
74
|
+
- lib/arel/visitors/hsqldb.rb
|
75
|
+
- lib/arel/visitors/sql_server.rb
|
76
|
+
- lib/arjdbc.rb
|
77
|
+
- lib/arjdbc/db2.rb
|
78
|
+
- lib/arjdbc/db2/adapter.rb
|
79
|
+
- lib/arjdbc/db2/as400.rb
|
80
|
+
- lib/arjdbc/db2/column.rb
|
81
|
+
- lib/arjdbc/db2/connection_methods.rb
|
82
|
+
- lib/arjdbc/derby.rb
|
83
|
+
- lib/arjdbc/derby/active_record_patch.rb
|
84
|
+
- lib/arjdbc/derby/adapter.rb
|
85
|
+
- lib/arjdbc/derby/connection_methods.rb
|
86
|
+
- lib/arjdbc/derby/schema_creation.rb
|
87
|
+
- lib/arjdbc/discover.rb
|
88
|
+
- lib/arjdbc/firebird.rb
|
89
|
+
- lib/arjdbc/firebird/adapter.rb
|
90
|
+
- lib/arjdbc/firebird/connection_methods.rb
|
91
|
+
- lib/arjdbc/h2.rb
|
92
|
+
- lib/arjdbc/h2/adapter.rb
|
93
|
+
- lib/arjdbc/h2/connection_methods.rb
|
94
|
+
- lib/arjdbc/hsqldb.rb
|
95
|
+
- lib/arjdbc/hsqldb/adapter.rb
|
96
|
+
- lib/arjdbc/hsqldb/connection_methods.rb
|
97
|
+
- lib/arjdbc/hsqldb/explain_support.rb
|
98
|
+
- lib/arjdbc/hsqldb/schema_creation.rb
|
99
|
+
- lib/arjdbc/informix.rb
|
100
|
+
- lib/arjdbc/informix/adapter.rb
|
101
|
+
- lib/arjdbc/informix/connection_methods.rb
|
102
|
+
- lib/arjdbc/jdbc.rb
|
103
|
+
- lib/arjdbc/jdbc/adapter.rb
|
104
|
+
- lib/arjdbc/jdbc/adapter_java.jar
|
105
|
+
- lib/arjdbc/jdbc/adapter_require.rb
|
106
|
+
- lib/arjdbc/jdbc/arel_support.rb
|
107
|
+
- lib/arjdbc/jdbc/base_ext.rb
|
108
|
+
- lib/arjdbc/jdbc/callbacks.rb
|
109
|
+
- lib/arjdbc/jdbc/column.rb
|
110
|
+
- lib/arjdbc/jdbc/connection.rb
|
111
|
+
- lib/arjdbc/jdbc/connection_methods.rb
|
112
|
+
- lib/arjdbc/jdbc/driver.rb
|
113
|
+
- lib/arjdbc/jdbc/extension.rb
|
114
|
+
- lib/arjdbc/jdbc/java.rb
|
115
|
+
- lib/arjdbc/jdbc/jdbc.rake
|
116
|
+
- lib/arjdbc/jdbc/quoted_primary_key.rb
|
117
|
+
- lib/arjdbc/jdbc/railtie.rb
|
118
|
+
- lib/arjdbc/jdbc/rake_tasks.rb
|
119
|
+
- lib/arjdbc/jdbc/serialized_attributes_helper.rb
|
120
|
+
- lib/arjdbc/jdbc/type_cast.rb
|
121
|
+
- lib/arjdbc/jdbc/type_converter.rb
|
122
|
+
- lib/arjdbc/mimer.rb
|
123
|
+
- lib/arjdbc/mimer/adapter.rb
|
124
|
+
- lib/arjdbc/mssql.rb
|
125
|
+
- lib/arjdbc/mssql/adapter.rb
|
126
|
+
- lib/arjdbc/mssql/column.rb
|
127
|
+
- lib/arjdbc/mssql/connection_methods.rb
|
128
|
+
- lib/arjdbc/mssql/explain_support.rb
|
129
|
+
- lib/arjdbc/mssql/limit_helpers.rb
|
130
|
+
- lib/arjdbc/mssql/lock_methods.rb
|
131
|
+
- lib/arjdbc/mssql/utils.rb
|
132
|
+
- lib/arjdbc/mysql.rb
|
133
|
+
- lib/arjdbc/mysql/adapter.rb
|
134
|
+
- lib/arjdbc/mysql/bulk_change_table.rb
|
135
|
+
- lib/arjdbc/mysql/column.rb
|
136
|
+
- lib/arjdbc/mysql/connection_methods.rb
|
137
|
+
- lib/arjdbc/mysql/explain_support.rb
|
138
|
+
- lib/arjdbc/mysql/schema_creation.rb
|
139
|
+
- lib/arjdbc/oracle.rb
|
140
|
+
- lib/arjdbc/oracle/adapter.rb
|
141
|
+
- lib/arjdbc/oracle/column.rb
|
142
|
+
- lib/arjdbc/oracle/connection_methods.rb
|
143
|
+
- lib/arjdbc/postgresql.rb
|
144
|
+
- lib/arjdbc/postgresql/adapter.rb
|
145
|
+
- lib/arjdbc/postgresql/base/array_parser.rb
|
146
|
+
- lib/arjdbc/postgresql/base/oid.rb
|
147
|
+
- lib/arjdbc/postgresql/column.rb
|
148
|
+
- lib/arjdbc/postgresql/connection_methods.rb
|
149
|
+
- lib/arjdbc/postgresql/explain_support.rb
|
150
|
+
- lib/arjdbc/postgresql/oid_types.rb
|
151
|
+
- lib/arjdbc/postgresql/schema_creation.rb
|
152
|
+
- lib/arjdbc/railtie.rb
|
153
|
+
- lib/arjdbc/sqlite3.rb
|
154
|
+
- lib/arjdbc/sqlite3/adapter.rb
|
155
|
+
- lib/arjdbc/sqlite3/connection_methods.rb
|
156
|
+
- lib/arjdbc/sqlite3/explain_support.rb
|
157
|
+
- lib/arjdbc/sybase.rb
|
158
|
+
- lib/arjdbc/sybase/adapter.rb
|
159
|
+
- lib/arjdbc/tasks.rb
|
160
|
+
- lib/arjdbc/tasks/database_tasks.rb
|
161
|
+
- lib/arjdbc/tasks/databases.rake
|
162
|
+
- lib/arjdbc/tasks/databases3.rake
|
163
|
+
- lib/arjdbc/tasks/databases4.rake
|
164
|
+
- lib/arjdbc/tasks/db2_database_tasks.rb
|
165
|
+
- lib/arjdbc/tasks/derby_database_tasks.rb
|
166
|
+
- lib/arjdbc/tasks/h2_database_tasks.rb
|
167
|
+
- lib/arjdbc/tasks/hsqldb_database_tasks.rb
|
168
|
+
- lib/arjdbc/tasks/jdbc_database_tasks.rb
|
169
|
+
- lib/arjdbc/tasks/mssql_database_tasks.rb
|
170
|
+
- lib/arjdbc/tasks/oracle/enhanced_structure_dump.rb
|
171
|
+
- lib/arjdbc/tasks/oracle_database_tasks.rb
|
172
|
+
- lib/arjdbc/util/quoted_cache.rb
|
173
|
+
- lib/arjdbc/util/serialized_attributes.rb
|
174
|
+
- lib/arjdbc/util/table_copier.rb
|
175
|
+
- lib/arjdbc/version.rb
|
176
|
+
- lib/generators/jdbc/USAGE
|
177
|
+
- lib/generators/jdbc/jdbc_generator.rb
|
178
|
+
- lib/jdbc_adapter.rb
|
179
|
+
- lib/jdbc_adapter/rake_tasks.rb
|
180
|
+
- lib/jdbc_adapter/version.rb
|
181
|
+
- pom.xml
|
182
|
+
- rails_generators/jdbc_generator.rb
|
183
|
+
- rails_generators/templates/config/initializers/jdbc.rb
|
184
|
+
- rails_generators/templates/lib/tasks/jdbc.rake
|
185
|
+
- rakelib/01-tomcat.rake
|
186
|
+
- rakelib/02-test.rake
|
187
|
+
- rakelib/bundler_ext.rb
|
188
|
+
- rakelib/compile.rake
|
189
|
+
- rakelib/db.rake
|
190
|
+
- rakelib/rails.rake
|
191
|
+
- src/java/arjdbc/ArJdbcModule.java
|
192
|
+
- src/java/arjdbc/db2/DB2Module.java
|
193
|
+
- src/java/arjdbc/db2/DB2RubyJdbcConnection.java
|
194
|
+
- src/java/arjdbc/derby/DerbyModule.java
|
195
|
+
- src/java/arjdbc/derby/DerbyRubyJdbcConnection.java
|
196
|
+
- src/java/arjdbc/h2/H2Module.java
|
197
|
+
- src/java/arjdbc/h2/H2RubyJdbcConnection.java
|
198
|
+
- src/java/arjdbc/hsqldb/HSQLDBModule.java
|
199
|
+
- src/java/arjdbc/informix/InformixRubyJdbcConnection.java
|
200
|
+
- src/java/arjdbc/jdbc/AdapterJavaService.java
|
201
|
+
- src/java/arjdbc/jdbc/Callable.java
|
202
|
+
- src/java/arjdbc/jdbc/JdbcConnectionFactory.java
|
203
|
+
- src/java/arjdbc/jdbc/RubyJdbcConnection.java
|
204
|
+
- src/java/arjdbc/jdbc/SQLBlock.java
|
205
|
+
- src/java/arjdbc/mssql/MSSQLModule.java
|
206
|
+
- src/java/arjdbc/mssql/MSSQLRubyJdbcConnection.java
|
207
|
+
- src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
|
208
|
+
- src/java/arjdbc/mysql/MySQLModule.java
|
209
|
+
- src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java
|
210
|
+
- src/java/arjdbc/oracle/OracleModule.java
|
211
|
+
- src/java/arjdbc/oracle/OracleRubyJdbcConnection.java
|
212
|
+
- src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java
|
213
|
+
- src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java
|
214
|
+
- src/java/arjdbc/sqlite3/SQLite3Module.java
|
215
|
+
- src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java
|
216
|
+
- src/java/arjdbc/sqlite3/Sqlite3RubyJdbcConnection.java
|
217
|
+
- src/java/arjdbc/util/CallResultSet.java
|
218
|
+
- src/java/arjdbc/util/QuotingUtils.java
|
222
219
|
homepage: https://github.com/jruby/activerecord-jdbc-adapter
|
223
|
-
licenses:
|
224
|
-
- BSD
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
- -
|
231
|
-
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
requirements:
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
220
|
+
licenses:
|
221
|
+
- BSD
|
222
|
+
post_install_message:
|
223
|
+
rdoc_options:
|
224
|
+
- --main
|
225
|
+
- README.md
|
226
|
+
- -SHN
|
227
|
+
- -f
|
228
|
+
- darkfish
|
229
|
+
require_paths:
|
230
|
+
- lib
|
231
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
232
|
+
none: false
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
hash: 2
|
237
|
+
segments:
|
238
|
+
- 0
|
239
|
+
version: "0"
|
240
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
242
|
+
requirements:
|
243
|
+
- - ">="
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: "0"
|
245
246
|
requirements: []
|
247
|
+
|
246
248
|
rubyforge_project: jruby-extras
|
247
|
-
rubygems_version:
|
248
|
-
signing_key:
|
249
|
-
specification_version:
|
249
|
+
rubygems_version: 1.8.24
|
250
|
+
signing_key:
|
251
|
+
specification_version: 3
|
250
252
|
summary: JDBC adapter for ActiveRecord, for use within JRuby on Rails.
|
251
253
|
test_files: []
|
252
|
-
|
254
|
+
|