fireruby 0.1.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/doc/CVS/Entries +10 -0
  2. data/doc/CVS/Repository +1 -0
  3. data/doc/CVS/Root +1 -0
  4. data/doc/README +39 -0
  5. data/doc/classes/CVS/Entries +2 -0
  6. data/doc/classes/CVS/Entries.Log +1 -0
  7. data/doc/classes/CVS/Repository +1 -0
  8. data/doc/classes/CVS/Root +1 -0
  9. data/doc/classes/FireRuby/CVS/Entries +8 -0
  10. data/doc/classes/FireRuby/CVS/Entries.Log +7 -0
  11. data/doc/classes/FireRuby/CVS/Repository +1 -0
  12. data/doc/classes/FireRuby/CVS/Root +1 -0
  13. data/doc/classes/FireRuby/Connection.html +364 -0
  14. data/doc/classes/FireRuby/Connection.src/CVS/Entries +10 -0
  15. data/doc/classes/FireRuby/Connection.src/CVS/Repository +1 -0
  16. data/doc/classes/FireRuby/Connection.src/CVS/Root +1 -0
  17. data/doc/classes/FireRuby/Connection.src/M000046.html +17 -0
  18. data/doc/classes/FireRuby/Connection.src/M000047.html +17 -0
  19. data/doc/classes/FireRuby/Connection.src/M000048.html +17 -0
  20. data/doc/classes/FireRuby/Connection.src/M000049.html +17 -0
  21. data/doc/classes/FireRuby/Connection.src/M000050.html +17 -0
  22. data/doc/classes/FireRuby/Connection.src/M000051.html +17 -0
  23. data/doc/classes/FireRuby/Connection.src/M000052.html +18 -0
  24. data/doc/classes/FireRuby/Connection.src/M000053.html +18 -0
  25. data/doc/classes/FireRuby/Connection.src/M000054.html +18 -0
  26. data/doc/classes/FireRuby/Database.html +292 -0
  27. data/doc/classes/FireRuby/Database.src/CVS/Entries +7 -0
  28. data/doc/classes/FireRuby/Database.src/CVS/Repository +1 -0
  29. data/doc/classes/FireRuby/Database.src/CVS/Root +1 -0
  30. data/doc/classes/FireRuby/Database.src/M000035.html +17 -0
  31. data/doc/classes/FireRuby/Database.src/M000036.html +17 -0
  32. data/doc/classes/FireRuby/Database.src/M000037.html +17 -0
  33. data/doc/classes/FireRuby/Database.src/M000038.html +18 -0
  34. data/doc/classes/FireRuby/Database.src/M000039.html +17 -0
  35. data/doc/classes/FireRuby/Database.src/M000040.html +17 -0
  36. data/doc/classes/FireRuby/FireRubyError.html +221 -0
  37. data/doc/classes/FireRuby/FireRubyError.src/CVS/Entries +6 -0
  38. data/doc/classes/FireRuby/FireRubyError.src/CVS/Repository +1 -0
  39. data/doc/classes/FireRuby/FireRubyError.src/CVS/Root +1 -0
  40. data/doc/classes/FireRuby/FireRubyError.src/M000041.html +17 -0
  41. data/doc/classes/FireRuby/FireRubyError.src/M000042.html +17 -0
  42. data/doc/classes/FireRuby/FireRubyError.src/M000043.html +17 -0
  43. data/doc/classes/FireRuby/FireRubyError.src/M000044.html +17 -0
  44. data/doc/classes/FireRuby/FireRubyError.src/M000045.html +17 -0
  45. data/doc/classes/FireRuby/Generator.html +343 -0
  46. data/doc/classes/FireRuby/Generator.src/CVS/Entries +9 -0
  47. data/doc/classes/FireRuby/Generator.src/CVS/Repository +1 -0
  48. data/doc/classes/FireRuby/Generator.src/CVS/Root +1 -0
  49. data/doc/classes/FireRuby/Generator.src/M000001.html +17 -0
  50. data/doc/classes/FireRuby/Generator.src/M000002.html +17 -0
  51. data/doc/classes/FireRuby/Generator.src/M000003.html +17 -0
  52. data/doc/classes/FireRuby/Generator.src/M000004.html +17 -0
  53. data/doc/classes/FireRuby/Generator.src/M000005.html +17 -0
  54. data/doc/classes/FireRuby/Generator.src/M000006.html +17 -0
  55. data/doc/classes/FireRuby/Generator.src/M000007.html +17 -0
  56. data/doc/classes/FireRuby/Generator.src/M000008.html +17 -0
  57. data/doc/classes/FireRuby/ResultSet.html +343 -0
  58. data/doc/classes/FireRuby/ResultSet.src/CVS/Entries +10 -0
  59. data/doc/classes/FireRuby/ResultSet.src/CVS/Repository +1 -0
  60. data/doc/classes/FireRuby/ResultSet.src/CVS/Root +1 -0
  61. data/doc/classes/FireRuby/ResultSet.src/M000026.html +17 -0
  62. data/doc/classes/FireRuby/ResultSet.src/M000027.html +17 -0
  63. data/doc/classes/FireRuby/ResultSet.src/M000028.html +17 -0
  64. data/doc/classes/FireRuby/ResultSet.src/M000029.html +17 -0
  65. data/doc/classes/FireRuby/ResultSet.src/M000030.html +17 -0
  66. data/doc/classes/FireRuby/ResultSet.src/M000031.html +17 -0
  67. data/doc/classes/FireRuby/ResultSet.src/M000032.html +17 -0
  68. data/doc/classes/FireRuby/ResultSet.src/M000033.html +17 -0
  69. data/doc/classes/FireRuby/ResultSet.src/M000034.html +17 -0
  70. data/doc/classes/FireRuby/Statement.html +349 -0
  71. data/doc/classes/FireRuby/Statement.src/CVS/Entries +10 -0
  72. data/doc/classes/FireRuby/Statement.src/CVS/Repository +1 -0
  73. data/doc/classes/FireRuby/Statement.src/CVS/Root +1 -0
  74. data/doc/classes/FireRuby/Statement.src/M000017.html +17 -0
  75. data/doc/classes/FireRuby/Statement.src/M000018.html +17 -0
  76. data/doc/classes/FireRuby/Statement.src/M000019.html +17 -0
  77. data/doc/classes/FireRuby/Statement.src/M000020.html +17 -0
  78. data/doc/classes/FireRuby/Statement.src/M000021.html +17 -0
  79. data/doc/classes/FireRuby/Statement.src/M000022.html +17 -0
  80. data/doc/classes/FireRuby/Statement.src/M000023.html +18 -0
  81. data/doc/classes/FireRuby/Statement.src/M000024.html +18 -0
  82. data/doc/classes/FireRuby/Statement.src/M000025.html +17 -0
  83. data/doc/classes/FireRuby/Transaction.html +484 -0
  84. data/doc/classes/FireRuby/Transaction.src/CVS/Entries +9 -0
  85. data/doc/classes/FireRuby/Transaction.src/CVS/Repository +1 -0
  86. data/doc/classes/FireRuby/Transaction.src/CVS/Root +1 -0
  87. data/doc/classes/FireRuby/Transaction.src/M000009.html +17 -0
  88. data/doc/classes/FireRuby/Transaction.src/M000010.html +17 -0
  89. data/doc/classes/FireRuby/Transaction.src/M000011.html +17 -0
  90. data/doc/classes/FireRuby/Transaction.src/M000012.html +17 -0
  91. data/doc/classes/FireRuby/Transaction.src/M000013.html +17 -0
  92. data/doc/classes/FireRuby/Transaction.src/M000014.html +17 -0
  93. data/doc/classes/FireRuby/Transaction.src/M000015.html +18 -0
  94. data/doc/classes/FireRuby/Transaction.src/M000016.html +17 -0
  95. data/doc/classes/FireRuby.html +116 -0
  96. data/doc/created.rid +1 -0
  97. data/doc/files/CVS/Entries +2 -0
  98. data/doc/files/CVS/Repository +1 -0
  99. data/doc/files/CVS/Root +1 -0
  100. data/doc/files/src_rb.html +119 -0
  101. data/doc/fr_class_index.html +34 -0
  102. data/doc/fr_file_index.html +27 -0
  103. data/doc/fr_method_index.html +80 -0
  104. data/doc/index.html +24 -0
  105. data/doc/license.txt +411 -0
  106. data/doc/rdoc-style.css +175 -0
  107. data/lib/CVS/Entries +4 -0
  108. data/lib/CVS/Repository +1 -0
  109. data/lib/CVS/Root +1 -0
  110. data/lib/fireruby.bundle +0 -0
  111. data/lib/fireruby.so +0 -0
  112. data/lib/mkdoc +1 -0
  113. data/lib/src.rb +736 -0
  114. data/test/CVS/Entries +17 -0
  115. data/test/CVS/Repository +1 -0
  116. data/test/CVS/Root +1 -0
  117. data/test/ConnectionTest.rb +91 -0
  118. data/test/DDLTest.rb +49 -0
  119. data/test/DatabaseTest.rb +84 -0
  120. data/test/GeneratorTest.rb +47 -0
  121. data/test/ResultSetTest.rb +96 -0
  122. data/test/SQLTest.rb +154 -0
  123. data/test/StatementTest.rb +101 -0
  124. data/test/TestSetup.rb +10 -0
  125. data/test/TransactionTest.rb +107 -0
  126. data/test/UnitTest.rb +10 -0
  127. data/test/example.c +91 -0
  128. data/test/fb.c +297 -0
  129. data/test/mfb +1 -0
  130. data/test/sql_unit_test.fdb +0 -0
  131. data/test/test.fdb +0 -0
  132. metadata +191 -0
