inquery 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/README.md +11 -2
- data/RUBY_VERSION +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/doc/Inquery.html +38 -38
- data/doc/Inquery/Exceptions.html +38 -38
- data/doc/Inquery/Exceptions/Base.html +44 -43
- data/doc/Inquery/Exceptions/InvalidRelation.html +44 -43
- data/doc/Inquery/Exceptions/UnknownCallSignature.html +44 -43
- data/doc/Inquery/Mixins.html +38 -38
- data/doc/Inquery/Mixins/RelationValidation.html +70 -73
- data/doc/Inquery/Mixins/RelationValidation/ClassMethods.html +45 -47
- data/doc/Inquery/Mixins/SchemaValidation.html +47 -45
- data/doc/Inquery/Mixins/SchemaValidation/ClassMethods.html +41 -41
- data/doc/Inquery/Query.html +87 -105
- data/doc/Inquery/Query/Chainable.html +66 -73
- data/doc/_index.html +28 -31
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +244 -91
- data/doc/file.README.html +135 -143
- data/doc/file_list.html +26 -30
- data/doc/frames.html +7 -16
- data/doc/index.html +135 -143
- data/doc/js/app.js +106 -77
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +98 -74
- data/doc/top-level-namespace.html +34 -36
- data/inquery.gemspec +44 -44
- metadata +7 -8
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::InvalidRelation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Inquery::Exceptions::InvalidRelation";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Inquery/Exceptions/InvalidRelation.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (I)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../Inquery.html" title="Inquery (module)">Inquery</a></span></span> » <span class='title'><span class='object_link'><a href="../Exceptions.html" title="Inquery::Exceptions (module)">Exceptions</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">InvalidRelation</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Exception: Inquery::Exceptions::InvalidRelation
|
62
|
+
<div id="content"><h1>Exception: Inquery::Exceptions::InvalidRelation
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Inquery::Exceptions::Base (class)">Base</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -87,21 +83,25 @@
|
|
87
83
|
</ul>
|
88
84
|
<a href="#" class="inheritanceTree">show all</a>
|
89
85
|
|
90
|
-
|
91
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
92
88
|
|
89
|
+
|
93
90
|
|
94
|
-
|
95
91
|
|
96
|
-
|
97
92
|
|
98
93
|
|
99
94
|
|
100
|
-
|
101
|
-
<dd class="r2 last">lib/inquery/exceptions.rb</dd>
|
95
|
+
|
102
96
|
|
103
|
-
|
104
|
-
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/inquery/exceptions.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
104
|
+
</div>
|
105
105
|
|
106
106
|
|
107
107
|
|
@@ -121,11 +121,12 @@
|
|
121
121
|
|
122
122
|
</div>
|
123
123
|
|
124
|
-
|
125
|
-
Generated on
|
124
|
+
<div id="footer">
|
125
|
+
Generated on Tue May 16 10:49:05 2017 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.
|
127
|
+
0.9.9 (ruby-2.3.1).
|
128
128
|
</div>
|
129
129
|
|
130
|
+
</div>
|
130
131
|
</body>
|
131
132
|
</html>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Exception: Inquery::Exceptions::UnknownCallSignature
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Inquery::Exceptions::UnknownCallSignature";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Inquery/Exceptions/UnknownCallSignature.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (U)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../Inquery.html" title="Inquery (module)">Inquery</a></span></span> » <span class='title'><span class='object_link'><a href="../Exceptions.html" title="Inquery::Exceptions (module)">Exceptions</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">UnknownCallSignature</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Exception: Inquery::Exceptions::UnknownCallSignature
|
62
|
+
<div id="content"><h1>Exception: Inquery::Exceptions::UnknownCallSignature
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Inquery::Exceptions::Base (class)">Base</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -87,21 +83,25 @@
|
|
87
83
|
</ul>
|
88
84
|
<a href="#" class="inheritanceTree">show all</a>
|
89
85
|
|
90
|
-
|
91
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
92
88
|
|
89
|
+
|
93
90
|
|
94
|
-
|
95
91
|
|
96
|
-
|
97
92
|
|
98
93
|
|
99
94
|
|
100
|
-
|
101
|
-
<dd class="r2 last">lib/inquery/exceptions.rb</dd>
|
95
|
+
|
102
96
|
|
103
|
-
|
104
|
-
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/inquery/exceptions.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
104
|
+
</div>
|
105
105
|
|
106
106
|
|
107
107
|
|
@@ -121,11 +121,12 @@
|
|
121
121
|
|
122
122
|
</div>
|
123
123
|
|
124
|
-
|
125
|
-
Generated on
|
124
|
+
<div id="footer">
|
125
|
+
Generated on Tue May 16 10:49:05 2017 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
-
0.
|
127
|
+
0.9.9 (ruby-2.3.1).
|
128
128
|
</div>
|
129
129
|
|
130
|
+
</div>
|
130
131
|
</body>
|
131
132
|
</html>
|
data/doc/Inquery/Mixins.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Inquery::Mixins";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Inquery/Mixins.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,63 +27,63 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (M)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Inquery.html" title="Inquery (module)">Inquery</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Mixins</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Inquery::Mixins
|
62
|
+
<div id="content"><h1>Module: Inquery::Mixins
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
71
69
|
|
72
|
-
<dl class="box">
|
73
70
|
|
74
71
|
|
75
|
-
|
76
72
|
|
77
|
-
|
78
73
|
|
79
74
|
|
75
|
+
|
80
76
|
|
81
|
-
|
82
|
-
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/inquery/mixins/schema_validation.rb<span class="defines">,<br />
|
83
82
|
lib/inquery/mixins/relation_validation.rb</span>
|
84
83
|
</dd>
|
84
|
+
</dl>
|
85
85
|
|
86
|
-
</
|
87
|
-
<div class="clear"></div>
|
86
|
+
</div>
|
88
87
|
|
89
88
|
<h2>Defined Under Namespace</h2>
|
90
89
|
<p class="children">
|
@@ -107,11 +106,12 @@
|
|
107
106
|
|
108
107
|
</div>
|
109
108
|
|
110
|
-
|
111
|
-
Generated on
|
109
|
+
<div id="footer">
|
110
|
+
Generated on Tue May 16 10:49:05 2017 by
|
112
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.
|
112
|
+
0.9.9 (ruby-2.3.1).
|
114
113
|
</div>
|
115
114
|
|
115
|
+
</div>
|
116
116
|
</body>
|
117
117
|
</html>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Module: Inquery::Mixins::RelationValidation
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Inquery::Mixins::RelationValidation";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Inquery/Mixins/RelationValidation.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,69 +27,71 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (R)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../Inquery.html" title="Inquery (module)">Inquery</a></span></span> » <span class='title'><span class='object_link'><a href="../Mixins.html" title="Inquery::Mixins (module)">Mixins</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">RelationValidation</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
65
61
|
|
66
|
-
|
62
|
+
<div id="content"><h1>Module: Inquery::Mixins::RelationValidation
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
71
69
|
|
72
|
-
<dl class="box">
|
73
70
|
|
74
71
|
|
75
|
-
|
76
|
-
<dt
|
77
|
-
<dd
|
78
|
-
|
79
|
-
|
72
|
+
<dl>
|
73
|
+
<dt>Extended by:</dt>
|
74
|
+
<dd>ActiveSupport::Concern</dd>
|
75
|
+
</dl>
|
80
76
|
|
81
|
-
|
82
77
|
|
83
78
|
|
84
|
-
<dt class="r2">Included in:</dt>
|
85
|
-
<dd class="r2"><span class='object_link'><a href="../Query/Chainable.html" title="Inquery::Query::Chainable (class)">Query::Chainable</a></span></dd>
|
86
|
-
|
87
79
|
|
80
|
+
|
81
|
+
|
82
|
+
<dl>
|
83
|
+
<dt>Included in:</dt>
|
84
|
+
<dd><span class='object_link'><a href="../Query/Chainable.html" title="Inquery::Query::Chainable (class)">Query::Chainable</a></span></dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
88
|
|
89
|
-
|
90
|
-
<
|
89
|
+
<dl>
|
90
|
+
<dt>Defined in:</dt>
|
91
|
+
<dd>lib/inquery/mixins/relation_validation.rb</dd>
|
92
|
+
</dl>
|
91
93
|
|
92
|
-
</
|
93
|
-
<div class="clear"></div>
|
94
|
+
</div>
|
94
95
|
|
95
96
|
<h2>Defined Under Namespace</h2>
|
96
97
|
<p class="children">
|
@@ -104,13 +105,12 @@
|
|
104
105
|
</p>
|
105
106
|
|
106
107
|
<h2>Constant Summary</h2>
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<dd><pre class="code"><span class='lbrace'>{</span>
|
108
|
+
<dl class="constants">
|
109
|
+
|
110
|
+
<dt id="OPTIONS_SCHEMA-constant" class="">OPTIONS_SCHEMA =
|
111
|
+
|
112
|
+
</dt>
|
113
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
114
114
|
<span class='label'>hash:</span> <span class='lbrace'>{</span>
|
115
115
|
<span class='label'>class:</span> <span class='lbrace'>{</span> <span class='label'>type:</span> <span class='const'>String</span><span class='comma'>,</span> <span class='label'>null:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>required:</span> <span class='kw'>false</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
116
116
|
<span class='label'>fields:</span> <span class='lbrace'>{</span> <span class='label'>type:</span> <span class='symbol'>:integer</span><span class='comma'>,</span> <span class='label'>null:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>required:</span> <span class='kw'>false</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
@@ -118,11 +118,11 @@
|
|
118
118
|
<span class='label'>default:</span> <span class='lbrace'>{</span> <span class='label'>type:</span> <span class='lbracket'>[</span><span class='const'>Proc</span><span class='comma'>,</span> <span class='const'>FalseClass</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>null:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>required:</span> <span class='kw'>false</span> <span class='rbrace'>}</span>
|
119
119
|
<span class='rbrace'>}</span>
|
120
120
|
<span class='rbrace'>}</span></pre></dd>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
121
|
+
|
122
|
+
<dt id="DEFAULT_OPTIONS-constant" class="">DEFAULT_OPTIONS =
|
123
|
+
|
124
|
+
</dt>
|
125
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
126
126
|
<span class='comment'># Allows to restrict the class (attribute `klass`) of the relation. Use
|
127
127
|
</span> <span class='comment'># `nil` to not perform any checks. The `class` attribute will also be
|
128
128
|
</span> <span class='comment'># taken to infer a default if no relation is given and you didn't
|
@@ -147,9 +147,8 @@
|
|
147
147
|
</span> <span class='comment'># behavior.
|
148
148
|
</span> <span class='label'>default_select:</span> <span class='symbol'>:id</span>
|
149
149
|
<span class='rbrace'>}</span></pre></dd>
|
150
|
-
|
151
|
-
|
152
|
-
|
150
|
+
|
151
|
+
</dl>
|
153
152
|
|
154
153
|
|
155
154
|
|
@@ -160,7 +159,7 @@
|
|
160
159
|
|
161
160
|
<h2>
|
162
161
|
Instance Method Summary
|
163
|
-
<small
|
162
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
164
163
|
</h2>
|
165
164
|
|
166
165
|
<ul class="summary">
|
@@ -168,7 +167,7 @@
|
|
168
167
|
<li class="public ">
|
169
168
|
<span class="summary_signature">
|
170
169
|
|
171
|
-
<a href="#validate_relation
|
170
|
+
<a href="#validate_relation!-instance_method" title="#validate_relation! (instance method)">#<strong>validate_relation!</strong>(relation) ⇒ Object </a>
|
172
171
|
|
173
172
|
|
174
173
|
|
@@ -182,9 +181,7 @@
|
|
182
181
|
|
183
182
|
|
184
183
|
|
185
|
-
<span class="summary_desc"><div class='inline'>
|
186
|
-
<p>Validates (and possibly alters) the given relation according to the options
|
187
|
-
specified at class level using the <code>relation</code> method.</p>
|
184
|
+
<span class="summary_desc"><div class='inline'><p>Validates (and possibly alters) the given relation according to the options specified at class level using the <code>relation</code> method.</p>
|
188
185
|
</div></span>
|
189
186
|
|
190
187
|
</li>
|
@@ -203,7 +200,7 @@ specified at class level using the <code>relation</code> method.</p>
|
|
203
200
|
<div class="method_details first">
|
204
201
|
<h3 class="signature first" id="validate_relation!-instance_method">
|
205
202
|
|
206
|
-
|
203
|
+
#<strong>validate_relation!</strong>(relation) ⇒ <tt>Object</tt>
|
207
204
|
|
208
205
|
|
209
206
|
|
@@ -211,9 +208,8 @@ specified at class level using the <code>relation</code> method.</p>
|
|
211
208
|
|
212
209
|
</h3><div class="docstring">
|
213
210
|
<div class="discussion">
|
214
|
-
|
215
|
-
|
216
|
-
specified at class level using the <code>relation</code> method.</p>
|
211
|
+
<p>Validates (and possibly alters) the given relation according to the
|
212
|
+
options specified at class level using the <code>relation</code> method.</p>
|
217
213
|
|
218
214
|
|
219
215
|
</div>
|
@@ -274,7 +270,7 @@ specified at class level using the <code>relation</code> method.</p>
|
|
274
270
|
<pre class="code"><span class="info file"># File 'lib/inquery/mixins/relation_validation.rb', line 56</span>
|
275
271
|
|
276
272
|
<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
|
-
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='const'>DEFAULT_OPTIONS</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
273
|
+
<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>
|
278
274
|
<span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid__relation_options'>_relation_options</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid__relation_options'>_relation_options</span>
|
279
275
|
|
280
276
|
<span class='id identifier rubyid_relation_class'>relation_class</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_try'>try</span><span class='lparen'>(</span><span class='symbol'>:constantize</span><span class='rparen'>)</span>
|
@@ -288,7 +284,7 @@ specified at class level using the <code>relation</code> method.</p>
|
|
288
284
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:default</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&&</span> <span class='id identifier rubyid_relation_class'>relation_class</span>
|
289
285
|
<span class='id identifier rubyid_relation'>relation</span> <span class='op'>=</span> <span class='id identifier rubyid_relation_class'>relation_class</span><span class='period'>.</span><span class='id identifier rubyid_all'>all</span>
|
290
286
|
<span class='kw'>else</span>
|
291
|
-
<span class='id identifier rubyid_fail'>fail</span> <span class='const'>Inquery</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>InvalidRelation</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>A relation must be given for this query.</span><span class='tstring_end'>'</span></span>
|
287
|
+
<span class='id identifier rubyid_fail'>fail</span> <span class='const'><span class='object_link'><a href="../../Inquery.html" title="Inquery (module)">Inquery</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exceptions.html" title="Inquery::Exceptions (module)">Exceptions</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exceptions/InvalidRelation.html" title="Inquery::Exceptions::InvalidRelation (class)">InvalidRelation</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>A relation must be given for this query.</span><span class='tstring_end'>'</span></span>
|
292
288
|
<span class='kw'>end</span>
|
293
289
|
<span class='kw'>end</span>
|
294
290
|
|
@@ -296,7 +292,7 @@ specified at class level using the <code>relation</code> method.</p>
|
|
296
292
|
</span> <span class='comment'># Validate class
|
297
293
|
</span> <span class='comment'># ---------------------------------------------------------------
|
298
294
|
</span> <span class='kw'>if</span> <span class='id identifier rubyid_relation_class'>relation_class</span> <span class='op'>&&</span> <span class='id identifier rubyid_relation_class'>relation_class</span> <span class='op'>!=</span> <span class='id identifier rubyid_relation'>relation</span><span class='period'>.</span><span class='id identifier rubyid_klass'>klass</span>
|
299
|
-
<span class='id identifier rubyid_fail'>fail</span> <span class='const'>Inquery</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>InvalidRelation</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unexpected relation class '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_relation'>relation</span><span class='period'>.</span><span class='id identifier rubyid_klass'>klass</span><span class='embexpr_end'>}</span><span class='tstring_content'>' for this query, expected a '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_relation_class'>relation_class</span><span class='embexpr_end'>}</span><span class='tstring_content'>'.</span><span class='tstring_end'>"</span></span>
|
295
|
+
<span class='id identifier rubyid_fail'>fail</span> <span class='const'><span class='object_link'><a href="../../Inquery.html" title="Inquery (module)">Inquery</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exceptions.html" title="Inquery::Exceptions (module)">Exceptions</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exceptions/InvalidRelation.html" title="Inquery::Exceptions::InvalidRelation (class)">InvalidRelation</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unexpected relation class '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_relation'>relation</span><span class='period'>.</span><span class='id identifier rubyid_klass'>klass</span><span class='embexpr_end'>}</span><span class='tstring_content'>' for this query, expected a '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_relation_class'>relation_class</span><span class='embexpr_end'>}</span><span class='tstring_content'>'.</span><span class='tstring_end'>"</span></span>
|
300
296
|
<span class='kw'>end</span>
|
301
297
|
|
302
298
|
<span class='comment'># ---------------------------------------------------------------
|
@@ -310,7 +306,7 @@ specified at class level using the <code>relation</code> method.</p>
|
|
310
306
|
<span class='kw'>end</span>
|
311
307
|
|
312
308
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:fields</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&&</span> <span class='id identifier rubyid_fields_count'>fields_count</span> <span class='op'>!=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:fields</span><span class='rbracket'>]</span>
|
313
|
-
<span class='id identifier rubyid_fail'>fail</span> <span class='const'>Inquery</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>InvalidRelation</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected given relation to select </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:fields</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> field(s) but got </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_fields_count'>fields_count</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span>
|
309
|
+
<span class='id identifier rubyid_fail'>fail</span> <span class='const'><span class='object_link'><a href="../../Inquery.html" title="Inquery (module)">Inquery</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exceptions.html" title="Inquery::Exceptions (module)">Exceptions</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Exceptions/InvalidRelation.html" title="Inquery::Exceptions::InvalidRelation (class)">InvalidRelation</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Expected given relation to select </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:fields</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> field(s) but got </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_fields_count'>fields_count</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span>
|
314
310
|
<span class='kw'>end</span>
|
315
311
|
|
316
312
|
<span class='kw'>return</span> <span class='id identifier rubyid_relation'>relation</span>
|
@@ -324,11 +320,12 @@ specified at class level using the <code>relation</code> method.</p>
|
|
324
320
|
|
325
321
|
</div>
|
326
322
|
|
327
|
-
|
328
|
-
Generated on
|
323
|
+
<div id="footer">
|
324
|
+
Generated on Tue May 16 10:49:05 2017 by
|
329
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
330
|
-
0.
|
326
|
+
0.9.9 (ruby-2.3.1).
|
331
327
|
</div>
|
332
328
|
|
329
|
+
</div>
|
333
330
|
</body>
|
334
331
|
</html>
|