marjoree 0.0.1 → 0.0.9

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 (174) hide show
  1. data/Marjoree.iml +14 -0
  2. data/README +9 -36
  3. data/bin/create_marj_structure.rb +75 -0
  4. data/bin/create_odbc_connections.rb +39 -0
  5. data/bin/odbc_connection_finder.rb +46 -0
  6. data/examples/contains_example.rb +1 -1
  7. data/examples/count_and_insert_example.rb +1 -1
  8. data/examples/select_example.rb +1 -1
  9. data/html/classes/ExpectedResultSet.html +60 -33
  10. data/html/classes/ExpectedResultSet.src/M000002.html +6 -5
  11. data/html/classes/ExpectedResultSet.src/M000003.html +5 -5
  12. data/html/classes/ExpectedResultSet.src/M000004.html +5 -5
  13. data/html/classes/ExpectedResultSet.src/M000005.html +18 -0
  14. data/html/classes/ExpectedResultSet.src/M000006.html +24 -0
  15. data/html/classes/ExpectedResultSet.src/M000007.html +23 -0
  16. data/html/classes/ExpectedResultSet.src/M000008.html +29 -0
  17. data/html/classes/Fixnum.html +287 -0
  18. data/html/classes/Fixnum.src/M000031.html +18 -0
  19. data/html/classes/Fixnum.src/M000034.html +18 -0
  20. data/html/classes/Fixnum.src/M000037.html +18 -0
  21. data/html/classes/Fixnum.src/M000039.html +18 -0
  22. data/html/classes/Fixnum.src/M000041.html +18 -0
  23. data/html/classes/Hash.html +156 -0
  24. data/html/classes/Hash.src/M000009.html +21 -0
  25. data/html/classes/Hash.src/M000010.html +20 -0
  26. data/html/classes/Marjoree.html +268 -151
  27. data/html/classes/Marjoree.src/M000057.html +19 -0
  28. data/html/classes/Marjoree.src/M000058.html +18 -0
  29. data/html/classes/{ExpectedResultSet.src/M000001.html → Marjoree.src/M000059.html} +4 -4
  30. data/html/classes/Marjoree.src/{M000024.html → M000060.html} +4 -4
  31. data/html/classes/Marjoree.src/{M000031.html → M000061.html} +4 -4
  32. data/html/classes/Marjoree.src/{M000026.html → M000062.html} +3 -3
  33. data/html/classes/Marjoree.src/{M000027.html → M000063.html} +3 -3
  34. data/html/classes/Marjoree.src/{M000028.html → M000064.html} +3 -3
  35. data/html/classes/Marjoree.src/{M000029.html → M000065.html} +5 -6
  36. data/html/classes/Marjoree.src/{M000030.html → M000066.html} +5 -5
  37. data/html/classes/Marjoree.src/M000067.html +19 -0
  38. data/html/classes/Marjoree.src/{M000032.html → M000068.html} +3 -3
  39. data/html/classes/{ResultSetWrapper.src/M000009.html → Marjoree.src/M000069.html} +4 -4
  40. data/html/classes/{ResultSetWrapper.src/M000010.html → Marjoree.src/M000070.html} +4 -4
  41. data/html/classes/{ResultSetWrapper.src/M000011.html → Marjoree.src/M000071.html} +4 -4
  42. data/html/classes/Marjoree.src/M000072.html +20 -0
  43. data/html/classes/Marjoree.src/M000073.html +20 -0
  44. data/html/classes/Marjoree.src/M000074.html +20 -0
  45. data/html/classes/Marjoree.src/{M000033.html → M000075.html} +3 -3
  46. data/html/classes/Marjoree.src/{M000034.html → M000076.html} +4 -4
  47. data/html/classes/Marjoree.src/{M000035.html → M000077.html} +2 -2
  48. data/html/classes/Marjoree.src/{M000036.html → M000078.html} +4 -3
  49. data/html/classes/Marjoree.src/{M000037.html → M000079.html} +1 -1
  50. data/html/classes/Marjoree.src/{M000038.html → M000080.html} +3 -3
  51. data/html/classes/Marjoree.src/{M000039.html → M000081.html} +3 -4
  52. data/html/classes/Marjoree.src/{M000040.html → M000082.html} +3 -3
  53. data/html/classes/Marjoree.src/{M000041.html → M000083.html} +3 -3
  54. data/html/classes/{ResultSetWrapper.src/M000008.html → Marjoree.src/M000084.html} +4 -4
  55. data/html/classes/ODBC.html +4 -0
  56. data/html/classes/ODBC/Error.html +12 -12
  57. data/html/classes/ODBC/Error.src/M000047.html +21 -0
  58. data/html/classes/ODBC/Error.src/{M000021.html → M000048.html} +2 -2
  59. data/html/classes/ODBC/TimeStamp.html +48 -18
  60. data/html/classes/ODBC/TimeStamp.src/{M000017.html → M000042.html} +2 -2
  61. data/html/classes/ODBC/TimeStamp.src/M000043.html +22 -0
  62. data/html/classes/ODBC/TimeStamp.src/{M000019.html → M000044.html} +2 -3
  63. data/html/classes/ODBC/TimeStamp.src/M000045.html +18 -0
  64. data/html/classes/ODBC/TimeStamp.src/M000046.html +18 -0
  65. data/html/classes/OdbcConnectionWrapper.html +244 -0
  66. data/html/classes/OdbcConnectionWrapper.src/M000023.html +18 -0
  67. data/html/classes/OdbcConnectionWrapper.src/M000024.html +18 -0
  68. data/html/classes/OdbcConnectionWrapper.src/M000025.html +22 -0
  69. data/html/classes/OdbcConnectionWrapper.src/M000026.html +25 -0
  70. data/html/classes/OdbcConnectionWrapper.src/M000027.html +20 -0
  71. data/html/classes/OdbcConnectionWrapper.src/M000028.html +28 -0
  72. data/html/classes/OdbcConnectionWrapper.src/M000029.html +24 -0
  73. data/html/classes/OdbcConnectionWrapper.src/M000030.html +30 -0
  74. data/html/classes/{ResultSetWrapper.html → ResultSet.html} +71 -94
  75. data/html/classes/ResultSet.src/M000011.html +27 -0
  76. data/html/classes/ResultSet.src/M000012.html +21 -0
  77. data/html/classes/ResultSet.src/M000013.html +23 -0
  78. data/html/classes/ResultSet.src/M000014.html +18 -0
  79. data/html/classes/ResultSet.src/M000015.html +18 -0
  80. data/html/classes/ResultSet.src/M000016.html +18 -0
  81. data/html/classes/ResultSet.src/M000017.html +18 -0
  82. data/html/classes/ResultSet.src/M000018.html +20 -0
  83. data/html/classes/ResultSet.src/M000019.html +18 -0
  84. data/html/classes/ResultSet.src/M000020.html +22 -0
  85. data/html/classes/ResultSet.src/M000021.html +23 -0
  86. data/html/classes/ResultSet.src/M000022.html +22 -0
  87. data/html/classes/Test.html +107 -0
  88. data/html/classes/Test/Unit.html +107 -0
  89. data/html/classes/Test/Unit/TestCase.html +257 -0
  90. data/html/classes/Test/Unit/TestCase.src/M000049.html +18 -0
  91. data/html/classes/Test/Unit/TestCase.src/M000050.html +18 -0
  92. data/html/classes/Test/Unit/TestCase.src/M000051.html +17 -0
  93. data/html/classes/Test/Unit/TestCase.src/M000052.html +17 -0
  94. data/html/classes/Test/Unit/TestCase.src/M000053.html +25 -0
  95. data/html/classes/Test/Unit/TestCase.src/M000054.html +18 -0
  96. data/html/classes/Test/Unit/TestCase.src/M000055.html +18 -0
  97. data/html/classes/Test/Unit/TestCase.src/M000056.html +35 -0
  98. data/html/created.rid +1 -1
  99. data/html/files/README.html +2 -51
  100. data/html/files/lib/expected_result_set_rb.html +1 -16
  101. data/html/files/lib/marjoree/core_rb.html +111 -0
  102. data/html/files/lib/marjoree/fixtures_rb.html +111 -0
  103. data/html/files/lib/marjoree/odbc_connection_wrapper_rb.html +109 -0
  104. data/html/files/lib/marjoree/odbc_rb.html +108 -0
  105. data/html/files/lib/{odbc_overrides_rb.html → marjoree/result_set_rb.html} +5 -5
  106. data/html/files/lib/{result_set_wrapper_rb.html → marjoree/time_rb.html} +5 -5
  107. data/html/files/lib/marjoree_rb.html +3 -4
  108. data/html/files/lib/run_marjoree_rb.html +145 -0
  109. data/html/files/lib/run_marjoree_rb.src/M000001.html +34 -0
  110. data/html/fr_class_index.html +7 -1
  111. data/html/fr_file_index.html +7 -2
  112. data/html/fr_method_index.html +84 -42
  113. data/lib/Marjoree.iml +12 -0
  114. data/lib/expected_result_set.rb +51 -24
  115. data/lib/marjoree.rb +2 -344
  116. data/lib/marjoree/core.rb +388 -0
  117. data/lib/marjoree/fixtures.rb +156 -0
  118. data/lib/marjoree/odbc.rb +45 -0
  119. data/lib/marjoree/odbc_connection_wrapper.rb +79 -0
  120. data/lib/marjoree/result_set.rb +165 -0
  121. data/lib/marjoree/sybase_definitions.rb +223 -0
  122. data/lib/marjoree/time.rb +31 -0
  123. data/lib/proc_param_info.txt +20 -0
  124. data/lib/run_marjoree.rb +31 -0
  125. data/pkg/marjoree-0.0.9.gem +0 -0
  126. data/rakefile.rb +3 -3
  127. data/tests/all_cruby_tests.rb +24 -0
  128. data/tests/all_jruby_tests.rb +22 -0
  129. data/tests/all_tests.rb +9 -6
  130. data/tests/fixtures/A.yml +3 -0
  131. data/tests/fixtures/B.yml +5 -0
  132. data/tests/fixtures/first_db/FIRST.yml +8 -0
  133. data/tests/fixtures/second_db/SECOND.yml +9 -0
  134. data/tests/marjoree/test_assert_results.rb +82 -0
  135. data/tests/marjoree/test_connection_details.rb +44 -0
  136. data/tests/{test_contains.rb → marjoree/test_contains.rb} +0 -0
  137. data/tests/{test_delete.rb → marjoree/test_delete.rb} +0 -0
  138. data/tests/marjoree/test_drop_user_objects.rb +52 -0
  139. data/tests/marjoree/test_expected_result_set.rb +111 -0
  140. data/tests/marjoree/test_fixtures.rb +112 -0
  141. data/tests/{test_insert.rb → marjoree/test_insert.rb} +0 -0
  142. data/tests/{test_marjoree.rb → marjoree/test_marjoree.rb} +14 -2
  143. data/tests/marjoree/test_multiple_db_fixtures.rb +35 -0
  144. data/tests/{test_num_rows.rb → marjoree/test_num_rows.rb} +0 -0
  145. data/tests/marjoree/test_odbc_connection_wrapper.rb +47 -0
  146. data/tests/{test_result_set_wrapper.rb → marjoree/test_result_set_wrapper.rb} +8 -8
  147. data/tests/marjoree/test_select.rb +55 -0
  148. data/tests/marjoree/test_single_odbc_connection_wrapper.rb +39 -0
  149. data/tests/{test_sproc.rb → marjoree/test_sproc.rb} +3 -4
  150. data/tests/marjoree/test_time.rb +25 -0
  151. data/tests/{test_time_stamp.rb → marjoree/test_time_stamp.rb} +10 -1
  152. data/tests/{test_truncate.rb → marjoree/test_truncate.rb} +0 -0
  153. data/tests/{test_update.rb → marjoree/test_update.rb} +14 -14
  154. data/tests/multiple_odbc_config/connections.yml +13 -0
  155. data/tests/single_odbc_config/connections.yml +3 -0
  156. metadata +214 -112
  157. data/html/classes/Marjoree.src/M000022.html +0 -19
  158. data/html/classes/Marjoree.src/M000023.html +0 -20
  159. data/html/classes/Marjoree.src/M000025.html +0 -18
  160. data/html/classes/Marjoree.src/M000042.html +0 -25
  161. data/html/classes/ODBC/Error.src/M000020.html +0 -21
  162. data/html/classes/ODBC/TimeStamp.src/M000018.html +0 -22
  163. data/html/classes/ResultSetWrapper.src/M000005.html +0 -27
  164. data/html/classes/ResultSetWrapper.src/M000006.html +0 -24
  165. data/html/classes/ResultSetWrapper.src/M000007.html +0 -23
  166. data/html/classes/ResultSetWrapper.src/M000012.html +0 -20
  167. data/html/classes/ResultSetWrapper.src/M000013.html +0 -18
  168. data/html/classes/ResultSetWrapper.src/M000014.html +0 -22
  169. data/html/classes/ResultSetWrapper.src/M000015.html +0 -23
  170. data/html/classes/ResultSetWrapper.src/M000016.html +0 -27
  171. data/lib/odbc_overrides.rb +0 -33
  172. data/lib/result_set_wrapper.rb +0 -193
  173. data/tests/test_expected_result_set.rb +0 -40
  174. data/tests/test_select.rb +0 -30
