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
data/doc/SQLColumn.html
ADDED
@@ -0,0 +1,326 @@
|
|
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: SQLColumn</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/sqlobject_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/sqlobject.rb">lib/sqlobject.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="SQLObject.html">SQLObject</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-_prepareName">#_prepareName</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-to_s">#to_s</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">SQLColumn</h1>
|
175
|
+
|
176
|
+
<div id="description" class="description">
|
177
|
+
|
178
|
+
<p>Class representing SQL columns</p>
|
179
|
+
|
180
|
+
</div><!-- description -->
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
<!-- Methods -->
|
195
|
+
|
196
|
+
<div id="public-class-method-details" class="method-section section">
|
197
|
+
<h3 class="section-header">Public Class Methods</h3>
|
198
|
+
|
199
|
+
|
200
|
+
<div id="new-method" class="method-detail ">
|
201
|
+
<a name="method-c-new"></a>
|
202
|
+
|
203
|
+
|
204
|
+
<div class="method-heading">
|
205
|
+
<span class="method-name">new</span><span
|
206
|
+
class="method-args">( col = nil )</span>
|
207
|
+
<span class="method-click-advice">click to toggle source</span>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method-description">
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<div class="method-source-code" id="new-source">
|
218
|
+
<pre>
|
219
|
+
<span class="ruby-comment"># File lib/sqlobject.rb, line 103</span>
|
220
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> ( <span class="ruby-identifier">col</span> = <span class="ruby-keyword">nil</span> )
|
221
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">col</span>.<span class="ruby-identifier">is_a?</span>( <span class="ruby-constant">SQLColumn</span> ) <span class="ruby-operator">?</span> <span class="ruby-identifier">col</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">col</span> <span class="ruby-comment">#_prepareName( col )</span>
|
222
|
+
<span class="ruby-keyword">end</span></pre>
|
223
|
+
</div><!-- new-source -->
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
</div><!-- new-method -->
|
231
|
+
|
232
|
+
|
233
|
+
</div><!-- public-class-method-details -->
|
234
|
+
|
235
|
+
<div id="public-instance-method-details" class="method-section section">
|
236
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
237
|
+
|
238
|
+
|
239
|
+
<div id="to_s-method" class="method-detail ">
|
240
|
+
<a name="method-i-to_s"></a>
|
241
|
+
|
242
|
+
|
243
|
+
<div class="method-heading">
|
244
|
+
<span class="method-name">to_s</span><span
|
245
|
+
class="method-args">()</span>
|
246
|
+
<span class="method-click-advice">click to toggle source</span>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
<div class="method-description">
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<div class="method-source-code" id="to_s-source">
|
257
|
+
<pre>
|
258
|
+
<span class="ruby-comment"># File lib/sqlobject.rb, line 108</span>
|
259
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
260
|
+
<span class="ruby-ivar">@name</span>.<span class="ruby-identifier">to_s</span>
|
261
|
+
<span class="ruby-keyword">end</span></pre>
|
262
|
+
</div><!-- to_s-source -->
|
263
|
+
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</div><!-- to_s-method -->
|
270
|
+
|
271
|
+
|
272
|
+
</div><!-- public-instance-method-details -->
|
273
|
+
|
274
|
+
<div id="private-instance-method-details" class="method-section section">
|
275
|
+
<h3 class="section-header">Private Instance Methods</h3>
|
276
|
+
|
277
|
+
|
278
|
+
<div id="_prepareName-method" class="method-detail ">
|
279
|
+
<a name="method-i-_prepareName"></a>
|
280
|
+
|
281
|
+
|
282
|
+
<div class="method-heading">
|
283
|
+
<span class="method-name">_prepareName</span><span
|
284
|
+
class="method-args">( name )</span>
|
285
|
+
<span class="method-click-advice">click to toggle source</span>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
<div class="method-description">
|
290
|
+
|
291
|
+
<p>Prepare column name (remove all non-alphanumeric/underscore characters)</p>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<div class="method-source-code" id="_prepareName-source">
|
296
|
+
<pre>
|
297
|
+
<span class="ruby-comment"># File lib/sqlobject.rb, line 117</span>
|
298
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_prepareName</span> ( <span class="ruby-identifier">name</span> )
|
299
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span> <span class="ruby-regexp">/[\W]/</span>, <span class="ruby-string">''</span>
|
300
|
+
<span class="ruby-keyword">end</span></pre>
|
301
|
+
</div><!-- _prepareName-source -->
|
302
|
+
|
303
|
+
</div>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</div><!-- _prepareName-method -->
|
309
|
+
|
310
|
+
|
311
|
+
</div><!-- private-instance-method-details -->
|
312
|
+
|
313
|
+
</div><!-- 5Buntitled-5D -->
|
314
|
+
|
315
|
+
|
316
|
+
</div><!-- documentation -->
|
317
|
+
|
318
|
+
<div id="validator-badges">
|
319
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
320
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
321
|
+
Rdoc Generator</a> 2</small>.</p>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
</body>
|
325
|
+
</html>
|
326
|
+
|
@@ -0,0 +1,318 @@
|
|
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: SQLCondList</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/sqlobject_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/sqlobject.rb">lib/sqlobject.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="SQLObject.html">SQLObject</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-3C-3C">#<<</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-to_s">#to_s</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">SQLCondList</h1>
|
175
|
+
|
176
|
+
<div id="description" class="description">
|
177
|
+
|
178
|
+
</div><!-- description -->
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<!-- Methods -->
|
193
|
+
|
194
|
+
<div id="public-class-method-details" class="method-section section">
|
195
|
+
<h3 class="section-header">Public Class Methods</h3>
|
196
|
+
|
197
|
+
|
198
|
+
<div id="new-method" class="method-detail ">
|
199
|
+
<a name="method-c-new"></a>
|
200
|
+
|
201
|
+
|
202
|
+
<div class="method-heading">
|
203
|
+
<span class="method-name">new</span><span
|
204
|
+
class="method-args">( hash = { } )</span>
|
205
|
+
<span class="method-click-advice">click to toggle source</span>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
<div class="method-description">
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-source-code" id="new-source">
|
216
|
+
<pre>
|
217
|
+
<span class="ruby-comment"># File lib/sqlobject.rb, line 273</span>
|
218
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> ( <span class="ruby-identifier">hash</span> = { } )
|
219
|
+
<span class="ruby-ivar">@hash</span> = <span class="ruby-constant">Hash</span>[ <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">map</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> [ <span class="ruby-constant">SQLObject</span>.<span class="ruby-identifier">get</span>( <span class="ruby-identifier">k</span> ), <span class="ruby-constant">SQLObject</span>.<span class="ruby-identifier">get</span>( <span class="ruby-identifier">v</span> ) ] } ]
|
220
|
+
<span class="ruby-keyword">end</span></pre>
|
221
|
+
</div><!-- new-source -->
|
222
|
+
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</div><!-- new-method -->
|
229
|
+
|
230
|
+
|
231
|
+
</div><!-- public-class-method-details -->
|
232
|
+
|
233
|
+
<div id="public-instance-method-details" class="method-section section">
|
234
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
235
|
+
|
236
|
+
|
237
|
+
<div id="3C-3C-method" class="method-detail ">
|
238
|
+
<a name="method-i-3C-3C"></a>
|
239
|
+
|
240
|
+
|
241
|
+
<div class="method-heading">
|
242
|
+
<span class="method-name"><<</span><span
|
243
|
+
class="method-args">( new_hash )</span>
|
244
|
+
<span class="method-click-advice">click to toggle source</span>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-description">
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
<div class="method-source-code" id="3C-3C-source">
|
255
|
+
<pre>
|
256
|
+
<span class="ruby-comment"># File lib/sqlobject.rb, line 277</span>
|
257
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><<</span> ( <span class="ruby-identifier">new_hash</span> )
|
258
|
+
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">merge!</span> <span class="ruby-identifier">new_hash</span>
|
259
|
+
<span class="ruby-keyword">end</span></pre>
|
260
|
+
</div><!-- 3C-3C-source -->
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</div><!-- 3C-3C-method -->
|
268
|
+
|
269
|
+
|
270
|
+
<div id="to_s-method" class="method-detail ">
|
271
|
+
<a name="method-i-to_s"></a>
|
272
|
+
|
273
|
+
|
274
|
+
<div class="method-heading">
|
275
|
+
<span class="method-name">to_s</span><span
|
276
|
+
class="method-args">()</span>
|
277
|
+
<span class="method-click-advice">click to toggle source</span>
|
278
|
+
</div>
|
279
|
+
|
280
|
+
|
281
|
+
<div class="method-description">
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<div class="method-source-code" id="to_s-source">
|
288
|
+
<pre>
|
289
|
+
<span class="ruby-comment"># File lib/sqlobject.rb, line 281</span>
|
290
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
291
|
+
<span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">map</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">"="</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span>( <span class="ruby-string">","</span> )
|
292
|
+
<span class="ruby-keyword">end</span></pre>
|
293
|
+
</div><!-- to_s-source -->
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
</div><!-- to_s-method -->
|
301
|
+
|
302
|
+
|
303
|
+
</div><!-- public-instance-method-details -->
|
304
|
+
|
305
|
+
</div><!-- 5Buntitled-5D -->
|
306
|
+
|
307
|
+
|
308
|
+
</div><!-- documentation -->
|
309
|
+
|
310
|
+
<div id="validator-badges">
|
311
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
312
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
313
|
+
Rdoc Generator</a> 2</small>.</p>
|
314
|
+
</div>
|
315
|
+
|
316
|
+
</body>
|
317
|
+
</html>
|
318
|
+
|