jdbc-helper 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +251 -0
- data/lib/jdbc-helper.rb +1 -10
- data/lib/jdbc-helper/connection.rb +347 -351
- data/lib/jdbc-helper/connection/callable_statement.rb +56 -56
- data/lib/jdbc-helper/connection/parameterized_statement.rb +57 -46
- data/lib/jdbc-helper/connection/prepared_statement.rb +88 -88
- data/lib/jdbc-helper/connection/result_set_enumerator.rb +102 -91
- data/lib/jdbc-helper/connection/row.rb +106 -115
- data/lib/jdbc-helper/connection/statement_pool.rb +44 -44
- data/lib/jdbc-helper/connection/type_map.rb +41 -66
- data/lib/jdbc-helper/connector.rb +10 -10
- data/lib/jdbc-helper/connector/mysql_connector.rb +24 -24
- data/lib/jdbc-helper/connector/oracle_connector.rb +33 -32
- data/lib/jdbc-helper/constants.rb +20 -17
- data/lib/jdbc-helper/sql.rb +168 -175
- data/lib/jdbc-helper/wrapper/function_wrapper.rb +12 -12
- data/lib/jdbc-helper/wrapper/object_wrapper.rb +17 -17
- data/lib/jdbc-helper/wrapper/procedure_wrapper.rb +120 -123
- data/lib/jdbc-helper/wrapper/sequence_wrapper.rb +43 -43
- data/lib/jdbc-helper/wrapper/table_wrapper.rb +172 -169
- data/test/helper.rb +2 -10
- data/test/performance.rb +141 -0
- data/test/test_connection.rb +443 -389
- data/test/test_connectors.rb +47 -47
- data/test/test_object_wrapper.rb +541 -432
- data/test/test_sql.rb +143 -135
- metadata +119 -123
- data/README.rdoc +0 -223
- data/test/test_performance.rb +0 -138
data/test/test_sql.rb
CHANGED
@@ -3,145 +3,153 @@ include JDBCHelper
|
|
3
3
|
|
4
4
|
# WARNING: tests assumes ordered hash
|
5
5
|
class TestSQL < Test::Unit::TestCase
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
6
|
+
def setup
|
7
|
+
end
|
8
|
+
|
9
|
+
def teardown
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_value
|
13
|
+
assert_equal 1, SQL.value(1)
|
14
|
+
assert_equal 1.2, SQL.value(1.2)
|
15
|
+
assert_equal 9999999999999999999, SQL.value(9999999999999999999)
|
16
|
+
assert_equal "0.00000000000000000000009999999999999999999",
|
17
|
+
SQL.value(BigDecimal.new("0.00000000000000000000009999999999999999999"))
|
18
|
+
assert_equal "'sysdate'", SQL.value('sysdate')
|
19
|
+
assert_equal "'A''s'", SQL.value("A's")
|
20
|
+
assert_equal "sysdate", SQL.value(JDBCHelper::SQL('sysdate'))
|
21
|
+
|
22
|
+
assert_raise(NotImplementedError) { SQL.value(Time.now) }
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_order
|
26
|
+
assert_equal "", SQL.order()
|
27
|
+
assert_equal "", SQL.order(nil)
|
28
|
+
assert_equal "", SQL.order(nil, nil)
|
29
|
+
assert_equal "order by a", SQL.order(:a)
|
30
|
+
assert_equal "order by a", SQL.order('a')
|
31
|
+
assert_equal "order by a desc", SQL.order('a desc')
|
32
|
+
assert_equal "order by a asc", SQL.order('a asc')
|
33
|
+
assert_equal "order by a, b asc, c desc", SQL.order(:a, 'b asc', 'c desc')
|
34
|
+
|
35
|
+
assert_raise(ArgumentError) { SQL.order(" -- ") }
|
36
|
+
assert_raise(ArgumentError) { SQL.order(:a, :b, "c 'd") }
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_where
|
40
|
+
assert_equal "where a = 1", SQL.where(:a => 1)
|
41
|
+
assert_equal "where a = 1.2", SQL.where(:a => 1.2)
|
42
|
+
assert_equal "where a = 9999999999999999999", SQL.where(:a => 9999999999999999999)
|
43
|
+
assert_equal "where a >= 1 and a <= 2", SQL.where(:a => 1..2)
|
44
|
+
assert_equal "where a >= 1 and a < 2", SQL.where(:a => 1...2)
|
45
|
+
assert_equal "where a = 'A''s'", SQL.where(:a => "A's")
|
46
|
+
assert_equal "where a is null", SQL.where(:a => nil)
|
47
|
+
assert_equal "where a is not null", SQL.where(:a => SQL.not_nil)
|
48
|
+
assert_equal "where a is not null", SQL.where(:a => SQL.not_null)
|
49
|
+
assert_equal "where a = sysdate", SQL.where(:a => JDBCHelper::SQL('sysdate'))
|
50
|
+
assert_equal "where sysdate = sysdate", SQL.where(JDBCHelper::SQL('sysdate') => JDBCHelper::SQL('sysdate'))
|
51
|
+
assert_equal "where a in ('aa', 'bb', 'cc')", SQL.where(:a => %w[aa bb cc])
|
52
|
+
assert_equal "where a in ('aa', 'bb', 'cc', 4)", SQL.where(:a => %w[aa bb cc] + [4])
|
53
|
+
assert_equal "where a = 1 and b = 'A''s'", SQL.where(:a => 1, :b => "A's")
|
54
|
+
assert_equal "where (a = 1 or b = 1)", SQL.where("a = 1 or b = 1")
|
55
|
+
assert_equal "where (a = 1 or b = 1) and c = 2", SQL.where("a = 1 or b = 1", :c => 2)
|
56
|
+
assert_equal "where c = 2 and (a = 1 or b = 1)", SQL.where({:c => 2}, "a = 1 or b = 1")
|
57
|
+
assert_equal "where c = 2 and (a = 1 or b = 1) and (e = 2) and f = 3",
|
58
|
+
SQL.where({:c => 2}, "a = 1 or b = 1", nil, "", "e = 2", nil, {:f => 3}, {})
|
59
|
+
assert_equal '', SQL.where(nil)
|
60
|
+
assert_equal '', SQL.where(" ")
|
61
|
+
|
62
|
+
# Non-primitive datatypes not implemented (TODO?)
|
63
|
+
assert_raise(NotImplementedError) { SQL.where(:a => Time.now) }
|
64
|
+
|
65
|
+
# Invalid SQL detection
|
66
|
+
assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde") }
|
67
|
+
assert_raise(ArgumentError) { SQL.where(" 'a--b' ;") }
|
68
|
+
assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde", :a => 1) }
|
69
|
+
assert_raise(ArgumentError) { SQL.where(" 'a--b' -- cde", :a => 1) }
|
70
|
+
assert_raise(ArgumentError) { SQL.where({:a => 1}, "/* a") }
|
71
|
+
assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'a--b' -- cde")) }
|
72
|
+
assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'aabbb''dd")) }
|
73
|
+
assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(" 'aabbb''dd' /* aaa */")) }
|
74
|
+
assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(' aabbb""" ')) }
|
75
|
+
assert_raise(ArgumentError) { SQL.where(:a => JDBCHelper::SQL(' aab`bb`` ')) }
|
76
|
+
end
|
72
77
|
|
73
78
|
def test_where_prepared
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
79
|
+
assert_equal ["where a = ?", [1]], SQLPrepared.where(:a => 1)
|
80
|
+
assert_equal ["where a = ?", [1.2]], SQLPrepared.where(:a => 1.2)
|
81
|
+
assert_equal ["where a = ?", [9999999999999999999]], SQLPrepared.where(:a => 9999999999999999999)
|
82
|
+
assert_equal ["where a >= ? and a <= ?", [1,2]], SQLPrepared.where(:a => 1..2)
|
83
|
+
assert_equal ["where a >= ? and a < ?", [1,2]], SQLPrepared.where(:a => 1...2)
|
84
|
+
assert_equal ["where a = ?", ["A's"]], SQLPrepared.where(:a => "A's")
|
85
|
+
assert_equal ["where a is null", []], SQLPrepared.where(:a => nil)
|
86
|
+
assert_equal ["where a is not null", []], SQLPrepared.where(:a => SQL.not_nil)
|
87
|
+
assert_equal ["where a is not null", []], SQLPrepared.where(:a => SQL.not_null)
|
88
|
+
assert_equal ["where a = sysdate", []], SQLPrepared.where(:a => JDBCHelper::SQL('sysdate'))
|
89
|
+
assert_equal ["where sysdate = sysdate", []], SQLPrepared.where(JDBCHelper::SQL('sysdate') => JDBCHelper::SQL('sysdate'))
|
90
|
+
assert_equal ["where a in ('aa', 'bb', 'cc')", []], SQLPrepared.where(:a => %w[aa bb cc])
|
91
|
+
assert_equal ["where a in ('aa', 'bb', 'cc', 4)", []], SQLPrepared.where(:a => %w[aa bb cc] + [4])
|
92
|
+
assert_equal ["where a = ? and b = ?", [1, "A's"]], SQLPrepared.where(:a => 1, :b => "A's")
|
93
|
+
assert_equal ["where (a = 1 or b = 1)", []], SQLPrepared.where("a = 1 or b = 1")
|
94
|
+
assert_equal ["where (a = 1 or b = 1) and c = ?", [2]], SQLPrepared.where("a = 1 or b = 1", :c => 2)
|
95
|
+
assert_equal ["where c = ? and (a = 1 or b = 1)", [2]], SQLPrepared.where({:c => 2}, "a = 1 or b = 1")
|
96
|
+
assert_equal ["where c = ? and (a = 1 or b = 1) and (e = 2) and f = ?", [2, 3]],
|
97
|
+
SQLPrepared.where({:c => 2}, "a = 1 or b = 1", nil, "", "e = 2", nil, {:f => 3}, {})
|
98
|
+
assert_equal [nil, []], SQLPrepared.where(nil)
|
99
|
+
assert_equal [nil, []], SQLPrepared.where(" ")
|
100
|
+
end
|
101
|
+
|
102
|
+
def test_select
|
103
|
+
assert_equal "select * from a.b", SQL.select('a.b')
|
104
|
+
assert_equal "select aa, bb from a.b where a is not null",
|
105
|
+
SQL.select('a.b', :select => %w[aa bb], :where => {:a => SQL.not_nil})
|
106
|
+
assert_equal "select aa, bb from a.b where a is not null and b >= 1 and b <= 10 order by cc, dd",
|
107
|
+
SQL.select('a.b',
|
108
|
+
:select => %w[aa bb],
|
109
|
+
:where => {:a => SQL.not_null, :b => (1..10)},
|
110
|
+
:order => %w[cc dd]
|
111
|
+
)
|
112
|
+
end
|
113
|
+
|
114
|
+
def test_count
|
115
|
+
assert_equal "select count(*) from a.b", SQL.count('a.b')
|
116
|
+
assert_equal "select count(*) from a.b where a is not null", SQL.count('a.b', :a => SQL.not_nil)
|
117
|
+
|
118
|
+
assert_equal ["select count(*) from a.b", []], SQLPrepared.count('a.b')
|
119
|
+
assert_equal ["select count(*) from a.b where a = ?", [1]], SQLPrepared.count('a.b', :a => 1)
|
120
|
+
end
|
121
|
+
|
122
|
+
def test_delete
|
123
|
+
assert_equal "delete from a.b", SQL.delete('a.b')
|
124
|
+
assert_equal "delete from a.b where a is not null", SQL.delete('a.b', :a => SQL.not_nil)
|
125
|
+
|
126
|
+
assert_equal ["delete from a.b", []], SQLPrepared.delete('a.b')
|
127
|
+
assert_equal ["delete from a.b where a = ?", [1]], SQLPrepared.delete('a.b', :a => 1)
|
128
|
+
end
|
129
|
+
|
130
|
+
def test_update
|
131
|
+
assert_equal "update a.b set a = 1, b = 'A''s', c = now()",
|
132
|
+
SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
|
133
|
+
|
134
|
+
assert_equal "update a.b set a = 1, b = 'A''s', c = now() where a is not null",
|
135
|
+
SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => SQL.not_nil })
|
136
|
+
|
137
|
+
assert_equal ["update a.b set a = ?, b = ?, c = now()", [1, "A's"]],
|
138
|
+
SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
|
139
|
+
|
140
|
+
assert_equal ["update a.b set a = ?, b = ?, c = now() where a = ?", [1, "A's", 2]],
|
141
|
+
SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => 2 })
|
94
142
|
end
|
95
143
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
)
|
106
|
-
end
|
107
|
-
|
108
|
-
def test_count
|
109
|
-
assert_equal "select count(*) from a.b", SQL.count('a.b')
|
110
|
-
assert_equal "select count(*) from a.b where a is not null", SQL.count('a.b', :a => SQL.not_nil)
|
111
|
-
|
112
|
-
assert_equal ["select count(*) from a.b", []], SQLPrepared.count('a.b')
|
113
|
-
assert_equal ["select count(*) from a.b where a = ?", [1]], SQLPrepared.count('a.b', :a => 1)
|
114
|
-
end
|
115
|
-
|
116
|
-
def test_delete
|
117
|
-
assert_equal "delete from a.b", SQL.delete('a.b')
|
118
|
-
assert_equal "delete from a.b where a is not null", SQL.delete('a.b', :a => SQL.not_nil)
|
119
|
-
|
120
|
-
assert_equal ["delete from a.b", []], SQLPrepared.delete('a.b')
|
121
|
-
assert_equal ["delete from a.b where a = ?", [1]], SQLPrepared.delete('a.b', :a => 1)
|
122
|
-
end
|
123
|
-
|
124
|
-
def test_update
|
125
|
-
assert_equal "update a.b set a = 1, b = 'A''s', c = now()",
|
126
|
-
SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
|
127
|
-
|
128
|
-
assert_equal "update a.b set a = 1, b = 'A''s', c = now() where a is not null",
|
129
|
-
SQL.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => SQL.not_nil })
|
130
|
-
|
131
|
-
assert_equal ["update a.b set a = ?, b = ?, c = now()", [1, "A's"]],
|
132
|
-
SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, {})
|
133
|
-
|
134
|
-
assert_equal ["update a.b set a = ?, b = ?, c = now() where a = ?", [1, "A's", 2]],
|
135
|
-
SQLPrepared.update('a.b', {:a => 1, :b => "A's", :c => JDBCHelper::SQL('now()')}, { :a => 2 })
|
136
|
-
end
|
137
|
-
|
138
|
-
def test_insert
|
139
|
-
assert_equal "insert into a.b (a, b, c) values (1, 'A''s', null)",
|
140
|
-
SQL.insert('a.b', :a => 1, :b => "A's", :c => nil)
|
141
|
-
|
142
|
-
assert_equal ["insert into a.b (a, b, c) values (?, ?, ?)", [1, "A's", nil]],
|
143
|
-
SQLPrepared.insert('a.b', :a => 1, :b => "A's", :c => nil)
|
144
|
-
end
|
144
|
+
def test_insert
|
145
|
+
{'insert' => :insert, 'insert ignore' => :insert_ignore, 'replace' => :replace}.each do |op, met|
|
146
|
+
assert_equal "#{op} into a.b (a, b, c) values (1, 'A''s', null)",
|
147
|
+
SQL.send(met, 'a.b', :a => 1, :b => "A's", :c => nil)
|
148
|
+
|
149
|
+
assert_equal ["#{op} into a.b (a, b, c) values (?, ?, ?)", [1, "A's", nil]],
|
150
|
+
SQLPrepared.send(met, 'a.b', :a => 1, :b => "A's", :c => nil)
|
151
|
+
end
|
152
|
+
end
|
145
153
|
|
146
154
|
def test_sql_equality
|
147
155
|
assert_equal "a = b", JDBCHelper.SQL('a = b').to_s
|
metadata
CHANGED
@@ -1,143 +1,139 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jdbc-helper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.1
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.6.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- Junegunn Choi
|
7
|
+
authors:
|
8
|
+
- Junegunn Choi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
requirement: &2152935120 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '0'
|
66
|
-
type: :development
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *2152935120
|
12
|
+
|
13
|
+
date: 2011-09-05 00:00:00 +09:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: bundler
|
18
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.0.0
|
24
|
+
requirement: *id001
|
25
|
+
prerelease: false
|
26
|
+
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jeweler
|
29
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.5.2
|
35
|
+
requirement: *id002
|
36
|
+
prerelease: false
|
37
|
+
type: :development
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rcov
|
40
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
requirement: *id003
|
47
|
+
prerelease: false
|
48
|
+
type: :development
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: test-unit
|
51
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.3.0
|
57
|
+
requirement: *id004
|
58
|
+
prerelease: false
|
59
|
+
type: :development
|
69
60
|
description: A JDBC helper for JRuby/Database developers.
|
70
61
|
email: junegunn.c@gmail.com
|
71
62
|
executables: []
|
63
|
+
|
72
64
|
extensions: []
|
73
|
-
|
74
|
-
|
75
|
-
-
|
76
|
-
|
77
|
-
|
78
|
-
- lib/jdbc-helper
|
79
|
-
- lib/jdbc-helper/connection
|
80
|
-
- lib/jdbc-helper/connection/
|
81
|
-
- lib/jdbc-helper/connection/
|
82
|
-
- lib/jdbc-helper/connection/
|
83
|
-
- lib/jdbc-helper/connection/
|
84
|
-
- lib/jdbc-helper/connection/
|
85
|
-
- lib/jdbc-helper/connection/
|
86
|
-
- lib/jdbc-helper/
|
87
|
-
- lib/jdbc-helper/connector
|
88
|
-
- lib/jdbc-helper/connector/
|
89
|
-
- lib/jdbc-helper/
|
90
|
-
- lib/jdbc-helper/
|
91
|
-
- lib/jdbc-helper/
|
92
|
-
- lib/jdbc-helper/
|
93
|
-
- lib/jdbc-helper/wrapper/
|
94
|
-
- lib/jdbc-helper/wrapper/
|
95
|
-
- lib/jdbc-helper/wrapper/
|
96
|
-
- lib/jdbc-helper/wrapper/
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
- test/database.yml
|
101
|
-
- test/
|
102
|
-
- test/
|
103
|
-
- test/
|
104
|
-
- test/
|
105
|
-
- test/
|
106
|
-
- test/
|
65
|
+
|
66
|
+
extra_rdoc_files:
|
67
|
+
- LICENSE.txt
|
68
|
+
- README.markdown
|
69
|
+
files:
|
70
|
+
- lib/jdbc-helper.rb
|
71
|
+
- lib/jdbc-helper/connection.rb
|
72
|
+
- lib/jdbc-helper/connection/callable_statement.rb
|
73
|
+
- lib/jdbc-helper/connection/parameterized_statement.rb
|
74
|
+
- lib/jdbc-helper/connection/prepared_statement.rb
|
75
|
+
- lib/jdbc-helper/connection/result_set_enumerator.rb
|
76
|
+
- lib/jdbc-helper/connection/row.rb
|
77
|
+
- lib/jdbc-helper/connection/statement_pool.rb
|
78
|
+
- lib/jdbc-helper/connection/type_map.rb
|
79
|
+
- lib/jdbc-helper/connector.rb
|
80
|
+
- lib/jdbc-helper/connector/mysql_connector.rb
|
81
|
+
- lib/jdbc-helper/connector/oracle_connector.rb
|
82
|
+
- lib/jdbc-helper/constants.rb
|
83
|
+
- lib/jdbc-helper/sql.rb
|
84
|
+
- lib/jdbc-helper/sql_prepared.rb
|
85
|
+
- lib/jdbc-helper/wrapper/function_wrapper.rb
|
86
|
+
- lib/jdbc-helper/wrapper/object_wrapper.rb
|
87
|
+
- lib/jdbc-helper/wrapper/procedure_wrapper.rb
|
88
|
+
- lib/jdbc-helper/wrapper/sequence_wrapper.rb
|
89
|
+
- lib/jdbc-helper/wrapper/table_wrapper.rb
|
90
|
+
- LICENSE.txt
|
91
|
+
- README.markdown
|
92
|
+
- test/database.yml
|
93
|
+
- test/database.yml.org
|
94
|
+
- test/helper.rb
|
95
|
+
- test/performance.rb
|
96
|
+
- test/test_connection.rb
|
97
|
+
- test/test_connectors.rb
|
98
|
+
- test/test_object_wrapper.rb
|
99
|
+
- test/test_sql.rb
|
100
|
+
has_rdoc: true
|
107
101
|
homepage: http://github.com/junegunn/jdbc-helper
|
108
|
-
licenses:
|
109
|
-
- MIT
|
102
|
+
licenses:
|
103
|
+
- MIT
|
110
104
|
post_install_message:
|
111
105
|
rdoc_options: []
|
112
|
-
|
113
|
-
|
114
|
-
|
106
|
+
|
107
|
+
require_paths:
|
108
|
+
- lib
|
109
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
110
|
none: false
|
116
|
-
requirements:
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
hash: 2
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
version: "0"
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
119
|
none: false
|
125
|
-
requirements:
|
126
|
-
|
127
|
-
|
128
|
-
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
129
124
|
requirements: []
|
125
|
+
|
130
126
|
rubyforge_project:
|
131
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.5.1
|
132
128
|
signing_key:
|
133
129
|
specification_version: 3
|
134
130
|
summary: A JDBC helper for JRuby/Database developers.
|
135
|
-
test_files:
|
136
|
-
- test/database.yml
|
137
|
-
- test/database.yml.org
|
138
|
-
- test/helper.rb
|
139
|
-
- test/
|
140
|
-
- test/
|
141
|
-
- test/
|
142
|
-
- test/
|
143
|
-
- test/test_sql.rb
|
131
|
+
test_files:
|
132
|
+
- test/database.yml
|
133
|
+
- test/database.yml.org
|
134
|
+
- test/helper.rb
|
135
|
+
- test/performance.rb
|
136
|
+
- test/test_connection.rb
|
137
|
+
- test/test_connectors.rb
|
138
|
+
- test/test_object_wrapper.rb
|
139
|
+
- test/test_sql.rb
|