inquery 1.0.1 → 1.0.2

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.
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::RelationValidation::ClassMethods
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.20
10
10
 
11
11
  </title>
12
12
 
@@ -178,9 +178,9 @@ on. See <span class='object_link'><a href="../RelationValidation.html#OPTIONS_SC
178
178
  </div>
179
179
 
180
180
  <div id="footer">
181
- Generated on Wed May 17 12:30:38 2017 by
181
+ Generated on Wed Oct 9 16:20:53 2019 by
182
182
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
183
- 0.9.9 (ruby-2.3.1).
183
+ 0.9.20 (ruby-2.6.2).
184
184
  </div>
185
185
 
186
186
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::SchemaValidation
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.20
10
10
 
11
11
  </title>
12
12
 
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed May 17 12:30:38 2017 by
119
+ Generated on Wed Oct 9 16:20:53 2019 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.9 (ruby-2.3.1).
121
+ 0.9.20 (ruby-2.6.2).
122
122
  </div>
123
123
 
124
124
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Inquery::Mixins::SchemaValidation::ClassMethods
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.20
10
10
 
11
11
  </title>
12
12
 
@@ -168,9 +168,9 @@
168
168
  </div>
169
169
 
170
170
  <div id="footer">
171
- Generated on Wed May 17 12:30:38 2017 by
171
+ Generated on Wed Oct 9 16:20:53 2019 by
172
172
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
173
- 0.9.9 (ruby-2.3.1).
173
+ 0.9.20 (ruby-2.6.2).
174
174
  </div>
175
175
 
176
176
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Inquery::Query
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.20
10
10
 
11
11
  </title>
12
12
 
@@ -89,7 +89,7 @@
89
89
 
90
90
  <dl>
91
91
  <dt>Includes:</dt>
92
- <dd><span class='object_link'><a href="Mixins/SchemaValidation.html" title="Inquery::Mixins::SchemaValidation (module)">Mixins::SchemaValidation</a></span></dd>
92
+ <dd><span class='object_link'><a href="Mixins/RawSqlUtils.html" title="Inquery::Mixins::RawSqlUtils (module)">Mixins::RawSqlUtils</a></span>, <span class='object_link'><a href="Mixins/SchemaValidation.html" title="Inquery::Mixins::SchemaValidation (module)">Mixins::SchemaValidation</a></span></dd>
93
93
  </dl>
94
94
 
95
95
 
@@ -241,6 +241,29 @@
241
241
  <span class="summary_desc"><div class='inline'><p>Override this method to perform the actual query.</p>
242
242
  </div></span>
243
243
 
244
+ </li>
245
+
246
+
247
+ <li class="public ">
248
+ <span class="summary_signature">
249
+
250
+ <a href="#connection-instance_method" title="#connection (instance method)">#<strong>connection</strong> &#x21d2; Object </a>
251
+
252
+
253
+
254
+ </span>
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+ <span class="summary_desc"><div class='inline'><p>Provides a connection to the database.</p>
265
+ </div></span>
266
+
244
267
  </li>
245
268
 
246
269
 
@@ -348,6 +371,13 @@
348
371
 
349
372
 
350
373
 
374
+
375
+
376
+
377
+
378
+
379
+
380
+
351
381
  <div id="constructor_details" class="method_details_list">
352
382
  <h2>Constructor Details</h2>
353
383
 
@@ -377,16 +407,16 @@ was a validation schema specified).</p>
377
407
  <pre class="lines">
378
408
 
379
409
 
380
- 21
381
410
  22
382
411
  23
383
412
  24
384
413
  25
385
414
  26
386
- 27</pre>
415
+ 27
416
+ 28</pre>
387
417
  </td>
388
418
  <td>
389
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 21</span>
419
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 22</span>
390
420
 
391
421
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
392
422
  <span class='ivar'>@params</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span>
@@ -432,12 +462,12 @@ was a validation schema specified).</p>
432
462
  <pre class="lines">
433
463
 
434
464
 
435
- 5
436
465
  6
437
- 7</pre>
466
+ 7
467
+ 8</pre>
438
468
  </td>
439
469
  <td>
440
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 5</span>
470
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 6</span>
441
471
 
442
472
  <span class='kw'>def</span> <span class='id identifier rubyid_params'>params</span>
443
473
  <span class='ivar'>@params</span>
@@ -480,12 +510,12 @@ and runs <code>call</code> on it.</p>
480
510
  <pre class="lines">
481
511
 
482
512
 
483
- 15
484
513
  16
485
- 17</pre>
514
+ 17
515
+ 18</pre>
486
516
  </td>
487
517
  <td>
488
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 15</span>
518
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 16</span>
489
519
 
490
520
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
491
521
  <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
@@ -521,12 +551,12 @@ and runs <code>call</code> and <code>process</code> on it.</p>
521
551
  <pre class="lines">
522
552
 
523
553
 
524
- 9
525
554
  10
526
- 11</pre>
555
+ 11
556
+ 12</pre>
527
557
  </td>
528
558
  <td>
