marjoree 0.0.1

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.
Files changed (88) hide show
  1. data/README +50 -0
  2. data/examples/contains_example.rb +23 -0
  3. data/examples/count_and_insert_example.rb +20 -0
  4. data/examples/select_example.rb +27 -0
  5. data/html/classes/ExpectedResultSet.html +220 -0
  6. data/html/classes/ExpectedResultSet.src/M000001.html +18 -0
  7. data/html/classes/ExpectedResultSet.src/M000002.html +18 -0
  8. data/html/classes/ExpectedResultSet.src/M000003.html +18 -0
  9. data/html/classes/ExpectedResultSet.src/M000004.html +18 -0
  10. data/html/classes/Marjoree.html +568 -0
  11. data/html/classes/Marjoree.src/M000022.html +19 -0
  12. data/html/classes/Marjoree.src/M000023.html +20 -0
  13. data/html/classes/Marjoree.src/M000024.html +22 -0
  14. data/html/classes/Marjoree.src/M000025.html +18 -0
  15. data/html/classes/Marjoree.src/M000026.html +20 -0
  16. data/html/classes/Marjoree.src/M000027.html +18 -0
  17. data/html/classes/Marjoree.src/M000028.html +18 -0
  18. data/html/classes/Marjoree.src/M000029.html +21 -0
  19. data/html/classes/Marjoree.src/M000030.html +20 -0
  20. data/html/classes/Marjoree.src/M000031.html +19 -0
  21. data/html/classes/Marjoree.src/M000032.html +18 -0
  22. data/html/classes/Marjoree.src/M000033.html +18 -0
  23. data/html/classes/Marjoree.src/M000034.html +19 -0
  24. data/html/classes/Marjoree.src/M000035.html +21 -0
  25. data/html/classes/Marjoree.src/M000036.html +26 -0
  26. data/html/classes/Marjoree.src/M000037.html +22 -0
  27. data/html/classes/Marjoree.src/M000038.html +23 -0
  28. data/html/classes/Marjoree.src/M000039.html +24 -0
  29. data/html/classes/Marjoree.src/M000040.html +18 -0
  30. data/html/classes/Marjoree.src/M000041.html +18 -0
  31. data/html/classes/Marjoree.src/M000042.html +25 -0
  32. data/html/classes/ODBC/Error.html +152 -0
  33. data/html/classes/ODBC/Error.src/M000020.html +21 -0
  34. data/html/classes/ODBC/Error.src/M000021.html +18 -0
  35. data/html/classes/ODBC/TimeStamp.html +182 -0
  36. data/html/classes/ODBC/TimeStamp.src/M000017.html +18 -0
  37. data/html/classes/ODBC/TimeStamp.src/M000018.html +22 -0
  38. data/html/classes/ODBC/TimeStamp.src/M000019.html +19 -0
  39. data/html/classes/ODBC.html +108 -0
  40. data/html/classes/ResultSetWrapper.html +345 -0
  41. data/html/classes/ResultSetWrapper.src/M000005.html +27 -0
  42. data/html/classes/ResultSetWrapper.src/M000006.html +24 -0
  43. data/html/classes/ResultSetWrapper.src/M000007.html +23 -0
  44. data/html/classes/ResultSetWrapper.src/M000008.html +18 -0
  45. data/html/classes/ResultSetWrapper.src/M000009.html +18 -0
  46. data/html/classes/ResultSetWrapper.src/M000010.html +18 -0
  47. data/html/classes/ResultSetWrapper.src/M000011.html +18 -0
  48. data/html/classes/ResultSetWrapper.src/M000012.html +20 -0
  49. data/html/classes/ResultSetWrapper.src/M000013.html +18 -0
  50. data/html/classes/ResultSetWrapper.src/M000014.html +22 -0
  51. data/html/classes/ResultSetWrapper.src/M000015.html +23 -0
  52. data/html/classes/ResultSetWrapper.src/M000016.html +27 -0
  53. data/html/created.rid +1 -0
  54. data/html/files/README.html +159 -0
  55. data/html/files/lib/expected_result_set_rb.html +116 -0
  56. data/html/files/lib/marjoree_rb.html +110 -0
  57. data/html/files/lib/odbc_overrides_rb.html +101 -0
  58. data/html/files/lib/result_set_wrapper_rb.html +101 -0
  59. data/html/fr_class_index.html +32 -0
  60. data/html/fr_file_index.html +31 -0
  61. data/html/fr_method_index.html +68 -0
  62. data/html/index.html +24 -0
  63. data/html/rdoc-style.css +208 -0
  64. data/lib/expected_result_set.rb +35 -0
  65. data/lib/marjoree.rb +344 -0
  66. data/lib/odbc_overrides.rb +33 -0
  67. data/lib/result_set_wrapper.rb +193 -0
  68. data/rakefile.rb +38 -0
  69. data/tests/all_tests.rb +15 -0
  70. data/tests/sprocs/test_error_sproc.sp +11 -0
  71. data/tests/sprocs/test_sproc.sp +5 -0
  72. data/tests/sprocs/test_sproc_with_mixed_params.sp +15 -0
  73. data/tests/sprocs/test_sproc_with_output_params.sp +10 -0
  74. data/tests/sprocs/test_sproc_with_params.sp +9 -0
  75. data/tests/sprocs/test_sproc_with_select_and_ops.sp +12 -0
  76. data/tests/test_contains.rb +27 -0
  77. data/tests/test_delete.rb +47 -0
  78. data/tests/test_expected_result_set.rb +40 -0
  79. data/tests/test_insert.rb +47 -0
  80. data/tests/test_marjoree.rb +91 -0
  81. data/tests/test_num_rows.rb +32 -0
  82. data/tests/test_result_set_wrapper.rb +162 -0
  83. data/tests/test_select.rb +30 -0
  84. data/tests/test_sproc.rb +99 -0
  85. data/tests/test_time_stamp.rb +52 -0
  86. data/tests/test_truncate.rb +31 -0
  87. data/tests/test_update.rb +56 -0
  88. metadata +137 -0