@@ -0,0 +1,19 @@
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>connect_me_to (Marjoree)</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/marjoree/core.rb, line 22</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connect_me_to</span>( <span class="ruby-identifier">odbc_name</span> )
15
+ <span class="ruby-identifier">$connection</span>.<span class="ruby-identifier">connect_me_to</span>( <span class="ruby-identifier">odbc_name</span> )
16
+
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </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>establish_connection_to (Marjoree)</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/marjoree/core.rb, line 28</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">establish_connection_to</span>( <span class="ruby-identifier">connection</span> )
15
+ <span class="ruby-identifier">$connection</span> = <span class="ruby-identifier">connection</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>new (ExpectedResultSet)</title>
8
+ <title>disconnect_me (Marjoree)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/expected_result_set.rb, line 11</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
- <span class="ruby-ivar">@rows</span> = []
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 33</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">disconnect_me</span>
15
+ <span class="ruby-identifier">$connection</span>.<span class="ruby-identifier">disconnect_me</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,12 +10,12 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 33</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">input_param_map</span>={} )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 47</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">map</span>={} )
15
15
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_output_params?</span>( <span class="ruby-identifier">proc_name</span> )
16
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_complex_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">input_param_map</span> )
16
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_complex_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">map</span> )
17
17
  <span class="ruby-keyword kw">else</span>