529
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 9</span>
559
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 10</span>
530
560
 
531
561
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
532
562
  <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
@@ -567,12 +597,12 @@ and runs <code>call</code> and <code>process</code> on it.</p>
567
597
  <pre class="lines">
568
598
 
569
599
 
570
- 35
571
600
  36
572
- 37</pre>
601
+ 37
602
+ 38</pre>
573
603
  </td>
574
604
  <td>
575
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 35</span>
605
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 36</span>
576
606
 
577
607
  <span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
578
608
  <span class='id identifier rubyid_fail'>fail</span> <span class='const'>NotImplementedError</span>
@@ -580,6 +610,47 @@ and runs <code>call</code> and <code>process</code> on it.</p>
580
610
  </td>
581
611
  </tr>
582
612
  </table>
613
+ </div>
614
+
615
+ <div class="method_details ">
616
+ <h3 class="signature " id="connection-instance_method">
617
+
618
+ #<strong>connection</strong> &#x21d2; <tt>Object</tt>
619
+
620
+
621
+
622
+
623
+
624
+ </h3><div class="docstring">
625
+ <div class="discussion">
626
+ <p>Provides a connection to the database. May be overridden if a different
627
+ connection is desired. Defaults to <code>ActiveRecord::Base.connection</code>.</p>
628
+
629
+
630
+ </div>
631
+ </div>
632
+ <div class="tags">
633
+
634
+
635
+ </div><table class="source_code">
636
+ <tr>
637
+ <td>
638
+ <pre class="lines">
639
+
640
+
641
+ 53
642
+ 54
643
+ 55</pre>
644
+ </td>
645
+ <td>
646
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 53</span>
647
+
648
+ <span class='kw'>def</span> <span class='id identifier rubyid_connection'>connection</span>
649
+ <span class='const'>ActiveRecord</span><span class='op'>::</span><span class='const'>Base</span><span class='period'>.</span><span class='id identifier rubyid_connection'>connection</span>
650
+ <span class='kw'>end</span></pre>
651
+ </td>
652
+ </tr>
653
+ </table>
583
654
  </div>
584
655
 
585
656
  <div class="method_details ">
@@ -608,12 +679,12 @@ easyer access.</p>
608
679
  <pre class="lines">
609
680
 
610
681
 
611
- 46
612
682
  47
613
- 48</pre>
683
+ 48
684
+ 49</pre>
614
685
  </td>
615
686
  <td>
616
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 46</span>
687
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 47</span>
617
688
 
618
689
  <span class='kw'>def</span> <span class='id identifier rubyid_osparams'>osparams</span>
619
690
  <span class='ivar'>@osparams</span> <span class='op'>||=</span> <span class='const'>OpenStruct</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
@@ -648,12 +719,12 @@ easyer access.</p>
648
719
  <pre class="lines">
649
720
 
650
721
 
651
- 40
652
722
  41
653
- 42</pre>
723
+ 42
724
+ 43</pre>
654
725
  </td>
655
726
  <td>
656
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 40</span>
727
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 41</span>
657
728
 
658
729
  <span class='kw'>def</span> <span class='id identifier rubyid_process'>process</span><span class='lparen'>(</span><span class='id identifier rubyid_results'>results</span><span class='rparen'>)</span>
659
730
  <span class='id identifier rubyid_results'>results</span>
@@ -688,12 +759,12 @@ easyer access.</p>
688
759
  <pre class="lines">
689
760
 
690
761
 
691
- 30
692
762
  31
693
- 32</pre>
763
+ 32
764
+ 33</pre>
694
765
  </td>
695
766
  <td>
696
- <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 30</span>
767
+ <pre class="code"><span class="info file"># File 'lib/inquery/query.rb', line 31</span>
697
768
 
698
769
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
699
770
  <span class='id identifier rubyid_process'>process</span><span class='lparen'>(</span><span class='id identifier rubyid_call'>call</span><span class='rparen'>)</span>
@@ -708,9 +779,9 @@ easyer access.</p>
708
779
  </div>
709
780
 
710
781
  <div id="footer">
711
- Generated on Wed May 17 12:30:38 2017 by
782
+ Generated on Wed Oct 9 16:20:53 2019 by
712
783
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
713
- 0.9.9 (ruby-2.3.1).
784
+ 0.9.20 (ruby-2.6.2).
714
785
  </div>
715
786
 
716
787
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Inquery::Query::Chainable
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.20
10
10
 
11
11
  </title>
12
12
 
@@ -216,6 +216,29 @@
216
216
 
217
217
  <span class="summary_desc"><div class='inline'></div></span>
218
218
 
219
+ </li>
220
+
221
+
222
+ <li class="public ">
223
+ <span class="summary_signature">
224
+
225
+ <a href="#connection-instance_method" title="#connection (instance method)">#<strong>connection</strong> &#x21d2; Object </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+ <span class="summary_desc"><div class='inline'><p>Override the connection method to (re-)use the connection of the relation.</p>
240
+ </div></span>
241
+
219
242
  </li>
220
243
 