@@ -0,0 +1,345 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: ResultSetWrapper</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">ResultSetWrapper</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/result_set_wrapper_rb.html">
59
+ lib/result_set_wrapper.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000006">apply_output_params</a>&nbsp;&nbsp;
90
+ <a href="#M000012">collect</a>&nbsp;&nbsp;
91
+ <a href="#M000014">contains?</a>&nbsp;&nbsp;
92
+ <a href="#M000015">contains_row?</a>&nbsp;&nbsp;
93
+ <a href="#M000009">count</a>&nbsp;&nbsp;
94
+ <a href="#M000011">empty?</a>&nbsp;&nbsp;
95
+ <a href="#M000013">has?</a>&nbsp;&nbsp;
96
+ <a href="#M000008">is_output_param?</a>&nbsp;&nbsp;
97
+ <a href="#M000007">method_missing</a>&nbsp;&nbsp;
98
+ <a href="#M000005">new</a>&nbsp;&nbsp;
99
+ <a href="#M000010">size</a>&nbsp;&nbsp;
100
+ <a href="#M000016">to_s</a>&nbsp;&nbsp;
101
+ </div>
102
+ </div>
103
+
104
+ </div>
105
+
106
+
107
+ <!-- if includes -->
108
+
109
+ <div id="section">
110
+
111
+
112
+
113
+
114
+
115
+ <div id="attribute-list">
116
+ <h3 class="section-bar">Attributes</h3>
117
+
118
+ <div class="name-list">
119
+ <table>
120
+ <tr class="top-aligned-row context-row">
121
+ <td class="context-item-name">columns</td>
122
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
123
+ <td class="context-item-desc"></td>
124
+ </tr>
125
+ <tr class="top-aligned-row context-row">
126
+ <td class="context-item-name">hashes</td>
127
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
128
+ <td class="context-item-desc"></td>
129
+ </tr>
130
+ </table>
131
+ </div>
132
+ </div>
133
+
134
+
135
+
136
+ <!-- if method_list -->
137
+ <div id="methods">
138
+ <h3 class="section-bar">Public Class methods</h3>
139
+
140
+ <div id="method-M000005" class="method-detail">
141
+ <a name="M000005"></a>
142
+
143
+ <div class="method-heading">
144
+ <a href="ResultSetWrapper.src/M000005.html" target="Code" class="method-signature"
145
+ onclick="popupCode('ResultSetWrapper.src/M000005.html');return false;">
146
+ <span class="method-name">new</span><span class="method-args">( statement, output_param_names = [] )</span>
147
+ </a>
148
+ </div>
149
+
150
+ <div class="method-description">
151
+ </div>
152
+ </div>
153
+
154
+ <h3 class="section-bar">Public Instance methods</h3>
155
+
156
+ <div id="method-M000006" class="method-detail">
157
+ <a name="M000006"></a>
158
+
159
+ <div class="method-heading">
160
+ <a href="ResultSetWrapper.src/M000006.html" target="Code" class="method-signature"
161
+ onclick="popupCode('ResultSetWrapper.src/M000006.html');return false;">
162
+ <span class="method-name">apply_output_params</span><span class="method-args">( output_param_names, statement )</span>
163
+ </a>
164
+ </div>
165
+
166
+ <div class="method-description">
167
+ </div>
168
+ </div>
169
+
170
+ <div id="method-M000012" class="method-detail">
171
+ <a name="M000012"></a>
172
+
173
+ <div class="method-heading">
174
+ <a href="ResultSetWrapper.src/M000012.html" target="Code" class="method-signature"
175
+ onclick="popupCode('ResultSetWrapper.src/M000012.html');return false;">
176
+ <span class="method-name">collect</span><span class="method-args">() {|hash| ...}</span>
177
+ </a>
178
+ </div>
179
+
180
+ <div class="method-description">
181
+ <p>
182
+ Iterates round each row applying a block.
183
+ </p>
184
+ </div>
185
+ </div>
186
+
187
+ <div id="method-M000014" class="method-detail">
188
+ <a name="M000014"></a>
189
+
190
+ <div class="method-heading">
191
+ <a href="ResultSetWrapper.src/M000014.html" target="Code" class="method-signature"
192
+ onclick="popupCode('ResultSetWrapper.src/M000014.html');return false;">
193
+ <span class="method-name">contains?</span><span class="method-args">( *expected_rows )</span>
194
+ </a>
195
+ </div>
196
+
197
+ <div class="method-description">
198
+ <p>
199
+ Returns true if the contents of the &#8216;expected_rows&#8217; map is held
200
+ within self.
201
+ </p>
202
+ </div>
203
+ </div>
204
+
205
+ <div id="method-M000015" class="method-detail">
206
+ <a name="M000015"></a>
207
+
208
+ <div class="method-heading">
209
+ <a href="ResultSetWrapper.src/M000015.html" target="Code" class="method-signature"
210
+ onclick="popupCode('ResultSetWrapper.src/M000015.html');return false;">
211
+ <span class="method-name">contains_row?</span><span class="method-args">( expected )</span>
212
+ </a>
213
+ </div>
214
+
215
+ <div class="method-description">
216
+ </div>
217
+ </div>
218
+
219
+ <div id="method-M000009" class="method-detail">
220
+ <a name="M000009"></a>
221
+
222
+ <div class="method-heading">
223
+ <a href="ResultSetWrapper.src/M000009.html" target="Code" class="method-signature"
224
+ onclick="popupCode('ResultSetWrapper.src/M000009.html');return false;">
225
+ <span class="method-name">count</span><span class="method-args">()</span>
226
+ </a>
227
+ </div>
228
+
229
+ <div class="method-description">
230
+ <p>
231
+ Returns the number of rows in self.
232
+ </p>
233
+ </div>
234
+ </div>
235
+
236
+ <div id="method-M000011" class="method-detail">
237
+ <a name="M000011"></a>
238
+
239
+ <div class="method-heading">
240
+ <a href="ResultSetWrapper.src/M000011.html" target="Code" class="method-signature"
241
+ onclick="popupCode('ResultSetWrapper.src/M000011.html');return false;">
242
+ <span class="method-name">empty?</span><span class="method-args">()</span>
243
+ </a>
244
+ </div>
245
+
246
+ <div class="method-description">
247
+ <p>
248
+ Returns true if self is contains zero rows.
249
+ </p>
250
+ </div>
251
+ </div>
252
+
253
+ <div id="method-M000013" class="method-detail">
254
+ <a name="M000013"></a>
255
+
256
+ <div class="method-heading">
257
+ <a href="ResultSetWrapper.src/M000013.html" target="Code" class="method-signature"
258
+ onclick="popupCode('ResultSetWrapper.src/M000013.html');return false;">
259
+ <span class="method-name">has?</span><span class="method-args">( expected_result_set )</span>
260
+ </a>
261
+ </div>
262
+
263
+ <div class="method-description">
264
+ <p>
265
+ Returns true if the contents of the &#8216;expected_result_set&#8217; is
266
+ held within self.
267
+ </p>
268
+ </div>
269
+ </div>
270
+
271
+ <div id="method-M000008" class="method-detail">
272
+ <a name="M000008"></a>
273
+
274
+ <div class="method-heading">
275
+ <a href="ResultSetWrapper.src/M000008.html" target="Code" class="method-signature"
276
+ onclick="popupCode('ResultSetWrapper.src/M000008.html');return false;">
277
+ <span class="method-name">is_output_param?</span><span class="method-args">( name )</span>
278
+ </a>
279
+ </div>
280
+
281
+ <div class="method-description">
282
+ </div>
283
+ </div>
284
+
285
+ <div id="method-M000007" class="method-detail">
286
+ <a name="M000007"></a>
287
+
288
+ <div class="method-heading">
289
+ <a href="ResultSetWrapper.src/M000007.html" target="Code" class="method-signature"
290
+ onclick="popupCode('ResultSetWrapper.src/M000007.html');return false;">
291
+ <span class="method-name">method_missing</span><span class="method-args">( name )</span>
292
+ </a>
293
+ </div>
294
+
295
+ <div class="method-description">
296
+ </div>
297
+ </div>
298
+
299
+ <div id="method-M000010" class="method-detail">
300
+ <a name="M000010"></a>
301
+
302
+ <div class="method-heading">
303
+ <a href="ResultSetWrapper.src/M000010.html" target="Code" class="method-signature"
304
+ onclick="popupCode('ResultSetWrapper.src/M000010.html');return false;">
305
+ <span class="method-name">size</span><span class="method-args">()</span>
306
+ </a>
307
+ </div>
308
+
309
+ <div class="method-description">
310
+ <p>
311
+ Returns the number of rows in self.
312
+ </p>
313
+ </div>
314
+ </div>
315
+
316
+ <div id="method-M000016" class="method-detail">
317
+ <a name="M000016"></a>
318
+
319
+ <div class="method-heading">
320
+ <a href="ResultSetWrapper.src/M000016.html" target="Code" class="method-signature"
321
+ onclick="popupCode('ResultSetWrapper.src/M000016.html');return false;">
322
+ <span class="method-name">to_s</span><span class="method-args">()</span>
323
+ </a>
324
+ </div>
325
+
326
+ <div class="method-description">
327
+ <p>
328
+ Provides the contents of self in the form of a table.
329
+ </p>
330
+ </div>
331
+ </div>
332
+
333
+
334
+ </div>
335
+
336
+
337
+ </div>
338
+
339
+
340
+ <div id="validator-badges">
341
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
342
+ </div>
343
+
344
+ </body>
345
+ </html>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 5</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">statement</span>, <span class="ruby-identifier">output_param_names</span> = [] )
15
+ <span class="ruby-ivar">@padding</span> = <span class="ruby-value str">&quot; &quot;</span>
16
+ <span class="ruby-ivar">@spacer</span> = <span class="ruby-value str">&quot; &quot;</span>
17
+ <span class="ruby-ivar">@columns</span> = <span class="ruby-identifier">statement</span>.<span class="ruby-identifier">columns</span>
18
+ <span class="ruby-ivar">@hashes</span> = []
19
+
20
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">output_param_names</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
21
+ <span class="ruby-identifier">apply_output_params</span>( <span class="ruby-identifier">output_param_names</span>, <span class="ruby-identifier">statement</span> )
22
+ <span class="ruby-keyword kw">else</span>
23
+ <span class="ruby-identifier">extract_results</span>( <span class="ruby-identifier">statement</span> )
24
+ <span class="ruby-keyword kw">end</span>
25
+ <span class="ruby-keyword kw">end</span></pre>
26
+ </body>
27
+ </html>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>apply_output_params (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 18</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apply_output_params</span>( <span class="ruby-identifier">output_param_names</span>, <span class="ruby-identifier">statement</span> )
15
+ <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">in</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span>( <span class="ruby-identifier">output_param_names</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span> )
16
+ <span class="ruby-identifier">value</span> = <span class="ruby-identifier">statement</span>.<span class="ruby-identifier">fetch!</span>[<span class="ruby-value">0</span>]
17
+ <span class="ruby-identifier">statement</span>.<span class="ruby-identifier">more_results</span>
18
+
19
+ <span class="ruby-identifier">var_name</span> = <span class="ruby-node">&quot;#{output_param_names[i]}&quot;</span>
20
+ <span class="ruby-identifier">instance_variable_set</span>( <span class="ruby-identifier">var_name</span>, <span class="ruby-identifier">value</span> )
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-keyword kw">end</span></pre>
23
+ </body>
24
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>method_missing (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 28</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>( <span class="ruby-identifier">name</span> )
15
+ <span class="ruby-identifier">member_var</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">&quot;@#{name}&quot;</span> )
16
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">member_var</span>.<span class="ruby-identifier">nil?</span>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">member_var</span>
18
+ <span class="ruby-keyword kw">else</span>
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">super</span>.<span class="ruby-identifier">method_missing</span>( <span class="ruby-identifier">name</span> )
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>is_output_param? (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_output_param?</span>( <span class="ruby-identifier">name</span> )
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-identifier">eval</span>( <span class="ruby-node">&quot;#{name}&quot;</span> ).<span class="ruby-identifier">nil?</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>count (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 42</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@hashes</span>.<span class="ruby-identifier">size</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>size (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 47</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">count</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>empty? (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 52</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>collect (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 57</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collect</span>
15
+ <span class="ruby-ivar">@hashes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">hash</span>
17
+ <span class="ruby-keyword kw">end</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>has? (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 64</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has?</span>( <span class="ruby-identifier">expected_result_set</span> )
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">contains?</span>( <span class="ruby-identifier">expected_result_set</span>.<span class="ruby-identifier">row_hashes</span> )
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>contains? (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 69</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">expected_rows</span> )
15
+ <span class="ruby-identifier">expected_rows</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">expected</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">contains_row?</span>( <span class="ruby-identifier">expected</span> )
17
+ <span class="ruby-keyword kw">end</span>
18
+
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>contains_row? (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 77</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains_row?</span>( <span class="ruby-identifier">expected</span> )
15
+ <span class="ruby-identifier">expected_with_symbols</span> = <span class="ruby-identifier">convert_keys_to_symbols</span>( <span class="ruby-identifier">expected</span> )
16
+ <span class="ruby-ivar">@hashes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">actual</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">actual</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">actual</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">expected_with_symbols</span>)
18
+ <span class="ruby-keyword kw">end</span>
19
+
20
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_s (ResultSetWrapper)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/result_set_wrapper.rb, line 87</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-identifier">column_widths</span> = <span class="ruby-identifier">widest_value_in_columns</span>
16
+
17
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">create_header_row</span>( <span class="ruby-identifier">column_widths</span> )
18
+ <span class="ruby-identifier">result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">create_separator_row</span>( <span class="ruby-identifier">column_widths</span> )
19
+
20
+ <span class="ruby-ivar">@hashes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
21
+ <span class="ruby-identifier">result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">create_data_row</span>( <span class="ruby-identifier">row</span>, <span class="ruby-identifier">column_widths</span> )
22
+ <span class="ruby-keyword kw">end</span>
23
+
24
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
25
+ <span class="ruby-keyword kw">end</span></pre>
26
+ </body>
27
+ </html>
data/html/created.rid ADDED
@@ -0,0 +1 @@
1
+ Tue Nov 14 01:09:30 GMT Standard Time 2006