inquery 1.0.2 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/LICENSE +1 -1
- data/README.md +4 -1
- data/RUBY_VERSION +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/doc/Inquery.html +6 -6
- data/doc/Inquery/Exceptions.html +6 -6
- data/doc/Inquery/Exceptions/Base.html +6 -6
- data/doc/Inquery/Exceptions/InvalidRelation.html +6 -6
- data/doc/Inquery/Exceptions/UnknownCallSignature.html +6 -6
- data/doc/Inquery/Mixins.html +6 -6
- data/doc/Inquery/Mixins/RawSqlUtils.html +6 -6
- data/doc/Inquery/Mixins/RelationValidation.html +17 -17
- data/doc/Inquery/Mixins/RelationValidation/ClassMethods.html +11 -11
- data/doc/Inquery/Mixins/SchemaValidation.html +6 -6
- data/doc/Inquery/Mixins/SchemaValidation/ClassMethods.html +136 -12
- data/doc/Inquery/Query.html +9 -9
- data/doc/Inquery/Query/Chainable.html +8 -8
- data/doc/_index.html +7 -7
- data/doc/class_list.html +2 -2
- data/doc/css/style.css +2 -2
- data/doc/file.README.html +24 -21
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +24 -21
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +18 -2
- data/doc/top-level-namespace.html +6 -6
- data/inquery.gemspec +6 -6
- data/lib/inquery/mixins/relation_validation.rb +14 -5
- data/lib/inquery/mixins/schema_validation.rb +14 -3
- data/lib/inquery/query.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c4ebd965ab27ba5e11502e0f6d90db2dadbeb8d6830c5f9e443cbd8f61a9597
|
4
|
+
data.tar.gz: f2e84fbacddd9c57697209a9bed74007aefef67107760eeffba734ff5a55ecf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1d71dd15f4f0f7edcd259fa655add871903aa178c06005ac45d8ce472844040c8406f7fed2ec17fbcaf34668cba0308905a23748a47a1e686e3fe509c20d54b
|
7
|
+
data.tar.gz: d034afc517e730bb1cb6e03cf0d4138ae31321afc06aac83801cf2ec266bf91b07efb9ced15f921fcf22cd375d7a1c15b5d9d9e5264f2c1ef4d8e074cabddd02
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## 1.0.7 (2020-11-24)
|
4
|
+
|
5
|
+
- Improve support for schemacop 3.x
|
6
|
+
|
7
|
+
## 1.0.6 (2020-11-24)
|
8
|
+
|
9
|
+
- Improve support for schemacop 3.x
|
10
|
+
|
11
|
+
## 1.0.5 (2020-11-24)
|
12
|
+
|
13
|
+
- Improve support for schemacop 3.x and document it
|
14
|
+
|
15
|
+
## 1.0.4 (2020-11-24)
|
16
|
+
|
17
|
+
- Add support for schemacop 3.x (but still using 2.x schema version)
|
18
|
+
|
19
|
+
## 1.0.3 (2020-05-12)
|
20
|
+
|
21
|
+
- Overwrite parameter hash with the casted version if using
|
22
|
+
casting inside the schemacop `schema` block
|
23
|
+
|
3
24
|
## 1.0.2 (2019-10-09)
|
4
25
|
|
5
26
|
- Add new mixin `RawSqlUtils`, which provides two methods for
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -284,6 +284,9 @@ class SomeQueryClass < Inquery::Query
|
|
284
284
|
end
|
285
285
|
```
|
286
286
|
|
287
|
+
Inquery supports both schemacop specification versions 2 and 3 using the methods
|
288
|
+
`schema` / `schema2` for version 2 and method `schema3` for version 3.
|
289
|
+
|
287
290
|
## Rails integration
|
288
291
|
|
289
292
|
While it is optional, Inquery has been written from the ground up to be
|
@@ -322,4 +325,4 @@ in his [blog post](http://craftingruby.com/posts/2015/06/29/query-objects-throug
|
|
322
325
|
|
323
326
|
## Copyright
|
324
327
|
|
325
|
-
Copyright (c)
|
328
|
+
Copyright (c) 2020 Sitrox. See `LICENSE` for further details.
|
data/RUBY_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.6.2-p47
|
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ task :gemspec do
|
|
21
21
|
spec.add_dependency 'minitest'
|
22
22
|
spec.add_dependency 'activesupport'
|
23
23
|
spec.add_dependency 'activerecord'
|
24
|
-
spec.add_dependency 'schemacop', '
|
24
|
+
spec.add_dependency 'schemacop', '>= 2.0'
|
25
25
|
end
|
26
26
|
|
27
27
|
File.open('inquery.gemspec', 'w') { |f| f.write(gemspec.to_ruby.strip) }
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
data/doc/Inquery.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery";
|
19
19
|
relpath = '';
|
20
20
|
</script>
|
@@ -109,9 +109,9 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div id="footer">
|
112
|
-
Generated on Wed
|
112
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
113
113
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
114
|
-
0.9.
|
114
|
+
0.9.25 (ruby-2.6.2).
|
115
115
|
</div>
|
116
116
|
|
117
117
|
</div>
|
data/doc/Inquery/Exceptions.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Exceptions
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Exceptions";
|
19
19
|
relpath = '../';
|
20
20
|
</script>
|
@@ -105,9 +105,9 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Wed
|
108
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
-
0.9.
|
110
|
+
0.9.25 (ruby-2.6.2).
|
111
111
|
</div>
|
112
112
|
|
113
113
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::Base
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Exceptions::Base";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -118,9 +118,9 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on Wed
|
121
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
|
-
0.9.
|
123
|
+
0.9.25 (ruby-2.6.2).
|
124
124
|
</div>
|
125
125
|
|
126
126
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::InvalidRelation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Exceptions::InvalidRelation";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -122,9 +122,9 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on Wed
|
125
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.9.
|
127
|
+
0.9.25 (ruby-2.6.2).
|
128
128
|
</div>
|
129
129
|
|
130
130
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::UnknownCallSignature
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Exceptions::UnknownCallSignature";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -122,9 +122,9 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on Wed
|
125
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.9.
|
127
|
+
0.9.25 (ruby-2.6.2).
|
128
128
|
</div>
|
129
129
|
|
130
130
|
</div>
|
data/doc/Inquery/Mixins.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Mixins";
|
19
19
|
relpath = '../';
|
20
20
|
</script>
|
@@ -107,9 +107,9 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on Wed
|
110
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
-
0.9.
|
112
|
+
0.9.25 (ruby-2.6.2).
|
113
113
|
</div>
|
114
114
|
|
115
115
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RawSqlUtils
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Mixins::RawSqlUtils";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -106,9 +106,9 @@
|
|
106
106
|
</div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on Wed
|
109
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
|
-
0.9.
|
111
|
+
0.9.25 (ruby-2.6.2).
|
112
112
|
</div>
|
113
113
|
|
114
114
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RelationValidation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Mixins::RelationValidation";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -227,15 +227,6 @@ options specified at class level using the <code>relation</code> method.</p>
|
|
227
227
|
<pre class="lines">
|
228
228
|
|
229
229
|
|
230
|
-
54
|
231
|
-
55
|
232
|
-
56
|
233
|
-
57
|
234
|
-
58
|
235
|
-
59
|
236
|
-
60
|
237
|
-
61
|
238
|
-
62
|
239
230
|
63
|
240
231
|
64
|
241
232
|
65
|
@@ -268,10 +259,19 @@ options specified at class level using the <code>relation</code> method.</p>
|
|
268
259
|
92
|
269
260
|
93
|
270
261
|
94
|
271
|
-
95
|
262
|
+
95
|
263
|
+
96
|
264
|
+
97
|
265
|
+
98
|
266
|
+
99
|
267
|
+
100
|
268
|
+
101
|
269
|
+
102
|
270
|
+
103
|
271
|
+
104</pre>
|
272
272
|
</td>
|
273
273
|
<td>
|
274
|
-
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line
|
274
|
+
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line 63</span>
|
275
275
|
|
276
276
|
<span class='kw'>def</span> <span class='id identifier rubyid_validate_relation!'>validate_relation!</span><span class='lparen'>(</span><span class='id identifier rubyid_relation'>relation</span><span class='rparen'>)</span>
|
277
277
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#DEFAULT_OPTIONS-constant" title="Inquery::Mixins::RelationValidation::DEFAULT_OPTIONS (constant)">DEFAULT_OPTIONS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
@@ -325,9 +325,9 @@ options specified at class level using the <code>relation</code> method.</p>
|
|
325
325
|
</div>
|
326
326
|
|
327
327
|
<div id="footer">
|
328
|
-
Generated on Wed
|
328
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
329
329
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
330
|
-
0.9.
|
330
|
+
0.9.25 (ruby-2.6.2).
|
331
331
|
</div>
|
332
332
|
|
333
333
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RelationValidation::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Mixins::RelationValidation::ClassMethods";
|
19
19
|
relpath = '../../../';
|
20
20
|
</script>
|
@@ -156,13 +156,13 @@ on. See <span class='object_link'><a href="../RelationValidation.html#OPTIONS_SC
|
|
156
156
|
<pre class="lines">
|
157
157
|
|
158
158
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
159
|
+
55
|
160
|
+
56
|
161
|
+
57
|
162
|
+
58</pre>
|
163
163
|
</td>
|
164
164
|
<td>
|
165
|
-
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line
|
165
|
+
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line 55</span>
|
166
166
|
|
167
167
|
<span class='kw'>def</span> <span class='id identifier rubyid_relation'>relation</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
168
168
|
<span class='const'><span class='object_link'><a href="../RelationValidation.html#OPTIONS_SCHEMA-constant" title="Inquery::Mixins::RelationValidation::OPTIONS_SCHEMA (constant)">OPTIONS_SCHEMA</a></span></span><span class='period'>.</span><span class='id identifier rubyid_validate!'>validate!</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -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
|
181
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
182
182
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
183
|
-
0.9.
|
183
|
+
0.9.25 (ruby-2.6.2).
|
184
184
|
</div>
|
185
185
|
|
186
186
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::SchemaValidation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Inquery::Mixins::SchemaValidation";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Wed
|
119
|
+
Generated on Wed Nov 25 14:05:20 2020 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.9.
|
121
|
+
0.9.25 (ruby-2.6.2).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</div>
|