simpleOracleJDBC 0.2.0 → 0.3.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/README.md +175 -1
- data/lib/simple_oracle_jdbc.rb +8 -0
- data/lib/simple_oracle_jdbc/bindings.rb +26 -42
- data/lib/simple_oracle_jdbc/db_call.rb +2 -0
- data/lib/simple_oracle_jdbc/ora_array.rb +133 -0
- data/lib/simple_oracle_jdbc/ora_record.rb +139 -0
- data/lib/simple_oracle_jdbc/sql.rb +9 -8
- data/lib/simple_oracle_jdbc/type_map.rb +99 -0
- data/test/README +165 -0
- data/test/binding_test.rb +21 -2
- data/test/helper.rb +3 -2
- data/test/ora_array_test.rb +257 -0
- data/test/ora_record_test.rb +55 -0
- data/test/sql_test.rb +4 -6
- metadata +63 -59
data/test/binding_test.rb
CHANGED
@@ -6,7 +6,7 @@ class BindingTest < Test::Unit::TestCase
|
|
6
6
|
|
7
7
|
def setup
|
8
8
|
@interface = @@interface
|
9
|
-
@sql = SimpleOracleJDBC::Sql.new
|
9
|
+
@sql = SimpleOracleJDBC::Sql.new(@interface.connection)
|
10
10
|
end
|
11
11
|
|
12
12
|
def teardown
|
@@ -42,7 +42,7 @@ class BindingTest < Test::Unit::TestCase
|
|
42
42
|
call = @interface.prepare_proc("begin
|
43
43
|
:l_date := :i_date;
|
44
44
|
end;")
|
45
|
-
t = Time.
|
45
|
+
t = Time.gm(2013,1,1,12,34,23)
|
46
46
|
call.execute([Time, nil, :out], t)
|
47
47
|
assert_equal(t, call[1])
|
48
48
|
assert(call[1].is_a? Time)
|
@@ -250,6 +250,25 @@ class BindingTest < Test::Unit::TestCase
|
|
250
250
|
assert_equal(results[0][0], nil)
|
251
251
|
end
|
252
252
|
|
253
|
+
def test_array_can_be_bound_to_sql
|
254
|
+
sql = @interface.execute_sql("select * from table(:b_tab)", SimpleOracleJDBC::OraArray.new('t_varchar2_tab', ['abc', 'def']))
|
255
|
+
results = sql.all_array
|
256
|
+
assert_equal(2, results.length)
|
257
|
+
assert_equal('abc', results[0][0])
|
258
|
+
assert_equal('def', results[1][0])
|
259
|
+
end
|
260
|
+
|
261
|
+
def test_array_of_records_can_be_bound_to_sql
|
262
|
+
sql = @interface.execute_sql("select * from table(:b_tab)",
|
263
|
+
SimpleOracleJDBC::OraArray.new('t_record_tab', [
|
264
|
+
["S1", nil, nil, nil, nil, nil, nil],
|
265
|
+
["S2", nil, nil, nil, nil, nil, nil] ]))
|
266
|
+
results = sql.all_array
|
267
|
+
assert_equal(2, results.length)
|
268
|
+
assert_equal('S1', results[0][0])
|
269
|
+
assert_equal('S2', results[1][0])
|
270
|
+
assert_equal(nil, results[1][1])
|
271
|
+
end
|
253
272
|
|
254
273
|
def test_unknown_data_type_from_sql_raises_exeception
|
255
274
|
sql = @interface.execute_sql("select cast('hello there' as nvarchar2(1000)) from dual")
|
data/test/helper.rb
CHANGED
@@ -4,12 +4,13 @@ $:.unshift File.expand_path(File.dirname(__FILE__))
|
|
4
4
|
require 'simple_oracle_jdbc'
|
5
5
|
require 'test/unit'
|
6
6
|
|
7
|
+
|
7
8
|
module TestHelper
|
8
9
|
|
9
10
|
DB_USER = 'sodonnel'
|
10
|
-
DB_PASSWORD = '
|
11
|
+
DB_PASSWORD = 'sodonnel'
|
11
12
|
DB_SERVICE = 'local11gr2.world'
|
12
|
-
DB_HOST = '
|
13
|
+
DB_HOST = '192.168.56.1'
|
13
14
|
DB_PORT = '1521'
|
14
15
|
|
15
16
|
@@interface ||= SimpleOracleJDBC::Interface.create(DB_USER,
|
@@ -0,0 +1,257 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class OraArrayTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
include TestHelper
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@interface = @@interface
|
9
|
+
@sql = SimpleOracleJDBC::Sql.new(@interface.connection)
|
10
|
+
end
|
11
|
+
|
12
|
+
def teardown
|
13
|
+
@sql.close
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_oracle_varchar_array_can_be_bound_and_retrieved
|
17
|
+
call = @interface.prepare_proc("begin
|
18
|
+
:out_value := test_array_varchar(:i_array);
|
19
|
+
end;")
|
20
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_varchar2_tab', nil), :out],
|
21
|
+
SimpleOracleJDBC::OraArray.new('t_varchar2_tab', ['abc', 'def', nil]))
|
22
|
+
return_array = call[1]
|
23
|
+
assert_equal('abc', return_array[0])
|
24
|
+
assert_equal('def', return_array[1])
|
25
|
+
assert_equal(nil, return_array[2])
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_nil_varchar_array_can_be_bound_and_retrieved
|
29
|
+
call = @interface.prepare_proc("begin
|
30
|
+
:out_value := test_array_varchar(:i_array);
|
31
|
+
end;")
|
32
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_varchar2_tab', nil), :out],
|
33
|
+
SimpleOracleJDBC::OraArray.new('t_varchar2_tab', []))
|
34
|
+
return_array = call[1]
|
35
|
+
assert_equal(0, return_array.length)
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_oracle_char_array_can_be_bound_and_retrieved
|
39
|
+
call = @interface.prepare_proc("begin
|
40
|
+
:out_value := test_array_char(:i_array);
|
41
|
+
end;")
|
42
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_char_tab', nil), :out],
|
43
|
+
SimpleOracleJDBC::OraArray.new('t_char_tab', ['abc', 'def', nil]))
|
44
|
+
return_array = call[1]
|
45
|
+
# chars are right padded. In this case to 100 characters
|
46
|
+
assert_match(/abc\s+/, return_array[0])
|
47
|
+
assert_match(/def\s+/, return_array[1])
|
48
|
+
assert_equal(100, return_array[0].length)
|
49
|
+
assert_equal(nil, return_array[2])
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_nil_char_array_can_be_bound_and_retrieved
|
53
|
+
call = @interface.prepare_proc("begin
|
54
|
+
:out_value := test_array_char(:i_array);
|
55
|
+
end;")
|
56
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_char_tab', nil), :out],
|
57
|
+
SimpleOracleJDBC::OraArray.new('t_char_tab', []))
|
58
|
+
return_array = call[1]
|
59
|
+
assert_equal(0, return_array.length)
|
60
|
+
end
|
61
|
+
|
62
|
+
|
63
|
+
def test_nil_varchar_array_can_be_bound_and_retrieved_when_passed_as_nil
|
64
|
+
call = @interface.prepare_proc("begin
|
65
|
+
:out_value := test_array_varchar(:i_array);
|
66
|
+
end;")
|
67
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_varchar2_tab', nil), :out],
|
68
|
+
SimpleOracleJDBC::OraArray.new('t_varchar2_tab', nil))
|
69
|
+
return_array = call[1]
|
70
|
+
assert_equal(0, return_array.length)
|
71
|
+
end
|
72
|
+
|
73
|
+
def test_oracle_integer_array_can_be_bound_and_retrieved
|
74
|
+
call = @interface.prepare_proc("begin
|
75
|
+
:out_value := test_array_integer(:i_array);
|
76
|
+
end;")
|
77
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_integer_tab', nil), :out],
|
78
|
+
SimpleOracleJDBC::OraArray.new('t_integer_tab', [9, 10, nil]))
|
79
|
+
return_array = call[1]
|
80
|
+
assert_equal(9, return_array[0])
|
81
|
+
assert_equal(10, return_array[1])
|
82
|
+
assert_equal(nil, return_array[2])
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_nil_order_integer_array_can_be_bound_and_retrieved
|
86
|
+
call = @interface.prepare_proc("begin
|
87
|
+
:out_value := test_array_integer(:i_array);
|
88
|
+
end;")
|
89
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_integer_tab', nil), :out],
|
90
|
+
SimpleOracleJDBC::OraArray.new('t_integer_tab', []))
|
91
|
+
return_array = call[1]
|
92
|
+
assert_equal(0, return_array.length)
|
93
|
+
end
|
94
|
+
|
95
|
+
def test_oracle_number_array_can_be_bound_and_retrieved
|
96
|
+
call = @interface.prepare_proc("begin
|
97
|
+
:out_value := test_array_number(:i_array);
|
98
|
+
end;")
|
99
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_number_tab', nil), :out],
|
100
|
+
SimpleOracleJDBC::OraArray.new('t_number_tab', [9.123456, 10.123456, nil]))
|
101
|
+
return_array = call[1]
|
102
|
+
assert_equal(9.123456, return_array[0])
|
103
|
+
assert_equal(10.123456, return_array[1])
|
104
|
+
assert_equal(nil, return_array[2])
|
105
|
+
end
|
106
|
+
|
107
|
+
def test_nil_oracle_number_array_can_be_bound_and_retrieved
|
108
|
+
call = @interface.prepare_proc("begin
|
109
|
+
:out_value := test_array_number(:i_array);
|
110
|
+
end;")
|
111
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_number_tab', nil), :out],
|
112
|
+
SimpleOracleJDBC::OraArray.new('t_number_tab', []))
|
113
|
+
return_array = call[1]
|
114
|
+
assert_equal(0, return_array.length)
|
115
|
+
end
|
116
|
+
|
117
|
+
|
118
|
+
def test_oracle_date_array_can_be_bound_and_retrieved
|
119
|
+
call = @interface.prepare_proc("begin
|
120
|
+
:out_value := test_array_date(:i_array);
|
121
|
+
end;")
|
122
|
+
date_array = [Time.gm(2013,1,1,12,31), Time.gm(2014,1,1,12,31), nil]
|
123
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_date_tab', nil), :out],
|
124
|
+
SimpleOracleJDBC::OraArray.new('t_date_tab', date_array))
|
125
|
+
return_array = call[1]
|
126
|
+
assert_equal(date_array[0], return_array[0])
|
127
|
+
assert_equal(date_array[1], return_array[1])
|
128
|
+
assert_equal(nil, return_array[2])
|
129
|
+
end
|
130
|
+
|
131
|
+
def test_nil_oracle_date_array_can_be_bound_and_retrieved
|
132
|
+
call = @interface.prepare_proc("begin
|
133
|
+
:out_value := test_array_date(:i_array);
|
134
|
+
end;")
|
135
|
+
date_array = []
|
136
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_date_tab', nil), :out],
|
137
|
+
SimpleOracleJDBC::OraArray.new('t_date_tab', date_array))
|
138
|
+
return_array = call[1]
|
139
|
+
assert_equal(0, return_array.length)
|
140
|
+
end
|
141
|
+
|
142
|
+
def test_oracle_timestamp_array_can_be_bound_and_retrieved
|
143
|
+
call = @interface.prepare_proc("begin
|
144
|
+
:out_value := test_array_timestamp(:i_array);
|
145
|
+
end;")
|
146
|
+
date_array = [Time.gm(2013,1,1,12,31), Time.gm(2014,1,1,12,31), nil]
|
147
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_timestamp_tab', nil), :out],
|
148
|
+
SimpleOracleJDBC::OraArray.new('t_timestamp_tab', date_array))
|
149
|
+
return_array = call[1]
|
150
|
+
assert_equal(date_array[0], return_array[0])
|
151
|
+
assert_equal(date_array[1], return_array[1])
|
152
|
+
assert_equal(nil, return_array[2])
|
153
|
+
end
|
154
|
+
|
155
|
+
def test_nil_oracle_timestamp_array_can_be_bound_and_retrieved
|
156
|
+
call = @interface.prepare_proc("begin
|
157
|
+
:out_value := test_array_timestamp(:i_array);
|
158
|
+
end;")
|
159
|
+
date_array = []
|
160
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_timestamp_tab', nil), :out],
|
161
|
+
SimpleOracleJDBC::OraArray.new('t_timestamp_tab', date_array))
|
162
|
+
return_array = call[1]
|
163
|
+
assert_equal(0, return_array.length)
|
164
|
+
end
|
165
|
+
|
166
|
+
|
167
|
+
def test_oracle_raw_array_can_be_bound_and_retrieved
|
168
|
+
call = @interface.prepare_proc("begin
|
169
|
+
:out_value := test_array_raw(:i_array);
|
170
|
+
end;")
|
171
|
+
|
172
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_raw_tab', nil), :out],
|
173
|
+
SimpleOracleJDBC::OraArray.new('t_raw_tab', ['ADEADEADE', '3E3E3E', nil]))
|
174
|
+
return_array = call[1]
|
175
|
+
assert_equal('0ADEADEADE', return_array[0]) # uneven number of bytes left padded with zero
|
176
|
+
assert_equal('3E3E3E', return_array[1])
|
177
|
+
assert_equal(nil, return_array[2])
|
178
|
+
end
|
179
|
+
|
180
|
+
def test_nil_oracle_raw_array_can_be_bound_and_retrieved
|
181
|
+
call = @interface.prepare_proc("begin
|
182
|
+
:out_value := test_array_raw(:i_array);
|
183
|
+
end;")
|
184
|
+
date_array = []
|
185
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_raw_tab', nil), :out],
|
186
|
+
SimpleOracleJDBC::OraArray.new('t_raw_tab', date_array))
|
187
|
+
return_array = call[1]
|
188
|
+
assert_equal(0, return_array.length)
|
189
|
+
end
|
190
|
+
|
191
|
+
def test_ora_array_object_can_be_reused_with_different_values
|
192
|
+
call = @interface.prepare_proc("begin
|
193
|
+
:out_value := test_array_raw(:i_array);
|
194
|
+
end;")
|
195
|
+
data_array = ['DEDEDE', 'ABABAB']
|
196
|
+
input_array_obj = SimpleOracleJDBC::OraArray.new('t_raw_tab', data_array)
|
197
|
+
output_array_obj = SimpleOracleJDBC::OraArray.new('t_raw_tab', nil)
|
198
|
+
call.execute([SimpleOracleJDBC::OraArray, output_array_obj, :out], input_array_obj)
|
199
|
+
return_array = call[1]
|
200
|
+
assert_equal(2, return_array.length)
|
201
|
+
|
202
|
+
input_array_obj.values= ["121212", "AADDAADD", "01"]
|
203
|
+
call.execute([SimpleOracleJDBC::OraArray, output_array_obj, :out], input_array_obj)
|
204
|
+
return_array = call[1]
|
205
|
+
assert_equal(3, return_array.length)
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_exception_raised_if_values_passed_is_not_array
|
209
|
+
assert_raises RuntimeError do
|
210
|
+
input_array_obj = SimpleOracleJDBC::OraArray.new('t_raw_tab', 'string')
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
def test_ora_array_of_records_can_be_bound_and_retrieved
|
215
|
+
call = @interface.prepare_proc("begin
|
216
|
+
:out_value := test_array_of_records(:i_array);
|
217
|
+
end;")
|
218
|
+
record = ["The String", 123, 456.789, 'THE CHAR', Time.gm(2013,11,23), Time.gm(2013,12,23,12,24,36), 'ED12ED12']
|
219
|
+
record2 = record.dup
|
220
|
+
record2[0] = "String2"
|
221
|
+
|
222
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_record_tab', nil), :out],
|
223
|
+
SimpleOracleJDBC::OraArray.new('t_record_tab', [ record, record2 ]))
|
224
|
+
return_array = call[1]
|
225
|
+
assert_equal(2, return_array.length)
|
226
|
+
assert_equal("The String", return_array.first[0])
|
227
|
+
assert_equal(123, return_array.first[1])
|
228
|
+
assert_equal(456.789, return_array.first[2])
|
229
|
+
|
230
|
+
assert_equal("String2", return_array[1][0])
|
231
|
+
end
|
232
|
+
|
233
|
+
def test_empty_ora_array_of_records_can_be_bound_and_retrieved
|
234
|
+
call = @interface.prepare_proc("begin
|
235
|
+
:out_value := test_array_of_records(:i_array);
|
236
|
+
end;")
|
237
|
+
|
238
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_record_tab', nil), :out],
|
239
|
+
SimpleOracleJDBC::OraArray.new('t_record_tab', nil))
|
240
|
+
return_array = call[1]
|
241
|
+
assert_equal(0, return_array.length)
|
242
|
+
end
|
243
|
+
|
244
|
+
def test_ora_array_of_nil_records_can_be_bound_and_retrieved
|
245
|
+
call = @interface.prepare_proc("begin
|
246
|
+
:out_value := test_array_of_records(:i_array);
|
247
|
+
end;")
|
248
|
+
record = [nil, nil, nil, nil, nil, nil, nil]
|
249
|
+
|
250
|
+
call.execute([SimpleOracleJDBC::OraArray, SimpleOracleJDBC::OraArray.new('t_record_tab', nil), :out],
|
251
|
+
SimpleOracleJDBC::OraArray.new('t_record_tab', [ record ]))
|
252
|
+
return_array = call[1]
|
253
|
+
assert_equal(1, return_array.length)
|
254
|
+
assert_equal(nil, return_array.first[0])
|
255
|
+
end
|
256
|
+
|
257
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class OraRecordTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
include TestHelper
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@interface = @@interface
|
9
|
+
@sql = SimpleOracleJDBC::Sql.new(@interface.connection)
|
10
|
+
@call = @interface.prepare_proc("begin
|
11
|
+
:out_record := test_record(:i_record);
|
12
|
+
end;")
|
13
|
+
end
|
14
|
+
|
15
|
+
def teardown
|
16
|
+
@sql.close
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_execption_raised_when_not_enough_values_for_record
|
20
|
+
record = ["hello"]
|
21
|
+
assert_raises RuntimeError do
|
22
|
+
@call.execute([SimpleOracleJDBC::OraRecord, SimpleOracleJDBC::OraRecord.new('t_record', nil), :out],
|
23
|
+
SimpleOracleJDBC::OraRecord.new('t_record', record))
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_oracle_record_can_be_bound_and_retrieved
|
28
|
+
record = ["The String", 123, 456.789, 'THE CHAR', Time.gm(2013,11,23), Time.gm(2013,12,23,12,24,36), 'ED12ED12']
|
29
|
+
@call.execute([SimpleOracleJDBC::OraRecord, SimpleOracleJDBC::OraRecord.new('t_record', nil), :out],
|
30
|
+
SimpleOracleJDBC::OraRecord.new('t_record', record))
|
31
|
+
return_array = @call[1]
|
32
|
+
assert_equal(record[0], return_array[0])
|
33
|
+
assert_equal(record[1], return_array[1])
|
34
|
+
assert_equal(record[2], return_array[2])
|
35
|
+
assert_equal(record[3], return_array[3])
|
36
|
+
assert_equal(record[4], return_array[4])
|
37
|
+
assert_equal(record[5], return_array[5])
|
38
|
+
assert_equal(record[6], return_array[6])
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_oracle_record_can_be_bound_and_retrieved_will_all_null_values
|
42
|
+
record = [nil, nil, nil, nil, nil, nil, nil]
|
43
|
+
@call.execute([SimpleOracleJDBC::OraRecord, SimpleOracleJDBC::OraRecord.new('t_record', nil), :out],
|
44
|
+
SimpleOracleJDBC::OraRecord.new('t_record', record))
|
45
|
+
return_array = @call[1]
|
46
|
+
assert_equal(record[0], return_array[0])
|
47
|
+
assert_equal(record[1], return_array[1])
|
48
|
+
assert_equal(record[2], return_array[2])
|
49
|
+
assert_equal(record[3], return_array[3])
|
50
|
+
assert_equal(record[4], return_array[4])
|
51
|
+
assert_equal(record[5], return_array[5])
|
52
|
+
assert_equal(record[6], return_array[6])
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
data/test/sql_test.rb
CHANGED
@@ -6,7 +6,7 @@ class SqlTest < Test::Unit::TestCase
|
|
6
6
|
|
7
7
|
def setup
|
8
8
|
@interface = @@interface
|
9
|
-
@sql = SimpleOracleJDBC::Sql.new
|
9
|
+
@sql = SimpleOracleJDBC::Sql.new(@interface.connection)
|
10
10
|
end
|
11
11
|
|
12
12
|
def teardown
|
@@ -34,9 +34,8 @@ class SqlTest < Test::Unit::TestCase
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def test_prepare_method_available_and_returns_self
|
37
|
-
|
38
|
-
prepared
|
39
|
-
assert_equal(prepared, sql_obj)
|
37
|
+
prepared = @sql.prepare('select * from dual')
|
38
|
+
assert_equal(prepared, @sql)
|
40
39
|
end
|
41
40
|
|
42
41
|
def test_execute_method_avaliable_and_returns_self
|
@@ -57,9 +56,8 @@ class SqlTest < Test::Unit::TestCase
|
|
57
56
|
end
|
58
57
|
|
59
58
|
def test_close_does_not_error_when_no_statement
|
60
|
-
sql_obj = SimpleOracleJDBC::Sql.new
|
61
59
|
assert_nothing_raised do
|
62
|
-
|
60
|
+
@sql.close
|
63
61
|
end
|
64
62
|
end
|
65
63
|
|
metadata
CHANGED
@@ -1,78 +1,82 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpleOracleJDBC
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Stephen O'Donnell
|
9
|
-
autorequire:
|
13
|
+
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2013-09-17 00:00:00 +01:00
|
18
|
+
default_executable:
|
13
19
|
dependencies: []
|
20
|
+
|
14
21
|
description: A lightweight wrapper around the JDBC interface to make it easier to make SQL and stored procedure calls.
|
15
22
|
email: stephen@betteratoracle.com
|
16
23
|
executables: []
|
24
|
+
|
17
25
|
extensions: []
|
18
|
-
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
19
28
|
- README.md
|
20
|
-
files:
|
21
|
-
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
-
|
28
|
-
|
29
|
-
-
|
30
|
-
|
31
|
-
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
-
|
36
|
-
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
-
|
41
|
-
-
|
42
|
-
|
43
|
-
- !binary |-
|
44
|
-
bGliL3NpbXBsZV9vcmFjbGVfamRiYy9yZXN1bHRfc2V0LnJi
|
45
|
-
- !binary |-
|
46
|
-
bGliL3NpbXBsZV9vcmFjbGVfamRiYy9zcWwucmI=
|
47
|
-
- !binary |-
|
48
|
-
UmFrZWZpbGUucmI=
|
49
|
-
- !binary |-
|
50
|
-
UkVBRE1FLm1k
|
29
|
+
files:
|
30
|
+
- test/binding_test.rb
|
31
|
+
- test/db_call_test.rb
|
32
|
+
- test/helper.rb
|
33
|
+
- test/interface_test.rb
|
34
|
+
- test/ora_array_test.rb
|
35
|
+
- test/ora_record_test.rb
|
36
|
+
- test/README
|
37
|
+
- test/result_set_test.rb
|
38
|
+
- test/sql_test.rb
|
39
|
+
- test/test_runner.rb
|
40
|
+
- lib/simple_oracle_jdbc/bindings.rb
|
41
|
+
- lib/simple_oracle_jdbc/db_call.rb
|
42
|
+
- lib/simple_oracle_jdbc/interface.rb
|
43
|
+
- lib/simple_oracle_jdbc/ora_array.rb
|
44
|
+
- lib/simple_oracle_jdbc/ora_record.rb
|
45
|
+
- lib/simple_oracle_jdbc/result_set.rb
|
46
|
+
- lib/simple_oracle_jdbc/sql.rb
|
47
|
+
- lib/simple_oracle_jdbc/type_map.rb
|
48
|
+
- lib/simple_oracle_jdbc.rb
|
49
|
+
- Rakefile.rb
|
50
|
+
- README.md
|
51
|
+
has_rdoc: true
|
51
52
|
homepage: http://betteratoracle.com
|
52
53
|
licenses: []
|
53
|
-
|
54
|
+
|
55
|
+
post_install_message:
|
54
56
|
rdoc_options: []
|
55
|
-
|
57
|
+
|
58
|
+
require_paths:
|
56
59
|
- lib
|
57
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
segments:
|
65
|
+
- 0
|
66
|
+
version: "0"
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
71
74
|
requirements: []
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
+
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 1.3.6
|
78
|
+
signing_key:
|
75
79
|
specification_version: 3
|
76
80
|
summary: A gem to simplify JDBC database access to Oracle when using JRuby
|
77
81
|
test_files: []
|
78
|
-
|
82
|
+
|