activerecord-jdbc-adapter 1.3.14 → 1.3.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/History.md +12 -0
- data/lib/arjdbc/db2/adapter.rb +4 -0
- data/lib/arjdbc/derby/adapter.rb +4 -0
- data/lib/arjdbc/hsqldb/adapter.rb +5 -0
- data/lib/arjdbc/informix/adapter.rb +35 -16
- data/lib/arjdbc/jdbc/adapter.rb +0 -3
- data/lib/arjdbc/jdbc/column.rb +6 -1
- data/lib/arjdbc/jdbc/connection.rb +2 -2
- data/lib/arjdbc/jdbc/type_cast.rb +6 -4
- data/lib/arjdbc/mssql/adapter.rb +4 -0
- data/lib/arjdbc/mysql/adapter.rb +5 -21
- data/lib/arjdbc/mysql/column.rb +17 -5
- data/lib/arjdbc/oracle/adapter.rb +4 -0
- data/lib/arjdbc/postgresql/adapter.rb +6 -0
- data/lib/arjdbc/postgresql/column.rb +5 -2
- data/lib/arjdbc/sqlite3/adapter.rb +5 -0
- data/lib/arjdbc/version.rb +1 -1
- metadata +240 -242
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4739f3c7b3060fa31587fc71df2cc0694e01b112
|
4
|
+
data.tar.gz: a2eb0b13a9c4e91ec04114dfa3b6ccf4837c1caf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c7a8e8d16adaa14b6ff45722f50ac83284b9cfb7e1fd01656369ed863b09a0174f5e3d5da082f39ce531417bcdbdc84259bc6683e2ee024d07bc0f03f4d1efa
|
7
|
+
data.tar.gz: 31745bff9b3d93c76adcfe18a6073e48115aa2f0de2b923ec5c396f3ce855357d36c29b174ef003d421cc92cccc903469bd0d53dea5aa4c664b7ea7a60f8e6f3
|
data/Gemfile
CHANGED
@@ -20,7 +20,7 @@ if defined?(JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
|
|
20
20
|
gem 'jruby-openssl', :platform => :jruby
|
21
21
|
end
|
22
22
|
|
23
|
-
gem 'rake', '~> 10.
|
23
|
+
gem 'rake', '~> 10.4.2', :require => nil
|
24
24
|
gem 'appraisal', '~> 0.5.2', :require => nil
|
25
25
|
|
26
26
|
# appraisal ignores group block declarations :
|
data/History.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 1.3.15 (03/09/15)
|
2
|
+
|
3
|
+
- [informix] adapter undefined method 'column_types' with Rails 4.x (#622)
|
4
|
+
- improve connection factory Ruby interface impls to match Java method-name (#621)
|
5
|
+
- [sqlite] truncate_fake - as due compatibility with do not want a truncate method
|
6
|
+
- truncate support 4 all (introduced in AR 4.2 but we let it work in all versions)
|
7
|
+
- [postgres] do not double load array_parser (on 4.2)
|
8
|
+
- [postgres] connection.truncate impl (AR 4.2 compat)
|
9
|
+
- [mysql] back-port missing truncate connection method (since AR 4.2)
|
10
|
+
- auto setup type-casting compat (pre 4.2 emulation) 4 all
|
11
|
+
- [postgres] backport bigserial key and bigint native type support
|
12
|
+
|
1
13
|
## 1.3.14 (01/28/15)
|
2
14
|
|
3
15
|
- [mysql] Fixed an undefined exception error in type_to_sql for MySQL (#616)
|
data/lib/arjdbc/db2/adapter.rb
CHANGED
@@ -583,6 +583,10 @@ module ArJdbc
|
|
583
583
|
tables.each { |table| drop_table("#{table}") }
|
584
584
|
end
|
585
585
|
|
586
|
+
def truncate(table_name, name = nil)
|
587
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)} IMMEDIATE", name
|
588
|
+
end
|
589
|
+
|
586
590
|
# @override
|
587
591
|
def supports_views?; true end
|
588
592
|
|
data/lib/arjdbc/derby/adapter.rb
CHANGED
@@ -415,6 +415,10 @@ module ArJdbc
|
|
415
415
|
@connection.tables(nil, current_schema)
|
416
416
|
end
|
417
417
|
|
418
|
+
def truncate(table_name, name = nil)
|
419
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)}", name
|
420
|
+
end
|
421
|
+
|
418
422
|
# @return [String] the current schema name
|
419
423
|
def current_schema
|
420
424
|
@current_schema ||=
|
@@ -194,6 +194,11 @@ module ArJdbc
|
|
194
194
|
execute "ALTER TABLE #{name} RENAME TO #{new_name}"
|
195
195
|
end
|
196
196
|
|
197
|
+
# @note AR API since 4.2
|
198
|
+
def truncate(table_name, name = nil)
|
199
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)}", name
|
200
|
+
end
|
201
|
+
|
197
202
|
def last_insert_id
|
198
203
|
identity = select_value("CALL IDENTITY()")
|
199
204
|
Integer(identity.nil? ? 0 : identity)
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'arjdbc/
|
1
|
+
require 'arjdbc/util/serialized_attributes'
|
2
2
|
|
3
3
|
module ArJdbc
|
4
4
|
module Informix
|
5
|
-
|
5
|
+
|
6
6
|
@@_lob_callback_added = nil
|
7
|
-
|
7
|
+
|
8
8
|
def self.extended(base)
|
9
9
|
unless @@_lob_callback_added
|
10
10
|
ActiveRecord::Base.class_eval do
|
@@ -13,10 +13,10 @@ module ArJdbc
|
|
13
13
|
lob_columns.each do |column|
|
14
14
|
value = ::ArJdbc::SerializedAttributesHelper.dump_column_value(self, column)
|
15
15
|
next if value.nil? || (value == '')
|
16
|
-
|
16
|
+
|
17
17
|
connection.write_large_object(
|
18
|
-
column.type == :binary, column.name,
|
19
|
-
self.class.table_name, self.class.primary_key,
|
18
|
+
column.type == :binary, column.name,
|
19
|
+
self.class.table_name, self.class.primary_key,
|
20
20
|
quote_value(id), value
|
21
21
|
)
|
22
22
|
end
|
@@ -28,16 +28,25 @@ module ArJdbc
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
# @see ActiveRecord::ConnectionAdapters::JdbcColumn#column_types
|
31
32
|
def self.column_selector
|
32
|
-
[ /informix/i, lambda { |cfg, column| column.extend(
|
33
|
+
[ /informix/i, lambda { |cfg, column| column.extend(ColumnMethods) } ]
|
33
34
|
end
|
34
35
|
|
36
|
+
JdbcConnection = ::ActiveRecord::ConnectionAdapters::InformixJdbcConnection
|
37
|
+
|
38
|
+
# @see ActiveRecord::ConnectionAdapters::JdbcAdapter#jdbc_connection_class
|
35
39
|
def self.jdbc_connection_class
|
36
40
|
::ActiveRecord::ConnectionAdapters::InformixJdbcConnection
|
37
41
|
end
|
38
42
|
|
39
|
-
|
40
|
-
|
43
|
+
# @see ActiveRecord::ConnectionAdapters::JdbcAdapter#jdbc_column_class
|
44
|
+
def jdbc_column_class
|
45
|
+
::ActiveRecord::ConnectionAdapters::InformixColumn
|
46
|
+
end
|
47
|
+
|
48
|
+
module ColumnMethods
|
49
|
+
|
41
50
|
private
|
42
51
|
# TODO: Test all Informix column types.
|
43
52
|
def simplified_type(field_type)
|
@@ -47,7 +56,7 @@ module ArJdbc
|
|
47
56
|
super
|
48
57
|
end
|
49
58
|
end
|
50
|
-
|
59
|
+
|
51
60
|
end
|
52
61
|
|
53
62
|
def modify_types(types)
|
@@ -126,18 +135,28 @@ module ArJdbc
|
|
126
135
|
def remove_index(table_name, options = {})
|
127
136
|
@connection.execute_update("DROP INDEX #{index_name(table_name, options)}")
|
128
137
|
end
|
129
|
-
|
138
|
+
|
130
139
|
def select(sql, *rest)
|
131
140
|
# Informix does not like "= NULL", "!= NULL", or "<> NULL".
|
132
|
-
|
141
|
+
super(sql.gsub(/(!=|<>)\s*null/i, "IS NOT NULL").gsub(/=\s*null/i, "IS NULL"), *rest)
|
133
142
|
end
|
134
|
-
|
143
|
+
|
135
144
|
private
|
136
|
-
|
145
|
+
|
137
146
|
def db_major_version
|
138
|
-
@@db_major_version ||=
|
147
|
+
@@db_major_version ||=
|
139
148
|
select_one("SELECT dbinfo('version', 'major') version FROM systables WHERE tabid = 1")['version'].to_i
|
140
149
|
end
|
141
|
-
|
150
|
+
|
142
151
|
end # module Informix
|
143
152
|
end # module ::ArJdbc
|
153
|
+
|
154
|
+
module ActiveRecord::ConnectionAdapters
|
155
|
+
class InformixColumn < JdbcColumn
|
156
|
+
include ::ArJdbc::Informix::ColumnMethods
|
157
|
+
end
|
158
|
+
|
159
|
+
class InformixAdapter < JdbcAdapter
|
160
|
+
include ::ArJdbc::Informix
|
161
|
+
end
|
162
|
+
end
|
data/lib/arjdbc/jdbc/adapter.rb
CHANGED
data/lib/arjdbc/jdbc/column.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module ActiveRecord
|
2
2
|
module ConnectionAdapters
|
3
|
+
module Jdbc
|
4
|
+
autoload :TypeCast, 'arjdbc/jdbc/type_cast'
|
5
|
+
end
|
3
6
|
# The base class for all of {JdbcAdapter}'s returned columns.
|
4
7
|
# Instances of {JdbcColumn} will get extended with "column-spec" modules
|
5
8
|
# (similar to how {JdbcAdapter} gets spec modules in) if the adapter spec
|
@@ -22,7 +25,7 @@ module ActiveRecord
|
|
22
25
|
end
|
23
26
|
end
|
24
27
|
# super <= 4.1: (name, default, sql_type = nil, null = true)
|
25
|
-
# super
|
28
|
+
# super >= 4.2: (name, default, cast_type, sql_type = nil, null = true)
|
26
29
|
super(name, default_value(default), *args)
|
27
30
|
init_column(name, default, *args)
|
28
31
|
end
|
@@ -61,6 +64,8 @@ module ActiveRecord
|
|
61
64
|
|
62
65
|
class << self
|
63
66
|
|
67
|
+
include Jdbc::TypeCast if ::ActiveRecord::VERSION::STRING >= '4.2'
|
68
|
+
|
64
69
|
if ActiveRecord::VERSION::MAJOR > 3 && ActiveRecord::VERSION::STRING < '4.2'
|
65
70
|
|
66
71
|
# @private provides compatibility between AR 3.x/4.0 API
|
@@ -78,7 +78,7 @@ module ActiveRecord
|
|
78
78
|
@data_source = data_source
|
79
79
|
end
|
80
80
|
|
81
|
-
def
|
81
|
+
def newConnection
|
82
82
|
@data_source.connection
|
83
83
|
end
|
84
84
|
end
|
@@ -110,7 +110,7 @@ module ActiveRecord
|
|
110
110
|
@driver = driver
|
111
111
|
end
|
112
112
|
|
113
|
-
def
|
113
|
+
def newConnection
|
114
114
|
@driver.connection(@url, @username, @password)
|
115
115
|
end
|
116
116
|
end
|
@@ -1,15 +1,17 @@
|
|
1
|
+
require 'active_record/connection_adapters/column'
|
2
|
+
|
1
3
|
module ActiveRecord::ConnectionAdapters
|
2
4
|
module Jdbc
|
3
5
|
# Type casting methods taken from AR 4.1's Column class.
|
4
6
|
# @private Simply to quickly "hack-in" 4.2 compatibility.
|
5
7
|
module TypeCast
|
6
8
|
|
7
|
-
TRUE_VALUES =
|
8
|
-
FALSE_VALUES =
|
9
|
+
TRUE_VALUES = Column::TRUE_VALUES
|
10
|
+
FALSE_VALUES = Column::FALSE_VALUES
|
9
11
|
|
10
12
|
#module Format
|
11
|
-
ISO_DATE =
|
12
|
-
ISO_DATETIME =
|
13
|
+
ISO_DATE = Column::Format::ISO_DATE
|
14
|
+
ISO_DATETIME = Column::Format::ISO_DATETIME
|
13
15
|
#end
|
14
16
|
|
15
17
|
# Used to convert from BLOBs to Strings
|
data/lib/arjdbc/mssql/adapter.rb
CHANGED
@@ -589,6 +589,10 @@ module ArJdbc
|
|
589
589
|
"#{quote_table_name(table_name)}.#{quote_column_name((primary_column || columns.first).name)}"
|
590
590
|
end
|
591
591
|
|
592
|
+
def truncate(table_name, name = nil)
|
593
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)}", name
|
594
|
+
end
|
595
|
+
|
592
596
|
# Support for executing a stored procedure.
|
593
597
|
def exec_proc(proc_name, *variables)
|
594
598
|
vars =
|
data/lib/arjdbc/mysql/adapter.rb
CHANGED
@@ -482,7 +482,11 @@ module ArJdbc
|
|
482
482
|
end
|
483
483
|
|
484
484
|
def current_database
|
485
|
-
select_one("SELECT DATABASE() as db")[
|
485
|
+
select_one("SELECT DATABASE() as db")['db']
|
486
|
+
end
|
487
|
+
|
488
|
+
def truncate(table_name, name = nil)
|
489
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)}", name
|
486
490
|
end
|
487
491
|
|
488
492
|
# @override
|
@@ -761,26 +765,6 @@ module ActiveRecord
|
|
761
765
|
class Column < JdbcColumn
|
762
766
|
include ::ArJdbc::MySQL::Column
|
763
767
|
|
764
|
-
def initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = '')
|
765
|
-
if name.is_a?(Hash)
|
766
|
-
super # first arg: config
|
767
|
-
else
|
768
|
-
@strict = strict; @collation = collation; @extra = extra
|
769
|
-
super(name, default, sql_type, null)
|
770
|
-
# base 4.1: (name, default, sql_type = nil, null = true)
|
771
|
-
end
|
772
|
-
end
|
773
|
-
|
774
|
-
def initialize(name, default, cast_type, sql_type = nil, null = true, collation = nil, strict = false, extra = '')
|
775
|
-
if name.is_a?(Hash)
|
776
|
-
super # first arg: config
|
777
|
-
else
|
778
|
-
@strict = strict; @collation = collation; @extra = extra
|
779
|
-
super(name, default, cast_type, sql_type, null)
|
780
|
-
# base 4.2: (name, default, cast_type, sql_type = nil, null = true)
|
781
|
-
end
|
782
|
-
end if ActiveRecord::VERSION::STRING >= '4.2'
|
783
|
-
|
784
768
|
# @note {#ArJdbc::MySQL::Column} uses this to check for boolean emulation
|
785
769
|
def adapter
|
786
770
|
MysqlAdapter
|
data/lib/arjdbc/mysql/column.rb
CHANGED
@@ -10,6 +10,8 @@ module ArJdbc
|
|
10
10
|
# @see ActiveRecord::ConnectionAdapters::JdbcColumn
|
11
11
|
module Column
|
12
12
|
|
13
|
+
attr_reader :collation, :strict, :extra
|
14
|
+
|
13
15
|
def initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = '')
|
14
16
|
if name.is_a?(Hash)
|
15
17
|
super # first arg: config
|
@@ -27,11 +29,11 @@ module ArJdbc
|
|
27
29
|
@strict = strict; @collation = collation; @extra = extra
|
28
30
|
super(name, default, cast_type, sql_type, null)
|
29
31
|
# base 4.2: (name, default, cast_type, sql_type = nil, null = true)
|
32
|
+
#assert_valid_default(default) done with #extract_default
|
33
|
+
#@default = null || ( strict ? nil : '' ) if blob_or_text_column?
|
30
34
|
end
|
31
35
|
end if AR42
|
32
36
|
|
33
|
-
attr_reader :collation, :strict, :extra
|
34
|
-
|
35
37
|
def extract_default(default)
|
36
38
|
if blob_or_text_column?
|
37
39
|
return null || strict ? nil : '' if default.blank?
|
@@ -56,6 +58,13 @@ module ArJdbc
|
|
56
58
|
collation && !collation.match(/_ci$/)
|
57
59
|
end
|
58
60
|
|
61
|
+
def ==(other)
|
62
|
+
collation == other.collation &&
|
63
|
+
strict == other.strict &&
|
64
|
+
extra == other.extra &&
|
65
|
+
super
|
66
|
+
end if AR42
|
67
|
+
|
59
68
|
def simplified_type(field_type)
|
60
69
|
if adapter && adapter.emulate_booleans?
|
61
70
|
return :boolean if field_type.downcase.index('tinyint(1)')
|
@@ -125,7 +134,9 @@ module ArJdbc
|
|
125
134
|
else
|
126
135
|
super
|
127
136
|
end
|
128
|
-
end
|
137
|
+
end unless AR42 # on AR 4.2 limit is delegated to cast_type.limit
|
138
|
+
|
139
|
+
private
|
129
140
|
|
130
141
|
# MySQL misreports NOT NULL column default when none is given.
|
131
142
|
# We can't detect this for columns which may have a legitimate ''
|
@@ -135,11 +146,12 @@ module ArJdbc
|
|
135
146
|
# Test whether the column has default '', is not null, and is not
|
136
147
|
# a type allowing default ''.
|
137
148
|
def missing_default_forged_as_empty_string?(default)
|
138
|
-
type != :string && !null && default == ''
|
149
|
+
type != :string && ! null && default == ''
|
139
150
|
end
|
140
151
|
|
152
|
+
def attributes_for_hash; super + [collation, strict, extra] end
|
153
|
+
|
141
154
|
def adapter; end
|
142
|
-
private :adapter
|
143
155
|
|
144
156
|
end
|
145
157
|
|
@@ -498,6 +498,10 @@ module ArJdbc
|
|
498
498
|
# @override
|
499
499
|
def supports_views?; true end
|
500
500
|
|
501
|
+
def truncate(table_name, name = nil)
|
502
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)}", name
|
503
|
+
end
|
504
|
+
|
501
505
|
def explain(arel, binds = [])
|
502
506
|
sql = "EXPLAIN PLAN FOR #{to_sql(arel, binds)}"
|
503
507
|
return if sql =~ /FROM all_/
|
@@ -238,6 +238,8 @@ module ArJdbc
|
|
238
238
|
}) if AR4_COMPAT
|
239
239
|
|
240
240
|
NATIVE_DATABASE_TYPES.update(
|
241
|
+
:bigserial => "bigserial",
|
242
|
+
:bigint => { :name => "bigint" },
|
241
243
|
:bit => { :name => "bit" },
|
242
244
|
:bit_varying => { :name => "bit varying" }
|
243
245
|
) if AR42_COMPAT
|
@@ -1169,6 +1171,10 @@ module ArJdbc
|
|
1169
1171
|
end
|
1170
1172
|
end
|
1171
1173
|
|
1174
|
+
def truncate(table_name, name = nil)
|
1175
|
+
execute "TRUNCATE TABLE #{quote_table_name(table_name)}", name
|
1176
|
+
end
|
1177
|
+
|
1172
1178
|
def index_name_exists?(table_name, index_name, default)
|
1173
1179
|
exec_query(<<-SQL, 'SCHEMA').rows.first[0].to_i > 0
|
1174
1180
|
SELECT COUNT(*)
|
@@ -24,11 +24,14 @@ module ArJdbc
|
|
24
24
|
require 'pg_array_parser'
|
25
25
|
include PgArrayParser
|
26
26
|
rescue LoadError
|
27
|
-
|
27
|
+
if AR42_COMPAT
|
28
|
+
require 'active_record/connection_adapters/postgresql/array_parser'
|
29
|
+
else
|
30
|
+
require 'arjdbc/postgresql/base/array_parser'
|
31
|
+
end
|
28
32
|
include ActiveRecord::ConnectionAdapters::PostgreSQL::ArrayParser
|
29
33
|
end if AR4_COMPAT
|
30
34
|
|
31
|
-
include ActiveRecord::ConnectionAdapters::Jdbc::TypeCast if AR42_COMPAT
|
32
35
|
include Cast
|
33
36
|
|
34
37
|
end
|
@@ -267,6 +267,11 @@ module ArJdbc
|
|
267
267
|
table_name && tables(nil, table_name).any?
|
268
268
|
end
|
269
269
|
|
270
|
+
def truncate_fake(table_name, name = nil)
|
271
|
+
execute "DELETE FROM #{quote_table_name(table_name)}; VACUUM", name
|
272
|
+
end
|
273
|
+
# NOTE: not part of official AR (4.2) alias truncate truncate_fake
|
274
|
+
|
270
275
|
# Returns 62. SQLite supports index names up to 64 characters.
|
271
276
|
# The rest is used by Rails internally to perform temporary rename operations.
|
272
277
|
# @return [Fixnum]
|
data/lib/arjdbc/version.rb
CHANGED
metadata
CHANGED
@@ -1,254 +1,252 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbc-adapter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.3.14
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.15
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
6
|
+
authors:
|
7
|
+
- Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.2'
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '2.2'
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
|
+
description: 'AR-JDBC is a database adapter for Rails'' ActiveRecord component designed
|
28
|
+
to be used with JRuby built upon Java''s JDBC API for database access. Provides
|
29
|
+
(ActiveRecord) built-in adapters: MySQL, PostgreSQL and SQLite3 as well as adapters
|
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
|
31
37
|
executables: []
|
32
|
-
|
33
38
|
extensions: []
|
34
|
-
|
35
39
|
extra_rdoc_files: []
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
- src/java/arjdbc/util/QuotingUtils.java
|
40
|
+
files:
|
41
|
+
- .gitignore
|
42
|
+
- .travis.yml
|
43
|
+
- .yardopts
|
44
|
+
- Appraisals
|
45
|
+
- CONTRIBUTING.md
|
46
|
+
- Gemfile
|
47
|
+
- History.md
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.md
|
50
|
+
- RUNNING_TESTS.md
|
51
|
+
- Rakefile
|
52
|
+
- Rakefile.jdbc
|
53
|
+
- activerecord-jdbc-adapter.gemspec
|
54
|
+
- lib/active_record/connection_adapters/as400_adapter.rb
|
55
|
+
- lib/active_record/connection_adapters/db2_adapter.rb
|
56
|
+
- lib/active_record/connection_adapters/derby_adapter.rb
|
57
|
+
- lib/active_record/connection_adapters/firebird_adapter.rb
|
58
|
+
- lib/active_record/connection_adapters/h2_adapter.rb
|
59
|
+
- lib/active_record/connection_adapters/hsqldb_adapter.rb
|
60
|
+
- lib/active_record/connection_adapters/informix_adapter.rb
|
61
|
+
- lib/active_record/connection_adapters/jdbc_adapter.rb
|
62
|
+
- lib/active_record/connection_adapters/jndi_adapter.rb
|
63
|
+
- lib/active_record/connection_adapters/mariadb_adapter.rb
|
64
|
+
- lib/active_record/connection_adapters/mssql_adapter.rb
|
65
|
+
- lib/active_record/connection_adapters/mysql2_adapter.rb
|
66
|
+
- lib/active_record/connection_adapters/mysql_adapter.rb
|
67
|
+
- lib/active_record/connection_adapters/oracle_adapter.rb
|
68
|
+
- lib/active_record/connection_adapters/postgresql_adapter.rb
|
69
|
+
- lib/active_record/connection_adapters/sqlite3_adapter.rb
|
70
|
+
- lib/active_record/connection_adapters/sqlserver_adapter.rb
|
71
|
+
- lib/activerecord-jdbc-adapter.rb
|
72
|
+
- lib/arel/visitors/compat.rb
|
73
|
+
- lib/arel/visitors/db2.rb
|
74
|
+
- lib/arel/visitors/derby.rb
|
75
|
+
- lib/arel/visitors/firebird.rb
|
76
|
+
- lib/arel/visitors/h2.rb
|
77
|
+
- lib/arel/visitors/hsqldb.rb
|
78
|
+
- lib/arel/visitors/sql_server.rb
|
79
|
+
- lib/arjdbc.rb
|
80
|
+
- lib/arjdbc/db2.rb
|
81
|
+
- lib/arjdbc/db2/adapter.rb
|
82
|
+
- lib/arjdbc/db2/as400.rb
|
83
|
+
- lib/arjdbc/db2/column.rb
|
84
|
+
- lib/arjdbc/db2/connection_methods.rb
|
85
|
+
- lib/arjdbc/derby.rb
|
86
|
+
- lib/arjdbc/derby/active_record_patch.rb
|
87
|
+
- lib/arjdbc/derby/adapter.rb
|
88
|
+
- lib/arjdbc/derby/connection_methods.rb
|
89
|
+
- lib/arjdbc/derby/schema_creation.rb
|
90
|
+
- lib/arjdbc/discover.rb
|
91
|
+
- lib/arjdbc/firebird.rb
|
92
|
+
- lib/arjdbc/firebird/adapter.rb
|
93
|
+
- lib/arjdbc/firebird/connection_methods.rb
|
94
|
+
- lib/arjdbc/h2.rb
|
95
|
+
- lib/arjdbc/h2/adapter.rb
|
96
|
+
- lib/arjdbc/h2/connection_methods.rb
|
97
|
+
- lib/arjdbc/hsqldb.rb
|
98
|
+
- lib/arjdbc/hsqldb/adapter.rb
|
99
|
+
- lib/arjdbc/hsqldb/connection_methods.rb
|
100
|
+
- lib/arjdbc/hsqldb/explain_support.rb
|
101
|
+
- lib/arjdbc/hsqldb/schema_creation.rb
|
102
|
+
- lib/arjdbc/informix.rb
|
103
|
+
- lib/arjdbc/informix/adapter.rb
|
104
|
+
- lib/arjdbc/informix/connection_methods.rb
|
105
|
+
- lib/arjdbc/jdbc.rb
|
106
|
+
- lib/arjdbc/jdbc/adapter.rb
|
107
|
+
- lib/arjdbc/jdbc/adapter_java.jar
|
108
|
+
- lib/arjdbc/jdbc/adapter_require.rb
|
109
|
+
- lib/arjdbc/jdbc/arel_support.rb
|
110
|
+
- lib/arjdbc/jdbc/base_ext.rb
|
111
|
+
- lib/arjdbc/jdbc/callbacks.rb
|
112
|
+
- lib/arjdbc/jdbc/column.rb
|
113
|
+
- lib/arjdbc/jdbc/connection.rb
|
114
|
+
- lib/arjdbc/jdbc/connection_methods.rb
|
115
|
+
- lib/arjdbc/jdbc/driver.rb
|
116
|
+
- lib/arjdbc/jdbc/extension.rb
|
117
|
+
- lib/arjdbc/jdbc/java.rb
|
118
|
+
- lib/arjdbc/jdbc/jdbc.rake
|
119
|
+
- lib/arjdbc/jdbc/quoted_primary_key.rb
|
120
|
+
- lib/arjdbc/jdbc/railtie.rb
|
121
|
+
- lib/arjdbc/jdbc/rake_tasks.rb
|
122
|
+
- lib/arjdbc/jdbc/serialized_attributes_helper.rb
|
123
|
+
- lib/arjdbc/jdbc/type_cast.rb
|
124
|
+
- lib/arjdbc/jdbc/type_converter.rb
|
125
|
+
- lib/arjdbc/mimer.rb
|
126
|
+
- lib/arjdbc/mimer/adapter.rb
|
127
|
+
- lib/arjdbc/mssql.rb
|
128
|
+
- lib/arjdbc/mssql/adapter.rb
|
129
|
+
- lib/arjdbc/mssql/column.rb
|
130
|
+
- lib/arjdbc/mssql/connection_methods.rb
|
131
|
+
- lib/arjdbc/mssql/explain_support.rb
|
132
|
+
- lib/arjdbc/mssql/limit_helpers.rb
|
133
|
+
- lib/arjdbc/mssql/lock_methods.rb
|
134
|
+
- lib/arjdbc/mssql/utils.rb
|
135
|
+
- lib/arjdbc/mysql.rb
|
136
|
+
- lib/arjdbc/mysql/adapter.rb
|
137
|
+
- lib/arjdbc/mysql/bulk_change_table.rb
|
138
|
+
- lib/arjdbc/mysql/column.rb
|
139
|
+
- lib/arjdbc/mysql/connection_methods.rb
|
140
|
+
- lib/arjdbc/mysql/explain_support.rb
|
141
|
+
- lib/arjdbc/mysql/schema_creation.rb
|
142
|
+
- lib/arjdbc/oracle.rb
|
143
|
+
- lib/arjdbc/oracle/adapter.rb
|
144
|
+
- lib/arjdbc/oracle/column.rb
|
145
|
+
- lib/arjdbc/oracle/connection_methods.rb
|
146
|
+
- lib/arjdbc/postgresql.rb
|
147
|
+
- lib/arjdbc/postgresql/adapter.rb
|
148
|
+
- lib/arjdbc/postgresql/base/array_parser.rb
|
149
|
+
- lib/arjdbc/postgresql/base/oid.rb
|
150
|
+
- lib/arjdbc/postgresql/column.rb
|
151
|
+
- lib/arjdbc/postgresql/connection_methods.rb
|
152
|
+
- lib/arjdbc/postgresql/explain_support.rb
|
153
|
+
- lib/arjdbc/postgresql/oid_types.rb
|
154
|
+
- lib/arjdbc/postgresql/schema_creation.rb
|
155
|
+
- lib/arjdbc/railtie.rb
|
156
|
+
- lib/arjdbc/sqlite3.rb
|
157
|
+
- lib/arjdbc/sqlite3/adapter.rb
|
158
|
+
- lib/arjdbc/sqlite3/connection_methods.rb
|
159
|
+
- lib/arjdbc/sqlite3/explain_support.rb
|
160
|
+
- lib/arjdbc/sybase.rb
|
161
|
+
- lib/arjdbc/sybase/adapter.rb
|
162
|
+
- lib/arjdbc/tasks.rb
|
163
|
+
- lib/arjdbc/tasks/database_tasks.rb
|
164
|
+
- lib/arjdbc/tasks/databases.rake
|
165
|
+
- lib/arjdbc/tasks/databases3.rake
|
166
|
+
- lib/arjdbc/tasks/databases4.rake
|
167
|
+
- lib/arjdbc/tasks/db2_database_tasks.rb
|
168
|
+
- lib/arjdbc/tasks/derby_database_tasks.rb
|
169
|
+
- lib/arjdbc/tasks/h2_database_tasks.rb
|
170
|
+
- lib/arjdbc/tasks/hsqldb_database_tasks.rb
|
171
|
+
- lib/arjdbc/tasks/jdbc_database_tasks.rb
|
172
|
+
- lib/arjdbc/tasks/mssql_database_tasks.rb
|
173
|
+
- lib/arjdbc/tasks/oracle/enhanced_structure_dump.rb
|
174
|
+
- lib/arjdbc/tasks/oracle_database_tasks.rb
|
175
|
+
- lib/arjdbc/util/quoted_cache.rb
|
176
|
+
- lib/arjdbc/util/serialized_attributes.rb
|
177
|
+
- lib/arjdbc/util/table_copier.rb
|
178
|
+
- lib/arjdbc/version.rb
|
179
|
+
- lib/generators/jdbc/USAGE
|
180
|
+
- lib/generators/jdbc/jdbc_generator.rb
|
181
|
+
- lib/jdbc_adapter.rb
|
182
|
+
- lib/jdbc_adapter/rake_tasks.rb
|
183
|
+
- lib/jdbc_adapter/version.rb
|
184
|
+
- pom.xml
|
185
|
+
- rails_generators/jdbc_generator.rb
|
186
|
+
- rails_generators/templates/config/initializers/jdbc.rb
|
187
|
+
- rails_generators/templates/lib/tasks/jdbc.rake
|
188
|
+
- rakelib/01-tomcat.rake
|
189
|
+
- rakelib/02-test.rake
|
190
|
+
- rakelib/bundler_ext.rb
|
191
|
+
- rakelib/compile.rake
|
192
|
+
- rakelib/db.rake
|
193
|
+
- rakelib/rails.rake
|
194
|
+
- src/java/arjdbc/ArJdbcModule.java
|
195
|
+
- src/java/arjdbc/db2/DB2Module.java
|
196
|
+
- src/java/arjdbc/db2/DB2RubyJdbcConnection.java
|
197
|
+
- src/java/arjdbc/derby/DerbyModule.java
|
198
|
+
- src/java/arjdbc/derby/DerbyRubyJdbcConnection.java
|
199
|
+
- src/java/arjdbc/h2/H2Module.java
|
200
|
+
- src/java/arjdbc/h2/H2RubyJdbcConnection.java
|
201
|
+
- src/java/arjdbc/hsqldb/HSQLDBModule.java
|
202
|
+
- src/java/arjdbc/informix/InformixRubyJdbcConnection.java
|
203
|
+
- src/java/arjdbc/jdbc/AdapterJavaService.java
|
204
|
+
- src/java/arjdbc/jdbc/Callable.java
|
205
|
+
- src/java/arjdbc/jdbc/JdbcConnectionFactory.java
|
206
|
+
- src/java/arjdbc/jdbc/RubyJdbcConnection.java
|
207
|
+
- src/java/arjdbc/jdbc/SQLBlock.java
|
208
|
+
- src/java/arjdbc/mssql/MSSQLModule.java
|
209
|
+
- src/java/arjdbc/mssql/MSSQLRubyJdbcConnection.java
|
210
|
+
- src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
|
211
|
+
- src/java/arjdbc/mysql/MySQLModule.java
|
212
|
+
- src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java
|
213
|
+
- src/java/arjdbc/oracle/OracleModule.java
|
214
|
+
- src/java/arjdbc/oracle/OracleRubyJdbcConnection.java
|
215
|
+
- src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java
|
216
|
+
- src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java
|
217
|
+
- src/java/arjdbc/sqlite3/SQLite3Module.java
|
218
|
+
- src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java
|
219
|
+
- src/java/arjdbc/sqlite3/Sqlite3RubyJdbcConnection.java
|
220
|
+
- src/java/arjdbc/util/CallResultSet.java
|
221
|
+
- src/java/arjdbc/util/QuotingUtils.java
|
219
222
|
homepage: https://github.com/jruby/activerecord-jdbc-adapter
|
220
|
-
licenses:
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
requirements:
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
requirements:
|
243
|
-
- - ">="
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
version: "0"
|
223
|
+
licenses:
|
224
|
+
- BSD
|
225
|
+
metadata: {}
|
226
|
+
post_install_message:
|
227
|
+
rdoc_options:
|
228
|
+
- --main
|
229
|
+
- README.md
|
230
|
+
- -SHN
|
231
|
+
- -f
|
232
|
+
- darkfish
|
233
|
+
require_paths:
|
234
|
+
- lib
|
235
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - '>='
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0'
|
240
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
|
+
requirements:
|
242
|
+
- - '>='
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: '0'
|
246
245
|
requirements: []
|
247
|
-
|
248
246
|
rubyforge_project: jruby-extras
|
249
|
-
rubygems_version:
|
250
|
-
signing_key:
|
251
|
-
specification_version:
|
247
|
+
rubygems_version: 2.4.5
|
248
|
+
signing_key:
|
249
|
+
specification_version: 4
|
252
250
|
summary: JDBC adapter for ActiveRecord, for use within JRuby on Rails.
|
253
251
|
test_files: []
|
254
|
-
|
252
|
+
has_rdoc:
|