sqlconstructor 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 (80) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE.md +16 -0
  3. data/README.md +161 -0
  4. data/Rakefile +11 -0
  5. data/doc/Object.html +267 -0
  6. data/doc/Rakefile.html +150 -0
  7. data/doc/SQLAliasedList.html +717 -0
  8. data/doc/SQLColumn.html +326 -0
  9. data/doc/SQLCondList.html +318 -0
  10. data/doc/SQLConditional.html +1082 -0
  11. data/doc/SQLConditional/BasicCond.html +325 -0
  12. data/doc/SQLConstructor.html +763 -0
  13. data/doc/SQLConstructor/BasicDelete.html +383 -0
  14. data/doc/SQLConstructor/BasicDelete_mysql.html +368 -0
  15. data/doc/SQLConstructor/BasicInsert.html +339 -0
  16. data/doc/SQLConstructor/BasicInsert_mysql.html +325 -0
  17. data/doc/SQLConstructor/BasicJoin.html +408 -0
  18. data/doc/SQLConstructor/BasicJoin_mysql.html +439 -0
  19. data/doc/SQLConstructor/BasicSelect.html +554 -0
  20. data/doc/SQLConstructor/BasicSelect_example.html +288 -0
  21. data/doc/SQLConstructor/BasicSelect_mysql.html +466 -0
  22. data/doc/SQLConstructor/BasicUnion.html +396 -0
  23. data/doc/SQLConstructor/BasicUpdate.html +409 -0
  24. data/doc/SQLConstructor/BasicUpdate_mysql.html +310 -0
  25. data/doc/SQLConstructor/GenericQuery.html +797 -0
  26. data/doc/SQLConstructor/QAttr.html +398 -0
  27. data/doc/SQLConstructorTest.html +603 -0
  28. data/doc/SQLExporter.html +382 -0
  29. data/doc/SQLExporter/Exporter_generic.html +413 -0
  30. data/doc/SQLExporter/Exporter_mysql.html +395 -0
  31. data/doc/SQLObject.html +525 -0
  32. data/doc/SQLValList.html +322 -0
  33. data/doc/SQLValue.html +375 -0
  34. data/doc/created.rid +12 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/find.png +0 -0
  43. data/doc/images/loadingAnimation.gif +0 -0
  44. data/doc/images/macFFBgHack.png +0 -0
  45. data/doc/images/package.png +0 -0
  46. data/doc/images/page_green.png +0 -0
  47. data/doc/images/page_white_text.png +0 -0
  48. data/doc/images/page_white_width.png +0 -0
  49. data/doc/images/plugin.png +0 -0
  50. data/doc/images/ruby.png +0 -0
  51. data/doc/images/tag_green.png +0 -0
  52. data/doc/images/wrench.png +0 -0
  53. data/doc/images/wrench_orange.png +0 -0
  54. data/doc/images/zoom.png +0 -0
  55. data/doc/index.html +356 -0
  56. data/doc/js/darkfish.js +118 -0
  57. data/doc/js/jquery.js +32 -0
  58. data/doc/js/quicksearch.js +114 -0
  59. data/doc/js/thickbox-compressed.js +10 -0
  60. data/doc/lib/dialects/example-constructor_rb.html +52 -0
  61. data/doc/lib/dialects/mysql-constructor_rb.html +52 -0
  62. data/doc/lib/dialects/mysql-exporter_rb.html +54 -0
  63. data/doc/lib/sqlconditional_rb.html +64 -0
  64. data/doc/lib/sqlconstructor_rb.html +52 -0
  65. data/doc/lib/sqlerrors_rb.html +54 -0
  66. data/doc/lib/sqlexporter_rb.html +55 -0
  67. data/doc/lib/sqlobject_rb.html +54 -0
  68. data/doc/rdoc.css +763 -0
  69. data/doc/test/queries_rb.html +56 -0
  70. data/doc/test_rb.html +52 -0
  71. data/lib/dialects/example-constructor.rb +45 -0
  72. data/lib/dialects/mysql-constructor.rb +247 -0
  73. data/lib/dialects/mysql-exporter.rb +108 -0
  74. data/lib/sqlconditional.rb +196 -0
  75. data/lib/sqlconstructor.rb +708 -0
  76. data/lib/sqlerrors.rb +15 -0
  77. data/lib/sqlexporter.rb +125 -0
  78. data/lib/sqlobject.rb +284 -0
  79. data/test/queries.rb +92 -0
  80. metadata +121 -0