data/doc/CVS/Entries ADDED
@@ -0,0 +1,10 @@
1
+ /README/1.1.1.1/Tue Mar 15 10:36:19 2005//
2
+ /created.rid/1.1.1.1/Tue Mar 15 10:36:19 2005//
3
+ /fr_class_index.html/1.1.1.1/Tue Mar 15 10:36:19 2005//
4
+ /fr_file_index.html/1.1.1.1/Tue Mar 15 10:36:19 2005//
5
+ /fr_method_index.html/1.1.1.1/Tue Mar 15 10:36:19 2005//
6
+ /index.html/1.1.1.1/Tue Mar 15 10:36:19 2005//
7
+ /rdoc-style.css/1.1.1.1/Tue Mar 15 10:36:19 2005//
8
+ D/classes////
9
+ D/files////
10
+ /license.txt/1.1/Tue Mar 15 13:34:22 2005//
@@ -0,0 +1 @@
1
+ /var/cvs/fireruby/fireruby/doc
data/doc/CVS/Root ADDED
@@ -0,0 +1 @@
1
+ :ext:paw220470@rubyforge.org:/var/cvs/fireruby
data/doc/README ADDED
@@ -0,0 +1,39 @@
1
+ = FireRuby - Interface Library For The Firebird Database
2
+
3
+ This is the initial release of the FireRuby library. The FireRuby library
4
+ provides an interface to the Firebird open source database management system.
5
+ The library has been developed as an extension to the Ruby language using the
6
+ Ruby interface API. The library is provided in binary form only to avoid
7
+ compilation issues.
8
+
9
+ If you are wondering why I haven't released a version of the library for Linux
10
+ it is simply that I do not have access to a Linux box to build it. I hope to
11
+ rectify this situation in the future but there is no definite timetable for
12
+ doing this yet.
13
+
14
+ == Usage
15
+
16
+ The library is provided as a gem. Installation follows the normal procedure for
17
+ gem installation. The installation includes API documentation in HTML format.
18
+ Some examples will be provided at a later date.
19
+
20
+ == Issues
21
+
22
+ Nothing is perfect so this section outlines those issues that are known to
23
+ exist before the release of the library.
24
+
25
+ - The library currently does not support array columns. This may be implemented
26
+ for a later release depending on demand.
27
+
28
+ - There is an issue with storing and retrieving float values. The value is
29
+ stored but the actual value stored seems to be out by a small amount. This
30
+ will require further investigation.
31
+
32
+ - There is an issue with the use of anonymous transactions inside of a block
33
+ for the Database#connect method. An attempt is made to close the connection
34
+ when the block exits. If, within the block, there is a call to the
35
+ Connection#execute_immediate method that generates a result set and,
36
+ subsequently, an exception is raised the anonymous transaction used in the
37
+ execute_immediate will be unavailable for closure. This will, in turn,
38
+ make it impossible to close the connection, resulting in an exception. As
39
+ a work around, don't use anonynous transactions.
@@ -0,0 +1,2 @@
1
+ /FireRuby.html/1.1.1.1/Tue Mar 15 10:36:19 2005//
2
+ D
@@ -0,0 +1 @@
1
+ A D/FireRuby////
@@ -0,0 +1 @@
1
+ /var/cvs/fireruby/fireruby/doc/classes
@@ -0,0 +1 @@
1
+ :ext:paw220470@rubyforge.org:/var/cvs/fireruby
@@ -0,0 +1,8 @@
1
+ /Connection.html/1.1.1.1/Tue Mar 15 10:36:20 2005//
2
+ /Database.html/1.1.1.1/Tue Mar 15 10:36:20 2005//
3
+ /FireRubyError.html/1.1.1.1/Tue Mar 15 10:36:20 2005//
4
+ /Generator.html/1.1.1.1/Tue Mar 15 10:36:20 2005//
5
+ /ResultSet.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
6
+ /Statement.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
7
+ /Transaction.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
8
+ D
@@ -0,0 +1,7 @@
1
+ A D/Connection.src////
2
+ A D/Database.src////
3
+ A D/FireRubyError.src////
4
+ A D/Generator.src////
5
+ A D/ResultSet.src////
6
+ A D/Statement.src////
7
+ A D/Transaction.src////
@@ -0,0 +1 @@
1
+ /var/cvs/fireruby/fireruby/doc/classes/FireRuby
@@ -0,0 +1 @@
1
+ :ext:paw220470@rubyforge.org:/var/cvs/fireruby
@@ -0,0 +1,364 @@
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: FireRuby::Connection</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
+ <h1>FireRuby::Connection <sup class="type-note">(Class)</sup></h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>In:</strong></td>
54
+ <td>
55
+ <a href="../../files/src_rb.html">
56
+ src.rb
57
+ </a>
58
+ <br />
59
+ </td>
60
+ </tr>
61
+
62
+ <tr class="top-aligned-row">
63
+ <td><strong>Parent:</strong></td>
64
+ <td>
65
+ Object
66
+ </td>
67
+ </tr>
68
+ </table>
69
+ </div>
70
+ <!-- banner header -->
71
+
72
+ <div id="bodyContent">
73
+
74
+
75
+ <div id="contextContent">
76
+
77
+ <div id="description">
78
+ <p>
79
+ This class represents a connection with a Firebird database.
80
+ </p>
81
+
82
+ </div>
83
+
84
+
85
+ <div id="method-list">
86
+ <h2 class="section-bar">Methods</h2>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000049">close</a>&nbsp;&nbsp;
90
+ <a href="#M000048">closed?</a>&nbsp;&nbsp;
91
+ <a href="#M000050">database</a>&nbsp;&nbsp;
92
+ <a href="#M000053">execute</a>&nbsp;&nbsp;
93
+ <a href="#M000054">execute_immediate</a>&nbsp;&nbsp;
94
+ <a href="#M000046">new</a>&nbsp;&nbsp;
95
+ <a href="#M000047">open?</a>&nbsp;&nbsp;
96
+ <a href="#M000052">start_transaction</a>&nbsp;&nbsp;
97
+ <a href="#M000051">to_s</a>&nbsp;&nbsp;
98
+ </div>
99
+ </div>
100
+
101
+
102
+
103
+
104
+
105
+
106
+ </div>
107
+
108
+
109
+
110
+ <!-- if includes -->
111
+
112
+
113
+ <!-- if method_list -->
114
+ <div id="methods">
115
+ <h2 class="section-bar">Public Class methods</h2>
116
+
117
+ <div id="method-M000046" class="method-detail">
118
+ <a name="M000046"></a>
119
+
120
+ <div class="method-heading">
121
+ <a href="Connection.src/M000046.html" target="Code" class="method-signature"
122
+ onclick="popupCode('Connection.src/M000046.html');return false;">
123
+ <span class="method-name">new</span><span class="method-args">(database)</span>
124
+ </a>
125
+ </div>
126
+
127
+ <div class="method-description">
128
+ <p>
129
+ This is the constructor for the <a href="Connection.html">Connection</a>
130
+ class.
131
+ </p>
132
+ <h4>Parameters</h4>
133
+ <table>
134
+ <tr><td valign="top">database:</td><td>A reference to the <a href="Database.html">Database</a> object to be
135
+ connected to.
136
+
137
+ </td></tr>
138
+ </table>
139
+ <h4>Exceptions</h4>
140
+ <table>
141
+ <tr><td valign="top">Exception:</td><td>Generated whenever an invalid database is specified to the method or an
142
+ issue occurs establishing the database connection.
143
+
144
+ </td></tr>
145
+ </table>
146
+ </div>
147
+ </div>
148
+
149
+ <h2 class="section-bar">Public Instance methods</h2>
150
+
151
+ <div id="method-M000049" class="method-detail">
152
+ <a name="M000049"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="Connection.src/M000049.html" target="Code" class="method-signature"
156
+ onclick="popupCode('Connection.src/M000049.html');return false;">
157
+ <span class="method-name">close</span><span class="method-args">()</span>
158
+ </a>
159
+ </div>
160
+
161
+ <div class="method-description">
162
+ <p>
163
+ This method detaches a <a href="Connection.html">Connection</a> object from
164
+ a database. The object may not be used for database functionality following
165
+ a successful call to this method. The close method will fail if there are
166
+ outstanding transactions for a connection.
167
+ </p>
168
+ <h4>Exceptions</h4>
169
+ <table>
170
+ <tr><td valign="top">Exception:</td><td>Generated whenever the connection has at least one open transaction or an
171
+ error occurs closing the connection.
172
+
173
+ </td></tr>
174
+ </table>
175
+ </div>
176
+ </div>
177
+
178
+ <div id="method-M000048" class="method-detail">
179
+ <a name="M000048"></a>
180
+
181
+ <div class="method-heading">
182
+ <a href="Connection.src/M000048.html" target="Code" class="method-signature"
183
+ onclick="popupCode('Connection.src/M000048.html');return false;">
184
+ <span class="method-name">closed?</span><span class="method-args">()</span>
185
+ </a>
186
+ </div>
187
+
188
+ <div class="method-description">
189
+ <p>
190
+ This method is used to determine whether a <a
191
+ href="Connection.html">Connection</a> object represents an inactive
192
+ database connection.
193
+ </p>
194
+ </div>
195
+ </div>
196
+
197
+ <div id="method-M000050" class="method-detail">
198
+ <a name="M000050"></a>
199
+
200
+ <div class="method-heading">
201
+ <a href="Connection.src/M000050.html" target="Code" class="method-signature"
202
+ onclick="popupCode('Connection.src/M000050.html');return false;">
203
+ <span class="method-name">database</span><span class="method-args">()</span>
204
+ </a>
205
+ </div>
206
+
207
+ <div class="method-description">
208
+ <p>
209
+ This is the accessor method for the database attribute.
210
+ </p>
211
+ </div>
212
+ </div>
213
+
214
+ <div id="method-M000053" class="method-detail">
215
+ <a name="M000053"></a>
216
+
217
+ <div class="method-heading">
218
+ <a href="Connection.src/M000053.html" target="Code" class="method-signature"
219
+ onclick="popupCode('Connection.src/M000053.html');return false;">
220
+ <span class="method-name">execute</span><span class="method-args">(sql, transaction) {|row| ...}</span>
221
+ </a>
222
+ </div>
223
+
224
+ <div class="method-description">
225
+ <p>
226
+ This function executes a SQL statement against a connection. If the
227
+ statement represented a SQL query then a result set is returned. If the
228
+ statement wasn&#8217;t a query then nil is returned. The method also
229
+ accepts a block that takes a single parameter. This block will be executed
230
+ once for each row in any result set generated.
231
+ </p>
232
+ <h4>Parameters</h4>
233
+ <table>
234
+ <tr><td valign="top">sql:</td><td>The SQL statement to be executed.
235
+
236
+ </td></tr>
237
+ <tr><td valign="top">transaction:</td><td>The transaction to execute the SQL statement within.
238
+
239
+ </td></tr>
240
+ </table>
241
+ <h4>Exceptions</h4>
242
+ <table>
243
+ <tr><td valign="top">Exception:</td><td>Generated if an error occurs executing the SQL statement.
244
+
245
+ </td></tr>
246
+ </table>
247
+ </div>
248
+ </div>
249
+
250
+ <div id="method-M000054" class="method-detail">
251
+ <a name="M000054"></a>
252
+
253
+ <div class="method-heading">
254
+ <a href="Connection.src/M000054.html" target="Code" class="method-signature"
255
+ onclick="popupCode('Connection.src/M000054.html');return false;">
256
+ <span class="method-name">execute_immediate</span><span class="method-args">(sql) {|row| ...}</span>
257
+ </a>
258
+ </div>
259
+
260
+ <div class="method-description">
261
+ <p>
262
+ This function executes a SQL statement against a connection. This differs
263
+ from the execute method in that an anonymous transaction is used in
264
+ executing the statement. The output from this method is the same as for the
265
+ execute method. The method also accepts a block that takes a single
266
+ parameter. This block will be executed once for each row in any result set
267
+ generated.
268
+ </p>
269
+ <h4>Parameters</h4>
270
+ <table>
271
+ <tr><td valign="top">sql:</td><td>The SQL statement to be executed.
272
+
273
+ </td></tr>
274
+ </table>
275
+ <h4>Exceptions</h4>
276
+ <table>
277
+ <tr><td valign="top">Exception:</td><td>Generated whenever a problem occurs executing the SQL statement.
278
+
279
+ </td></tr>
280
+ </table>
281
+ </div>
282
+ </div>
283
+
284
+ <div id="method-M000047" class="method-detail">
285
+ <a name="M000047"></a>
286
+
287
+ <div class="method-heading">
288
+ <a href="Connection.src/M000047.html" target="Code" class="method-signature"
289
+ onclick="popupCode('Connection.src/M000047.html');return false;">
290
+ <span class="method-name">open?</span><span class="method-args">()</span>
291
+ </a>
292
+ </div>
293
+
294
+ <div class="method-description">
295
+ <p>
296
+ This method is used to determine whether a <a
297
+ href="Connection.html">Connection</a> object represents an active database
298
+ connection.
299
+ </p>
300
+ </div>
301
+ </div>
302
+
303
+ <div id="method-M000052" class="method-detail">
304
+ <a name="M000052"></a>
305
+
306
+ <div class="method-heading">
307
+ <a href="Connection.src/M000052.html" target="Code" class="method-signature"
308
+ onclick="popupCode('Connection.src/M000052.html');return false;">
309
+ <span class="method-name">start_transaction</span><span class="method-args">() {|transaction| ...}</span>
310
+ </a>
311
+ </div>
312
+
313
+ <div class="method-description">
314
+ <p>
315
+ This method starts a new transaction against a connection. A successful
316
+ call to this method returns a <a href="Transaction.html">Transaction</a>
317
+ object. The transaction that is started relates to the <a
318
+ href="Connection.html">Connection</a> it was called upon only. To start a
319
+ transaction that covers multiple connections use the <a
320
+ href="Transaction.html">Transaction</a> class. This method accepts a block,
321
+ taking a single parameter which will be the transaction created. This
322
+ transaction is committed if the block completes normally or rolls back if
323
+ an exception is thrown from the block.
324
+ </p>
325
+ <h4>Exceptions</h4>
326
+ <table>
327
+ <tr><td valign="top">Exception:</td><td>Thrown whenever a problem occurs starting the transaction.
328
+
329
+ </td></tr>
330
+ </table>
331
+ </div>
332
+ </div>
333
+
334
+ <div id="method-M000051" class="method-detail">
335
+ <a name="M000051"></a>
336
+
337
+ <div class="method-heading">
338
+ <a href="Connection.src/M000051.html" target="Code" class="method-signature"
339
+ onclick="popupCode('Connection.src/M000051.html');return false;">
340
+ <span class="method-name">to_s</span><span class="method-args">()</span>
341
+ </a>
342
+ </div>
343
+
344
+ <div class="method-description">
345
+ <p>
346
+ This method generates a simple descriptive string for a <a
347
+ href="Connection.html">Connection</a> object.
348
+ </p>
349
+ </div>
350
+ </div>
351
+
352
+
353
+ </div>
354
+
355
+
356
+ </div>
357
+
358
+
359
+ <div id="validator-badges">
360
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
361
+ </div>
362
+
363
+ </body>
364
+ </html>
@@ -0,0 +1,10 @@
1
+ /M000046.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
2
+ /M000047.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
3
+ /M000048.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
4
+ /M000049.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
5
+ /M000050.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
6
+ /M000051.html/1.1.1.1/Tue Mar 15 10:36:21 2005//
7
+ /M000052.html/1.1.1.1/Tue Mar 15 10:36:22 2005//
8
+ /M000053.html/1.1.1.1/Tue Mar 15 10:36:22 2005//
9
+ /M000054.html/1.1.1.1/Tue Mar 15 10:36:22 2005//
10
+ D
@@ -0,0 +1 @@
1
+ /var/cvs/fireruby/fireruby/doc/classes/FireRuby/Connection.src
@@ -0,0 +1 @@
1
+ :ext:paw220470@rubyforge.org:/var/cvs/fireruby
@@ -0,0 +1,17 @@
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 (FireRuby::Connection)</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 src.rb, line 157</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">database</span>)
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
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>open? (FireRuby::Connection)</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 src.rb, line 165</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open?</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
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>closed? (FireRuby::Connection)</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 src.rb, line 173</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed?</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
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>close (FireRuby::Connection)</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 src.rb, line 187</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
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>database (FireRuby::Connection)</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 src.rb, line 194</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">database</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
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 (FireRuby::Connection)</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 src.rb, line 202</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </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>start_transaction (FireRuby::Connection)</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 src.rb, line 219</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_transaction</span>
15
+ <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">transaction</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>execute (FireRuby::Connection)</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 src.rb, line 238</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">sql</span>, <span class="ruby-identifier">transaction</span>)
15
+ <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">row</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>execute_immediate (FireRuby::Connection)</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 src.rb, line 258</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute_immediate</span>(<span class="ruby-identifier">sql</span>)
15
+ <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">row</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>