18
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_simple_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">input_param_map</span> )
18
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_simple_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">map</span> )
19
19
  <span class="ruby-keyword kw">end</span>
20
20
  <span class="ruby-keyword kw">end</span></pre>
21
21
  </body>
@@ -5,15 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>delete (Marjoree)</title>
8
+ <title>select (Marjoree)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 106</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>={} )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 56</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span>)
15
15
  <span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>( <span class="ruby-identifier">where_map</span> )
16
- <span class="ruby-identifier">execute</span>( <span class="ruby-node">&quot;DELETE FROM #{table_name} #{where_clause}&quot;</span> )
16
+ <span class="ruby-identifier">execute</span> <span class="ruby-node">&quot;SELECT * FROM #{table_name} #{where_clause}&quot;</span>
17
17
  <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,11 +10,11 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 59</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 74</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">num_rows</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span> )
15
15
  <span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>( <span class="ruby-identifier">where_map</span> )
16
- <span class="ruby-identifier">dbCall</span> = <span class="ruby-identifier">execute</span>( <span class="ruby-node">&quot;SELECT COUNT(*) FROM #{table_name} #{where_clause}&quot;</span> )
17
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dbCall</span>.<span class="ruby-identifier">to_a</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
16
+ <span class="ruby-identifier">dbCall</span> = <span class="ruby-identifier">execute</span>( <span class="ruby-node">&quot;SELECT COUNT(*) AS number_of_rows FROM #{table_name} #{where_clause}&quot;</span> )
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dbCall</span>.<span class="ruby-identifier">hashes</span>.<span class="ruby-identifier">first</span>[<span class="ruby-identifier">:number_of_rows</span>]
18
18
  <span class="ruby-keyword kw">end</span></pre>
19
19
  </body>
20
20
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 66</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span> )
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">num_rows</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 81</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">num_rows</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>)
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 75</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>={} )
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">count</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> ) <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 90</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>={})
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">count</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>) <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,12 +10,11 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 81</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">value_map</span>={} )
15
- <span class="ruby-identifier">columns</span> = <span class="ruby-identifier">build_column_headers</span>(<span class="ruby-identifier">value_map</span> )
16
- <span class="ruby-identifier">values</span> = <span class="ruby-identifier">build_column_values</span>( <span class="ruby-identifier">value_map</span>)
17
-
18
- <span class="ruby-identifier">execute</span>( <span class="ruby-node">&quot;INSERT INTO #{table_name} (#{columns}) VALUES (#{values})&quot;</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 96</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>={})
15
+ <span class="ruby-identifier">columns</span> = <span class="ruby-identifier">build_column_headers</span>(<span class="ruby-identifier">map</span>)
16
+ <span class="ruby-identifier">values</span> = <span class="ruby-identifier">build_column_values</span>(<span class="ruby-identifier">map</span>)
17
+ <span class="ruby-identifier">execute</span> <span class="ruby-node">&quot;INSERT INTO #{table_name} (#{columns}) VALUES (#{values})&quot;</span>
19
18
  <span class="ruby-keyword kw">end</span></pre>
20
19
  </body>
21
20
  </html>
@@ -10,11 +10,11 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 95</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>={}, <span class="ruby-identifier">set_map</span>={} )
15
- <span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>( <span class="ruby-identifier">where_map</span> )
16
- <span class="ruby-identifier">assignments</span> = <span class="ruby-identifier">build_set_statement</span>( <span class="ruby-identifier">set_map</span> )
17
- <span class="ruby-identifier">execute</span>( <span class="ruby-node">&quot;UPDATE #{table_name} SET #{assignments} #{where_clause}&quot;</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 109</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>={}, <span class="ruby-identifier">map</span>={})
15
+ <span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>(<span class="ruby-identifier">where_map</span>)
16
+ <span class="ruby-identifier">assignments</span> = <span class="ruby-identifier">build_set_statement</span>(<span class="ruby-identifier">map</span>)
17
+ <span class="ruby-identifier">execute</span> <span class="ruby-node">&quot;UPDATE #{table_name} SET #{assignments} #{where_clause}&quot;</span>
18
18
  <span class="ruby-keyword kw">end</span></pre>
19
19
  </body>
20
20
  </html>
@@ -0,0 +1,19 @@
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>delete (Marjoree)</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/marjoree/core.rb, line 120</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>={})
15
+ <span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>(<span class="ruby-identifier">map</span>)
16
+ <span class="ruby-identifier">execute</span> <span class="ruby-node">&quot;DELETE FROM #{table_name} #{where_clause}&quot;</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 112</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">truncate</span>( <span class="ruby-identifier">table_name</span> )
15
- <span class="ruby-identifier">execute</span>( <span class="ruby-node">&quot;TRUNCATE TABLE #{table_name}&quot;</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 126</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">truncate</span>(<span class="ruby-identifier">table_name</span>)
15
+ <span class="ruby-identifier">execute</span> <span class="ruby-node">&quot;TRUNCATE TABLE #{table_name}&quot;</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>count (ResultSetWrapper)</title>
8
+ <title>get_user_tables (Marjoree)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
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>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 130</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_user_tables</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_objects</span>( <span class="ruby-value str">'U'</span> )
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>size (ResultSetWrapper)</title>
8
+ <title>get_user_views (Marjoree)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
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>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 134</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_user_views</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_objects</span>( <span class="ruby-value str">'V'</span> )
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>empty? (ResultSetWrapper)</title>
8
+ <title>get_user_sprocs (Marjoree)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
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>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 138</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_user_sprocs</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_objects</span>( <span class="ruby-value str">'P'</span> )
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
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>drop_user_tables (Marjoree)</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/marjoree/core.rb, line 143</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drop_user_tables</span>
15
+ <span class="ruby-identifier">drop_objects</span>(<span class="ruby-value str">'TABLE'</span>) <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">get_user_tables</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,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>drop_user_views (Marjoree)</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/marjoree/core.rb, line 150</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drop_user_views</span>
15
+ <span class="ruby-identifier">drop_objects</span>(<span class="ruby-value str">'VIEW'</span>) <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">get_user_views</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,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>drop_user_sprocs (Marjoree)</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/marjoree/core.rb, line 157</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drop_user_sprocs</span>
15
+ <span class="ruby-identifier">drop_objects</span>(<span class="ruby-value str">'PROCEDURE'</span>) <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">get_user_sprocs</span>
17
+ <span class="ruby-keyword kw">end</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 117</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_empty</span>( <span class="ruby-identifier">result_set</span> )
15
- <span class="ruby-identifier">assert_equal</span>( <span class="ruby-value">0</span>, <span class="ruby-identifier">result_set</span>.<span class="ruby-identifier">hashes</span>.<span class="ruby-identifier">size</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 164</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_empty</span>(<span class="ruby-identifier">result_set</span>)
15
+ <span class="ruby-identifier">assert_equal</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">result_set</span>.<span class="ruby-identifier">hashes</span>.<span class="ruby-identifier">size</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 122</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_results</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
15
- <span class="ruby-identifier">assert_column_headers</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
16
- <span class="ruby-identifier">assert_row_data</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 169</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_results</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
15
+ <span class="ruby-identifier">assert_column_headers</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
16
+ <span class="ruby-identifier">assert_row_data</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
17
17
  <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,8 +10,8 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 128</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_not_equal_results</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 175</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_not_equal_results</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
15
15
  <span class="ruby-identifier">flag1</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">has_column_headers?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
16
16
  <span class="ruby-identifier">flag2</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">has_correct_data?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
17
17
 
@@ -10,16 +10,17 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 136</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 183</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_error_thrown</span>( <span class="ruby-identifier">expected_error_code</span>, <span class="ruby-identifier">expected_error_message</span> )
15
15
  <span class="ruby-keyword kw">begin</span>
16
16
  <span class="ruby-keyword kw">yield</span>
17
17
  <span class="ruby-identifier">fail</span>
18
18
  <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ODBC</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>
19
19
  <span class="ruby-identifier">exception</span> = <span class="ruby-identifier">$!</span>
20
-
21
20
  <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">expected_error_code</span>, <span class="ruby-identifier">exception</span>.<span class="ruby-identifier">error_code</span> )
22
- <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">expected_error_message</span>, <span class="ruby-identifier">exception</span>.<span class="ruby-identifier">error_message</span> )
21
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expected_error_message</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
22
+ <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">expected_error_message</span>, <span class="ruby-identifier">exception</span>.<span class="ruby-identifier">error_message</span> )
23
+ <span class="ruby-keyword kw">end</span>
23
24
  <span class="ruby-keyword kw">end</span>
24
25
  <span class="ruby-keyword kw">end</span></pre>
25
26
  </body>
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 151</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 199</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_db_error</span>
15
15
  <span class="ruby-keyword kw">begin</span>
16
16
  <span class="ruby-keyword kw">yield</span>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 159</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_column_headers?</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 207</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_column_headers?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
15
15
  <span class="ruby-keyword kw">begin</span>
16
- <span class="ruby-identifier">assert_column_headers</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
16
+ <span class="ruby-identifier">assert_column_headers</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
17
17
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
18
18
  <span class="ruby-keyword kw">rescue</span>
19
19
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
@@ -10,11 +10,10 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line 168</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_correct_data?</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
15
-
13
+ <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 216</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_correct_data?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
16
15
  <span class="ruby-keyword kw">begin</span>
17
- <span class="ruby-identifier">assert_row_data</span>( <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span> )
16
+ <span class="ruby-identifier">assert_row_data</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
18
17
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
19
18
  <span class="ruby-keyword kw">rescue</span>
20
19
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>