@@ -0,0 +1,288 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: SQLConstructor::BasicSelect_example</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/dialects/example-constructor_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/dialects/example-constructor.rb">lib/dialects/example-constructor.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link"><a href="BasicSelect.html">SQLConstructor::BasicSelect</a></p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-i-method_missing">#method_missing</a></li>
71
+
72
+ </ul>
73
+ </div>
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="project-metadata">
80
+
81
+
82
+ <div id="fileindex-section" class="section project-section">
83
+ <h3 class="section-header">Files</h3>
84
+ <ul>
85
+
86
+ <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
87
+
88
+ </ul>
89
+ </div>
90
+
91
+
92
+ <div id="classindex-section" class="section project-section">
93
+ <h3 class="section-header">Class/Module Index
94
+ <span class="search-toggle"><img src="../images/find.png"
95
+ height="16" width="16" alt="[+]"
96
+ title="show/hide quicksearch" /></span></h3>
97
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
98
+ <fieldset>
99
+ <legend>Quicksearch</legend>
100
+ <input type="text" name="quicksearch" value=""
101
+ class="quicksearch-field" />
102
+ </fieldset>
103
+ </form>
104
+
105
+ <ul class="link-list">
106
+
107
+ <li><a href="../SQLConstructor.html">SQLConstructor</a></li>
108
+
109
+ <li><a href="../SQLConstructor/BasicDelete.html">SQLConstructor::BasicDelete</a></li>
110
+
111
+ <li><a href="../SQLConstructor/BasicDelete_mysql.html">SQLConstructor::BasicDelete_mysql</a></li>
112
+
113
+ <li><a href="../SQLConstructor/BasicInsert.html">SQLConstructor::BasicInsert</a></li>
114
+
115
+ <li><a href="../SQLConstructor/BasicInsert_mysql.html">SQLConstructor::BasicInsert_mysql</a></li>
116
+
117
+ <li><a href="../SQLConstructor/BasicJoin.html">SQLConstructor::BasicJoin</a></li>
118
+
119
+ <li><a href="../SQLConstructor/BasicJoin_mysql.html">SQLConstructor::BasicJoin_mysql</a></li>
120
+
121
+ <li><a href="../SQLConstructor/BasicSelect.html">SQLConstructor::BasicSelect</a></li>
122
+
123
+ <li><a href="../SQLConstructor/BasicSelect_example.html">SQLConstructor::BasicSelect_example</a></li>
124
+
125
+ <li><a href="../SQLConstructor/BasicSelect_mysql.html">SQLConstructor::BasicSelect_mysql</a></li>
126
+
127
+ <li><a href="../SQLConstructor/BasicUnion.html">SQLConstructor::BasicUnion</a></li>
128
+
129
+ <li><a href="../SQLConstructor/BasicUpdate.html">SQLConstructor::BasicUpdate</a></li>
130
+
131
+ <li><a href="../SQLConstructor/BasicUpdate_mysql.html">SQLConstructor::BasicUpdate_mysql</a></li>
132
+
133
+ <li><a href="../SQLConstructor/GenericQuery.html">SQLConstructor::GenericQuery</a></li>
134
+
135
+ <li><a href="../SQLConstructor/QAttr.html">SQLConstructor::QAttr</a></li>
136
+
137
+ <li><a href="../SQLExporter.html">SQLExporter</a></li>
138
+
139
+ <li><a href="../SQLExporter/Exporter_generic.html">SQLExporter::Exporter_generic</a></li>
140
+
141
+ <li><a href="../SQLExporter/Exporter_mysql.html">SQLExporter::Exporter_mysql</a></li>
142
+
143
+ <li><a href="../SQLConditional.html">SQLConditional</a></li>
144
+
145
+ <li><a href="../SQLConditional/BasicCond.html">SQLConditional::BasicCond</a></li>
146
+
147
+ <li><a href="../Object.html">Object</a></li>
148
+
149
+ <li><a href="../SQLAliasedList.html">SQLAliasedList</a></li>
150
+
151
+ <li><a href="../SQLColumn.html">SQLColumn</a></li>
152
+
153
+ <li><a href="../SQLCondList.html">SQLCondList</a></li>
154
+
155
+ <li><a href="../SQLConstructorTest.html">SQLConstructorTest</a></li>
156
+
157
+ <li><a href="../SQLObject.html">SQLObject</a></li>
158
+
159
+ <li><a href="../SQLValList.html">SQLValList</a></li>
160
+
161
+ <li><a href="../SQLValue.html">SQLValue</a></li>
162
+
163
+ </ul>
164
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
165
+ </div>
166
+
167
+
168
+ </div>
169
+ </div>
170
+
171
+ <div id="documentation">
172
+ <h1 class="class">SQLConstructor::BasicSelect_example</h1>
173
+
174
+ <div id="description" class="description">
175
+
176
+ </div><!-- description -->
177
+
178
+
179
+
180
+
181
+ <div id="5Buntitled-5D" class="documentation-section">
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+ <!-- Methods -->
191
+
192
+ <div id="public-class-method-details" class="method-section section">
193
+ <h3 class="section-header">Public Class Methods</h3>
194
+
195
+
196
+ <div id="new-method" class="method-detail ">
197
+ <a name="method-c-new"></a>
198
+
199
+
200
+ <div class="method-heading">
201
+ <span class="method-name">new</span><span
202
+ class="method-args">( _caller, *list )</span>
203
+ <span class="method-click-advice">click to toggle source</span>
204
+ </div>
205
+
206
+
207
+ <div class="method-description">
208
+
209
+ <p>Class constructor. Init any attributes here. Do not forget to call
210
+ ‘super’! _caller - the caller object *list - list of sources for
211
+ the FROM clause</p>
212
+
213
+
214
+
215
+ <div class="method-source-code" id="new-source">
216
+ <pre>
217
+ <span class="ruby-comment"># File lib/dialects/example-constructor.rb, line 15</span>
218
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> ( <span class="ruby-identifier">_caller</span>, *<span class="ruby-identifier">list</span> )
219
+ <span class="ruby-keyword">super</span>
220
+ <span class="ruby-comment"># @attr_foo = false</span>
221
+ <span class="ruby-keyword">end</span></pre>
222
+ </div><!-- new-source -->
223
+
224
+ </div>
225
+
226
+
227
+
228
+
229
+ </div><!-- new-method -->
230
+
231
+
232
+ </div><!-- public-class-method-details -->
233
+
234
+ <div id="public-instance-method-details" class="method-section section">
235
+ <h3 class="section-header">Public Instance Methods</h3>
236
+
237
+
238
+ <div id="method_missing-method" class="method-detail ">
239
+ <a name="method-i-method_missing"></a>
240
+
241
+
242
+ <div class="method-heading">
243
+ <span class="method-name">method_missing</span><span
244
+ class="method-args">( method, *args )</span>
245
+ <span class="method-click-advice">click to toggle source</span>
246
+ </div>
247
+
248
+
249
+ <div class="method-description">
250
+
251
+ <p>You may do mostly anything here, but don’t forget to call <a
252
+ href="BasicSelect_example.html#method-i-method_missing">method_missing</a>
253
+ of the parent ( ‘return super’ )</p>
254
+
255
+
256
+
257
+ <div class="method-source-code" id="method_missing-source">
258
+ <pre>
259
+ <span class="ruby-comment"># File lib/dialects/example-constructor.rb, line 40</span>
260
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span> ( <span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span> )
261
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span>
262
+ <span class="ruby-keyword">end</span></pre>
263
+ </div><!-- method_missing-source -->
264
+
265
+ </div>
266
+
267
+
268
+
269
+
270
+ </div><!-- method_missing-method -->
271
+
272
+
273
+ </div><!-- public-instance-method-details -->
274
+
275
+ </div><!-- 5Buntitled-5D -->
276
+
277
+
278
+ </div><!-- documentation -->
279
+
280
+ <div id="validator-badges">
281
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
282
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
283
+ Rdoc Generator</a> 2</small>.</p>
284
+ </div>
285
+
286
+ </body>
287
+ </html>
288
+
@@ -0,0 +1,466 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: SQLConstructor::BasicSelect_mysql</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/dialects/mysql-constructor_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/dialects/mysql-constructor.rb">lib/dialects/mysql-constructor.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link"><a href="BasicSelect.html">SQLConstructor::BasicSelect</a></p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-i-_addIndexes">#_addIndexes</a></li>
71
+
72
+ <li><a href="#method-i-method_missing">#method_missing</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+
79
+ </div>
80
+
81
+ <div id="project-metadata">
82
+
83
+
84
+ <div id="fileindex-section" class="section project-section">
85
+ <h3 class="section-header">Files</h3>
86
+ <ul>
87
+
88
+ <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
89
+
90
+ </ul>
91
+ </div>
92
+
93
+
94
+ <div id="classindex-section" class="section project-section">
95
+ <h3 class="section-header">Class/Module Index
96
+ <span class="search-toggle"><img src="../images/find.png"
97
+ height="16" width="16" alt="[+]"
98
+ title="show/hide quicksearch" /></span></h3>
99
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
+ <fieldset>
101
+ <legend>Quicksearch</legend>
102
+ <input type="text" name="quicksearch" value=""
103
+ class="quicksearch-field" />
104
+ </fieldset>
105
+ </form>
106
+
107
+ <ul class="link-list">
108
+
109
+ <li><a href="../SQLConstructor.html">SQLConstructor</a></li>
110
+
111
+ <li><a href="../SQLConstructor/BasicDelete.html">SQLConstructor::BasicDelete</a></li>
112
+
113
+ <li><a href="../SQLConstructor/BasicDelete_mysql.html">SQLConstructor::BasicDelete_mysql</a></li>
114
+
115
+ <li><a href="../SQLConstructor/BasicInsert.html">SQLConstructor::BasicInsert</a></li>
116
+
117
+ <li><a href="../SQLConstructor/BasicInsert_mysql.html">SQLConstructor::BasicInsert_mysql</a></li>
118
+
119
+ <li><a href="../SQLConstructor/BasicJoin.html">SQLConstructor::BasicJoin</a></li>
120
+
121
+ <li><a href="../SQLConstructor/BasicJoin_mysql.html">SQLConstructor::BasicJoin_mysql</a></li>
122
+
123
+ <li><a href="../SQLConstructor/BasicSelect.html">SQLConstructor::BasicSelect</a></li>
124
+
125
+ <li><a href="../SQLConstructor/BasicSelect_example.html">SQLConstructor::BasicSelect_example</a></li>
126
+
127
+ <li><a href="../SQLConstructor/BasicSelect_mysql.html">SQLConstructor::BasicSelect_mysql</a></li>
128
+
129
+ <li><a href="../SQLConstructor/BasicUnion.html">SQLConstructor::BasicUnion</a></li>
130
+
131
+ <li><a href="../SQLConstructor/BasicUpdate.html">SQLConstructor::BasicUpdate</a></li>
132
+
133
+ <li><a href="../SQLConstructor/BasicUpdate_mysql.html">SQLConstructor::BasicUpdate_mysql</a></li>
134
+
135
+ <li><a href="../SQLConstructor/GenericQuery.html">SQLConstructor::GenericQuery</a></li>
136
+
137
+ <li><a href="../SQLConstructor/QAttr.html">SQLConstructor::QAttr</a></li>
138
+
139
+ <li><a href="../SQLExporter.html">SQLExporter</a></li>
140
+
141
+ <li><a href="../SQLExporter/Exporter_generic.html">SQLExporter::Exporter_generic</a></li>
142
+
143
+ <li><a href="../SQLExporter/Exporter_mysql.html">SQLExporter::Exporter_mysql</a></li>
144
+
145
+ <li><a href="../SQLConditional.html">SQLConditional</a></li>
146
+
147
+ <li><a href="../SQLConditional/BasicCond.html">SQLConditional::BasicCond</a></li>
148
+
149
+ <li><a href="../Object.html">Object</a></li>
150
+
151
+ <li><a href="../SQLAliasedList.html">SQLAliasedList</a></li>
152
+
153
+ <li><a href="../SQLColumn.html">SQLColumn</a></li>
154
+
155
+ <li><a href="../SQLCondList.html">SQLCondList</a></li>
156
+
157
+ <li><a href="../SQLConstructorTest.html">SQLConstructorTest</a></li>
158
+
159
+ <li><a href="../SQLObject.html">SQLObject</a></li>
160
+
161
+ <li><a href="../SQLValList.html">SQLValList</a></li>
162
+
163
+ <li><a href="../SQLValue.html">SQLValue</a></li>
164
+
165
+ </ul>
166
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
167
+ </div>
168
+
169
+
170
+ </div>
171
+ </div>
172
+
173
+ <div id="documentation">
174
+ <h1 class="class">SQLConstructor::BasicSelect_mysql</h1>
175
+
176
+ <div id="description" class="description">
177
+
178
+ <p>MySQL dialect descendant of <a href="BasicSelect.html">BasicSelect</a>
179
+ class</p>
180
+
181
+ </div><!-- description -->
182
+
183
+
184
+
185
+
186
+ <div id="5Buntitled-5D" class="documentation-section">
187
+
188
+
189
+
190
+
191
+
192
+ <!-- Constants -->
193
+ <div id="constants-list" class="section">
194
+ <h3 class="section-header">Constants</h3>
195
+ <dl>
196
+
197
+ <dt><a name="METHODS">METHODS</a></dt>
198
+
199
+ <dd class="description"></dd>
200
+
201
+
202
+ </dl>
203
+ </div>
204
+
205
+
206
+
207
+ <!-- Attributes -->
208
+ <div id="attribute-method-details" class="method-section section">
209
+ <h3 class="section-header">Attributes</h3>
210
+
211
+
212
+ <div id="attr_group_by_with_rollup-attribute-method" class="method-detail">
213
+ <a name="attr_group_by_with_rollup"></a>
214
+
215
+ <div class="method-heading attribute-method-heading">
216
+ <span class="method-name">attr_group_by_with_rollup</span><span
217
+ class="attribute-access-type">[R]</span>
218
+ </div>
219
+
220
+ <div class="method-description">
221
+
222
+
223
+
224
+ </div>
225
+ </div>
226
+
227
+ <div id="attr_high_priority-attribute-method" class="method-detail">
228
+ <a name="attr_high_priority"></a>
229
+
230
+ <div class="method-heading attribute-method-heading">
231
+ <span class="method-name">attr_high_priority</span><span
232
+ class="attribute-access-type">[R]</span>
233
+ </div>
234
+
235
+ <div class="method-description">
236
+
237
+
238
+
239
+ </div>
240
+ </div>
241
+
242
+ <div id="attr_limit-attribute-method" class="method-detail">
243
+ <a name="attr_limit"></a>
244
+
245
+ <div class="method-heading attribute-method-heading">
246
+ <span class="method-name">attr_limit</span><span
247
+ class="attribute-access-type">[R]</span>
248
+ </div>
249
+
250
+ <div class="method-description">
251
+
252
+
253
+
254
+ </div>
255
+ </div>
256
+
257
+ <div id="attr_sql_cache-attribute-method" class="method-detail">
258
+ <a name="attr_sql_cache"></a>
259
+
260
+ <div class="method-heading attribute-method-heading">
261
+ <span class="method-name">attr_sql_cache</span><span
262
+ class="attribute-access-type">[R]</span>
263
+ </div>
264
+
265
+ <div class="method-description">
266
+
267
+
268
+
269
+ </div>
270
+ </div>
271
+
272
+ <div id="attr_sql_calc_found_rows-attribute-method" class="method-detail">
273
+ <a name="attr_sql_calc_found_rows"></a>
274
+
275
+ <div class="method-heading attribute-method-heading">
276
+ <span class="method-name">attr_sql_calc_found_rows</span><span
277
+ class="attribute-access-type">[R]</span>
278
+ </div>
279
+
280
+ <div class="method-description">
281
+
282
+
283
+
284
+ </div>
285
+ </div>
286
+
287
+ <div id="attr_sql_result_size-attribute-method" class="method-detail">
288
+ <a name="attr_sql_result_size"></a>
289
+
290
+ <div class="method-heading attribute-method-heading">
291
+ <span class="method-name">attr_sql_result_size</span><span
292
+ class="attribute-access-type">[R]</span>
293
+ </div>
294
+
295
+ <div class="method-description">
296
+
297
+
298
+
299
+ </div>
300
+ </div>
301
+
302
+ <div id="attr_straight_join-attribute-method" class="method-detail">
303
+ <a name="attr_straight_join"></a>
304
+
305
+ <div class="method-heading attribute-method-heading">
306
+ <span class="method-name">attr_straight_join</span><span
307
+ class="attribute-access-type">[R]</span>
308
+ </div>
309
+
310
+ <div class="method-description">
311
+
312
+
313
+
314
+ </div>
315
+ </div>
316
+
317
+ </div><!-- attribute-method-details -->
318
+
319
+
320
+ <!-- Methods -->
321
+
322
+ <div id="public-class-method-details" class="method-section section">
323
+ <h3 class="section-header">Public Class Methods</h3>
324
+
325
+
326
+ <div id="new-method" class="method-detail ">
327
+ <a name="method-c-new"></a>
328
+
329
+
330
+ <div class="method-heading">
331
+ <span class="method-name">new</span><span
332
+ class="method-args">( _caller, *list )</span>
333
+ <span class="method-click-advice">click to toggle source</span>
334
+ </div>
335
+
336
+
337
+ <div class="method-description">
338
+
339
+ <p>Class constructor. _caller - the caller object *list - list of
340
+ sources for the FROM clause</p>
341
+
342
+
343
+
344
+ <div class="method-source-code" id="new-source">
345
+ <pre>
346
+ <span class="ruby-comment"># File lib/dialects/mysql-constructor.rb, line 41</span>
347
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> ( <span class="ruby-identifier">_caller</span>, *<span class="ruby-identifier">list</span> )
348
+ <span class="ruby-keyword">super</span>
349
+ <span class="ruby-keyword">end</span></pre>
350
+ </div><!-- new-source -->
351
+
352
+ </div>
353
+
354
+
355
+
356
+
357
+ </div><!-- new-method -->
358
+
359
+
360
+ </div><!-- public-class-method-details -->
361
+
362
+ <div id="public-instance-method-details" class="method-section section">
363
+ <h3 class="section-header">Public Instance Methods</h3>
364
+
365
+
366
+ <div id="method_missing-method" class="method-detail ">
367
+ <a name="method-i-method_missing"></a>
368
+
369
+
370
+ <div class="method-heading">
371
+ <span class="method-name">method_missing</span><span
372
+ class="method-args">( method, *args )</span>
373
+ <span class="method-click-advice">click to toggle source</span>
374
+ </div>
375
+
376
+
377
+ <div class="method-description">
378
+
379
+ <p>Send missing methods calls to the @caller object, and also handle JOINs,
380
+ UNIONs and INDEX hints</p>
381
+
382
+
383
+
384
+ <div class="method-source-code" id="method_missing-source">
385
+ <pre>
386
+ <span class="ruby-comment"># File lib/dialects/mysql-constructor.rb, line 49</span>
387
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span> ( <span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span> )
388
+ <span class="ruby-comment"># Handle all [*_]join calls:</span>
389
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">_addJoin</span>( <span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span> ) <span class="ruby-keyword">if</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^[a-z_]*join$/</span>
390
+ <span class="ruby-comment"># Handle all valid *_index/*_key calls:</span>
391
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">_addIndexes</span>( <span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span> ) <span class="ruby-keyword">if</span> <span class="ruby-constant">VALID_INDEX_HINTS</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">method</span>
392
+ <span class="ruby-keyword">super</span>
393
+ <span class="ruby-keyword">end</span></pre>
394
+ </div><!-- method_missing-source -->
395
+
396
+ </div>
397
+
398
+
399
+
400
+
401
+ </div><!-- method_missing-method -->
402
+
403
+
404
+ </div><!-- public-instance-method-details -->
405
+
406
+ <div id="private-instance-method-details" class="method-section section">
407
+ <h3 class="section-header">Private Instance Methods</h3>
408
+
409
+
410
+ <div id="_addIndexes-method" class="method-detail ">
411
+ <a name="method-i-_addIndexes"></a>
412
+
413
+
414
+ <div class="method-heading">
415
+ <span class="method-name">_addIndexes</span><span
416
+ class="method-args">( type, *list )</span>
417
+ <span class="method-click-advice">click to toggle source</span>
418
+ </div>
419
+
420
+
421
+ <div class="method-description">
422
+
423
+ <p>Adds a USE/FORCE/IGNORE INDEX clause for the last objects in for_vals
424
+ argument.</p>
425
+
426
+
427
+
428
+ <div class="method-source-code" id="_addIndexes-source">
429
+ <pre>
430
+ <span class="ruby-comment"># File lib/dialects/mysql-constructor.rb, line 65</span>
431
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">_addIndexes</span> ( <span class="ruby-identifier">type</span>, *<span class="ruby-identifier">list</span> )
432
+ <span class="ruby-identifier">type</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>
433
+ <span class="ruby-identifier">type</span>.<span class="ruby-identifier">upcase!</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp">/_/</span>, <span class="ruby-string">' '</span>
434
+ <span class="ruby-ivar">@attr_index_hints</span> <span class="ruby-operator">||=</span> [ ]
435
+ <span class="ruby-comment"># set the attr_index_hints for the last object in for_vals</span>
436
+ <span class="ruby-identifier">last_ind</span> = <span class="ruby-ivar">@attr_from</span>.<span class="ruby-identifier">val</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
437
+ <span class="ruby-ivar">@attr_index_hints</span>[<span class="ruby-identifier">last_ind</span>] = { <span class="ruby-value">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">type</span>, <span class="ruby-value">:list</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">SQLObject</span>.<span class="ruby-identifier">get</span>( <span class="ruby-identifier">list</span> ) }
438
+ <span class="ruby-ivar">@string</span> = <span class="ruby-keyword">nil</span>
439
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>
440
+ <span class="ruby-keyword">end</span></pre>
441
+ </div><!-- _addIndexes-source -->
442
+
443
+ </div>
444
+
445
+
446
+
447
+
448
+ </div><!-- _addIndexes-method -->
449
+
450
+
451
+ </div><!-- private-instance-method-details -->
452
+
453
+ </div><!-- 5Buntitled-5D -->
454
+
455
+
456
+ </div><!-- documentation -->
457
+
458
+ <div id="validator-badges">
459
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
460
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
461
+ Rdoc Generator</a> 2</small>.</p>
462
+ </div>
463
+
464
+ </body>
465
+ </html>
466
+