221
244
 
@@ -277,6 +300,13 @@
277
300
 
278
301
 
279
302
 
303
+
304
+
305
+
306
+
307
+
308
+
309
+
280
310
  <div id="constructor_details" class="method_details_list">
281
311
  <h2>Constructor Details</h2>
282
312
 
@@ -452,6 +482,46 @@
452
482
  </td>
453
483
  </tr>
454
484
  </table>
485
+ </div>
486
+
487
+ <div class="method_details ">
488
+ <h3 class="signature " id="connection-instance_method">
489
+
490
+ #<strong>connection</strong> &#x21d2; <tt>Object</tt>
491
+
492
+
493
+
494
+
495
+
496
+ </h3><div class="docstring">
497
+ <div class="discussion">
498
+ <p>Override the connection method to (re-)use the connection of the relation</p>
499
+
500
+
501
+ </div>
502
+ </div>
503
+ <div class="tags">
504
+
505
+
506
+ </div><table class="source_code">
507
+ <tr>
508
+ <td>
509
+ <pre class="lines">
510
+
511
+
512
+ 23
513
+ 24
514
+ 25</pre>
515
+ </td>
516
+ <td>
517
+ <pre class="code"><span class="info file"># File 'lib/inquery/query/chainable.rb', line 23</span>
518
+
519
+ <span class='kw'>def</span> <span class='id identifier rubyid_connection'>connection</span>
520
+ <span class='ivar'>@relation</span><span class='period'>.</span><span class='id identifier rubyid_connection'>connection</span>
521
+ <span class='kw'>end</span></pre>
522
+ </td>
523
+ </tr>
524
+ </table>
455
525
  </div>
456
526
 
457
527
  </div>
@@ -459,9 +529,9 @@
459
529
  </div>
460
530
 
461
531
  <div id="footer">
462
- Generated on Wed May 17 12:30:39 2017 by
532
+ Generated on Wed Oct 9 16:20:53 2019 by
463
533
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
464
- 0.9.9 (ruby-2.3.1).
534
+ 0.9.20 (ruby-2.6.2).
465
535
  </div>
466
536
 
467
537
  </div>
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
- Documentation by YARD 0.9.9
7
+ Documentation by YARD 0.9.20
8
8
 
9
9
  </title>
10
10
 
@@ -52,7 +52,7 @@
52
52
  <div class="clear"></div>
53
53
  </div>
54
54
 
55
- <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.9</h1>
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.20</h1>
56
56
  <div id="listing">
57
57
  <h1 class="alphaindex">Alphabetic Index</h1>
58
58
 
@@ -103,16 +103,16 @@
103
103
  </li>
104
104
 
105
105
  <li>
106
- <span class='object_link'><a href="Inquery/Mixins/SchemaValidation/ClassMethods.html" title="Inquery::Mixins::SchemaValidation::ClassMethods (module)">ClassMethods</a></span>
106
+ <span class='object_link'><a href="Inquery/Mixins/RelationValidation/ClassMethods.html" title="Inquery::Mixins::RelationValidation::ClassMethods (module)">ClassMethods</a></span>
107
107
 
108
- <small>(Inquery::Mixins::SchemaValidation)</small>
108
+ <small>(Inquery::Mixins::RelationValidation)</small>
109
109
 
110
110
  </li>
111
111
 
112
112
  <li>
113
- <span class='object_link'><a href="Inquery/Mixins/RelationValidation/ClassMethods.html" title="Inquery::Mixins::RelationValidation::ClassMethods (module)">ClassMethods</a></span>
113
+ <span class='object_link'><a href="Inquery/Mixins/SchemaValidation/ClassMethods.html" title="Inquery::Mixins::SchemaValidation::ClassMethods (module)">ClassMethods</a></span>
114
114
 
115
- <small>(Inquery::Mixins::RelationValidation)</small>
115
+ <small>(Inquery::Mixins::SchemaValidation)</small>
116
116
 
117
117
  </li>
118
118
 
@@ -189,6 +189,13 @@
189
189
  <li class="letter">R</li>
190
190
  <ul>
191
191
 
192
+ <li>
193
+ <span class='object_link'><a href="Inquery/Mixins/RawSqlUtils.html" title="Inquery::Mixins::RawSqlUtils (module)">RawSqlUtils</a></span>
194
+
195
+ <small>(Inquery::Mixins)</small>
196
+
197
+ </li>
198
+
192
199
  <li>
193
200
  <span class='object_link'><a href="Inquery/Mixins/RelationValidation.html" title="Inquery::Mixins::RelationValidation (module)">RelationValidation</a></span>
194
201
 
@@ -241,9 +248,9 @@
241
248
  </div>
242
249
 
243
250
  <div id="footer">
244
- Generated on Wed May 17 12:30:38 2017 by
251
+ Generated on Wed Oct 9 16:20:52 2019 by
245
252
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
246
- 0.9.9 (ruby-2.3.1).
253
+ 0.9.20 (ruby-2.6.2).
247
254
  </div>
248
255
 
249
256
  </div>