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.
- checksums.yaml +15 -0
- data/LICENSE.md +16 -0
- data/README.md +161 -0
- data/Rakefile +11 -0
- data/doc/Object.html +267 -0
- data/doc/Rakefile.html +150 -0
- data/doc/SQLAliasedList.html +717 -0
- data/doc/SQLColumn.html +326 -0
- data/doc/SQLCondList.html +318 -0
- data/doc/SQLConditional.html +1082 -0
- data/doc/SQLConditional/BasicCond.html +325 -0
- data/doc/SQLConstructor.html +763 -0
- data/doc/SQLConstructor/BasicDelete.html +383 -0
- data/doc/SQLConstructor/BasicDelete_mysql.html +368 -0
- data/doc/SQLConstructor/BasicInsert.html +339 -0
- data/doc/SQLConstructor/BasicInsert_mysql.html +325 -0
- data/doc/SQLConstructor/BasicJoin.html +408 -0
- data/doc/SQLConstructor/BasicJoin_mysql.html +439 -0
- data/doc/SQLConstructor/BasicSelect.html +554 -0
- data/doc/SQLConstructor/BasicSelect_example.html +288 -0
- data/doc/SQLConstructor/BasicSelect_mysql.html +466 -0
- data/doc/SQLConstructor/BasicUnion.html +396 -0
- data/doc/SQLConstructor/BasicUpdate.html +409 -0
- data/doc/SQLConstructor/BasicUpdate_mysql.html +310 -0
- data/doc/SQLConstructor/GenericQuery.html +797 -0
- data/doc/SQLConstructor/QAttr.html +398 -0
- data/doc/SQLConstructorTest.html +603 -0
- data/doc/SQLExporter.html +382 -0
- data/doc/SQLExporter/Exporter_generic.html +413 -0
- data/doc/SQLExporter/Exporter_mysql.html +395 -0
- data/doc/SQLObject.html +525 -0
- data/doc/SQLValList.html +322 -0
- data/doc/SQLValue.html +375 -0
- data/doc/created.rid +12 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +356 -0
- data/doc/js/darkfish.js +118 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/dialects/example-constructor_rb.html +52 -0
- data/doc/lib/dialects/mysql-constructor_rb.html +52 -0
- data/doc/lib/dialects/mysql-exporter_rb.html +54 -0
- data/doc/lib/sqlconditional_rb.html +64 -0
- data/doc/lib/sqlconstructor_rb.html +52 -0
- data/doc/lib/sqlerrors_rb.html +54 -0
- data/doc/lib/sqlexporter_rb.html +55 -0
- data/doc/lib/sqlobject_rb.html +54 -0
- data/doc/rdoc.css +763 -0
- data/doc/test/queries_rb.html +56 -0
- data/doc/test_rb.html +52 -0
- data/lib/dialects/example-constructor.rb +45 -0
- data/lib/dialects/mysql-constructor.rb +247 -0
- data/lib/dialects/mysql-exporter.rb +108 -0
- data/lib/sqlconditional.rb +196 -0
- data/lib/sqlconstructor.rb +708 -0
- data/lib/sqlerrors.rb +15 -0
- data/lib/sqlexporter.rb +125 -0
- data/lib/sqlobject.rb +284 -0
- data/test/queries.rb +92 -0
- metadata +121 -0
@@ -0,0 +1,554 @@
|
|
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</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/sqlconstructor_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/sqlconstructor.rb">lib/sqlconstructor.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="GenericQuery.html">SQLConstructor::GenericQuery</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-select_more">#select_more</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</h1>
|
173
|
+
|
174
|
+
<div id="description" class="description">
|
175
|
+
|
176
|
+
<p>Internal class which represents a basic SELECT statement.</p>
|
177
|
+
|
178
|
+
</div><!-- description -->
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<!-- Constants -->
|
190
|
+
<div id="constants-list" class="section">
|
191
|
+
<h3 class="section-header">Constants</h3>
|
192
|
+
<dl>
|
193
|
+
|
194
|
+
<dt><a name="METHODS">METHODS</a></dt>
|
195
|
+
|
196
|
+
<dd class="description"><p>Hash - list of available class meta-methods, which would be processed by
|
197
|
+
.method_missing() to set the appropriate object’s attributes (as defined in
|
198
|
+
the <a href="BasicSelect.html#METHODS">METHODS</a> hash itself). The keys
|
199
|
+
of the hash are the methods names (symbols), the values are instances of
|
200
|
+
the <a href="QAttr.html">QAttr</a> class.</p></dd>
|
201
|
+
|
202
|
+
|
203
|
+
</dl>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
<!-- Attributes -->
|
209
|
+
<div id="attribute-method-details" class="method-section section">
|
210
|
+
<h3 class="section-header">Attributes</h3>
|
211
|
+
|
212
|
+
|
213
|
+
<div id="attr_distinction-attribute-method" class="method-detail">
|
214
|
+
<a name="attr_distinction"></a>
|
215
|
+
|
216
|
+
<a name="attr_distinction="></a>
|
217
|
+
|
218
|
+
<div class="method-heading attribute-method-heading">
|
219
|
+
<span class="method-name">attr_distinction</span><span
|
220
|
+
class="attribute-access-type">[RW]</span>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="method-description">
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
<div id="attr_expression-attribute-method" class="method-detail">
|
231
|
+
<a name="attr_expression"></a>
|
232
|
+
|
233
|
+
<a name="attr_expression="></a>
|
234
|
+
|
235
|
+
<div class="method-heading attribute-method-heading">
|
236
|
+
<span class="method-name">attr_expression</span><span
|
237
|
+
class="attribute-access-type">[RW]</span>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div id="attr_first-attribute-method" class="method-detail">
|
248
|
+
<a name="attr_first"></a>
|
249
|
+
|
250
|
+
<a name="attr_first="></a>
|
251
|
+
|
252
|
+
<div class="method-heading attribute-method-heading">
|
253
|
+
<span class="method-name">attr_first</span><span
|
254
|
+
class="attribute-access-type">[RW]</span>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div class="method-description">
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
|
264
|
+
<div id="attr_from-attribute-method" class="method-detail">
|
265
|
+
<a name="attr_from"></a>
|
266
|
+
|
267
|
+
<a name="attr_from="></a>
|
268
|
+
|
269
|
+
<div class="method-heading attribute-method-heading">
|
270
|
+
<span class="method-name">attr_from</span><span
|
271
|
+
class="attribute-access-type">[RW]</span>
|
272
|
+
</div>
|
273
|
+
|
274
|
+
<div class="method-description">
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
|
281
|
+
<div id="attr_group_by-attribute-method" class="method-detail">
|
282
|
+
<a name="attr_group_by"></a>
|
283
|
+
|
284
|
+
<a name="attr_group_by="></a>
|
285
|
+
|
286
|
+
<div class="method-heading attribute-method-heading">
|
287
|
+
<span class="method-name">attr_group_by</span><span
|
288
|
+
class="attribute-access-type">[RW]</span>
|
289
|
+
</div>
|
290
|
+
|
291
|
+
<div class="method-description">
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
<div id="attr_group_by_order-attribute-method" class="method-detail">
|
299
|
+
<a name="attr_group_by_order"></a>
|
300
|
+
|
301
|
+
<a name="attr_group_by_order="></a>
|
302
|
+
|
303
|
+
<div class="method-heading attribute-method-heading">
|
304
|
+
<span class="method-name">attr_group_by_order</span><span
|
305
|
+
class="attribute-access-type">[RW]</span>
|
306
|
+
</div>
|
307
|
+
|
308
|
+
<div class="method-description">
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
</div>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
<div id="attr_having-attribute-method" class="method-detail">
|
316
|
+
<a name="attr_having"></a>
|
317
|
+
|
318
|
+
<a name="attr_having="></a>
|
319
|
+
|
320
|
+
<div class="method-heading attribute-method-heading">
|
321
|
+
<span class="method-name">attr_having</span><span
|
322
|
+
class="attribute-access-type">[RW]</span>
|
323
|
+
</div>
|
324
|
+
|
325
|
+
<div class="method-description">
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
</div>
|
330
|
+
</div>
|
331
|
+
|
332
|
+
<div id="attr_index_hints-attribute-method" class="method-detail">
|
333
|
+
<a name="attr_index_hints"></a>
|
334
|
+
|
335
|
+
<a name="attr_index_hints="></a>
|
336
|
+
|
337
|
+
<div class="method-heading attribute-method-heading">
|
338
|
+
<span class="method-name">attr_index_hints</span><span
|
339
|
+
class="attribute-access-type">[RW]</span>
|
340
|
+
</div>
|
341
|
+
|
342
|
+
<div class="method-description">
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
<div id="attr_joins-attribute-method" class="method-detail">
|
350
|
+
<a name="attr_joins"></a>
|
351
|
+
|
352
|
+
<a name="attr_joins="></a>
|
353
|
+
|
354
|
+
<div class="method-heading attribute-method-heading">
|
355
|
+
<span class="method-name">attr_joins</span><span
|
356
|
+
class="attribute-access-type">[RW]</span>
|
357
|
+
</div>
|
358
|
+
|
359
|
+
<div class="method-description">
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</div>
|
364
|
+
</div>
|
365
|
+
|
366
|
+
<div id="attr_order_by-attribute-method" class="method-detail">
|
367
|
+
<a name="attr_order_by"></a>
|
368
|
+
|
369
|
+
<a name="attr_order_by="></a>
|
370
|
+
|
371
|
+
<div class="method-heading attribute-method-heading">
|
372
|
+
<span class="method-name">attr_order_by</span><span
|
373
|
+
class="attribute-access-type">[RW]</span>
|
374
|
+
</div>
|
375
|
+
|
376
|
+
<div class="method-description">
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
</div>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
<div id="attr_order_by_order-attribute-method" class="method-detail">
|
384
|
+
<a name="attr_order_by_order"></a>
|
385
|
+
|
386
|
+
<a name="attr_order_by_order="></a>
|
387
|
+
|
388
|
+
<div class="method-heading attribute-method-heading">
|
389
|
+
<span class="method-name">attr_order_by_order</span><span
|
390
|
+
class="attribute-access-type">[RW]</span>
|
391
|
+
</div>
|
392
|
+
|
393
|
+
<div class="method-description">
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
</div>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<div id="attr_skip-attribute-method" class="method-detail">
|
401
|
+
<a name="attr_skip"></a>
|
402
|
+
|
403
|
+
<a name="attr_skip="></a>
|
404
|
+
|
405
|
+
<div class="method-heading attribute-method-heading">
|
406
|
+
<span class="method-name">attr_skip</span><span
|
407
|
+
class="attribute-access-type">[RW]</span>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
<div class="method-description">
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
</div>
|
415
|
+
</div>
|
416
|
+
|
417
|
+
<div id="attr_unions-attribute-method" class="method-detail">
|
418
|
+
<a name="attr_unions"></a>
|
419
|
+
|
420
|
+
<a name="attr_unions="></a>
|
421
|
+
|
422
|
+
<div class="method-heading attribute-method-heading">
|
423
|
+
<span class="method-name">attr_unions</span><span
|
424
|
+
class="attribute-access-type">[RW]</span>
|
425
|
+
</div>
|
426
|
+
|
427
|
+
<div class="method-description">
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
</div>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
<div id="attr_where-attribute-method" class="method-detail">
|
435
|
+
<a name="attr_where"></a>
|
436
|
+
|
437
|
+
<a name="attr_where="></a>
|
438
|
+
|
439
|
+
<div class="method-heading attribute-method-heading">
|
440
|
+
<span class="method-name">attr_where</span><span
|
441
|
+
class="attribute-access-type">[RW]</span>
|
442
|
+
</div>
|
443
|
+
|
444
|
+
<div class="method-description">
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
</div>
|
449
|
+
</div>
|
450
|
+
|
451
|
+
</div><!-- attribute-method-details -->
|
452
|
+
|
453
|
+
|
454
|
+
<!-- Methods -->
|
455
|
+
|
456
|
+
<div id="public-class-method-details" class="method-section section">
|
457
|
+
<h3 class="section-header">Public Class Methods</h3>
|
458
|
+
|
459
|
+
|
460
|
+
<div id="new-method" class="method-detail ">
|
461
|
+
<a name="method-c-new"></a>
|
462
|
+
|
463
|
+
|
464
|
+
<div class="method-heading">
|
465
|
+
<span class="method-name">new</span><span
|
466
|
+
class="method-args">( _caller, *list )</span>
|
467
|
+
<span class="method-click-advice">click to toggle source</span>
|
468
|
+
</div>
|
469
|
+
|
470
|
+
|
471
|
+
<div class="method-description">
|
472
|
+
|
473
|
+
<p>Class constructor. _caller - the caller object *list - list of
|
474
|
+
sources for the FROM clause</p>
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
<div class="method-source-code" id="new-source">
|
479
|
+
<pre>
|
480
|
+
<span class="ruby-comment"># File lib/sqlconstructor.rb, line 587</span>
|
481
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> ( <span class="ruby-identifier">_caller</span>, *<span class="ruby-identifier">list</span> )
|
482
|
+
<span class="ruby-keyword">super</span> <span class="ruby-identifier">_caller</span>
|
483
|
+
<span class="ruby-ivar">@attr_expression</span> = <span class="ruby-constant">QAttr</span>.<span class="ruby-identifier">new</span>(
|
484
|
+
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-string">'attr_expression'</span>,
|
485
|
+
<span class="ruby-value">:text</span> =<span class="ruby-operator">></span> <span class="ruby-string">''</span>,
|
486
|
+
<span class="ruby-value">:val</span> =<span class="ruby-operator">></span> <span class="ruby-constant">SQLAliasedList</span>.<span class="ruby-identifier">new</span>( *<span class="ruby-identifier">list</span> )
|
487
|
+
)
|
488
|
+
<span class="ruby-keyword">end</span></pre>
|
489
|
+
</div><!-- new-source -->
|
490
|
+
|
491
|
+
</div>
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
</div><!-- new-method -->
|
497
|
+
|
498
|
+
|
499
|
+
</div><!-- public-class-method-details -->
|
500
|
+
|
501
|
+
<div id="public-instance-method-details" class="method-section section">
|
502
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
503
|
+
|
504
|
+
|
505
|
+
<div id="select_more-method" class="method-detail ">
|
506
|
+
<a name="method-i-select_more"></a>
|
507
|
+
|
508
|
+
|
509
|
+
<div class="method-heading">
|
510
|
+
<span class="method-name">select_more</span><span
|
511
|
+
class="method-args">( *list )</span>
|
512
|
+
<span class="method-click-advice">click to toggle source</span>
|
513
|
+
</div>
|
514
|
+
|
515
|
+
|
516
|
+
<div class="method-description">
|
517
|
+
|
518
|
+
<p>Add more objects to SELECT expression list ( @<a
|
519
|
+
href="http://:val">attr_expression</a> )</p>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
<div class="method-source-code" id="select_more-source">
|
524
|
+
<pre>
|
525
|
+
<span class="ruby-comment"># File lib/sqlconstructor.rb, line 599</span>
|
526
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">select_more</span> ( *<span class="ruby-identifier">list</span> )
|
527
|
+
<span class="ruby-ivar">@attr_expression</span>.<span class="ruby-identifier">val</span>.<span class="ruby-identifier">push</span> *<span class="ruby-identifier">list</span>
|
528
|
+
<span class="ruby-keyword">end</span></pre>
|
529
|
+
</div><!-- select_more-source -->
|
530
|
+
|
531
|
+
</div>
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
</div><!-- select_more-method -->
|
537
|
+
|
538
|
+
|
539
|
+
</div><!-- public-instance-method-details -->
|
540
|
+
|
541
|
+
</div><!-- 5Buntitled-5D -->
|
542
|
+
|
543
|
+
|
544
|
+
</div><!-- documentation -->
|
545
|
+
|
546
|
+
<div id="validator-badges">
|
547
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
548
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
549
|
+
Rdoc Generator</a> 2</small>.</p>
|
550
|
+
</div>
|
551
|
+
|
552
|
+
</body>
|
553
|
+
</html>
|
554
|
+
|