Author: Praveen Devarao
# File lib/arel/algebra/relations/relation.rb, line 176
176: def [](index)
177: attributes[index]
178: end
# File lib/arel/algebra/relations/relation.rb, line 192
192: def attributes; Header.new end
# File lib/arel/algebra/attributes/attribute.rb, line 292
292: def column
293: original_relation.column_for(self)
294: end
# File lib/arel/algebra/attributes/attribute.rb, line 109
109: def eq(other)
110: Predicates::Equality.new(self, other)
111: end
# File lib/arel/algebra/attributes/attribute.rb, line 117
117: def eq_all(*others)
118: Predicates::All.build(Predicates::Equality, self, *others)
119: end
# File lib/arel/algebra/attributes/attribute.rb, line 113
113: def eq_any(*others)
114: Predicates::Any.build(Predicates::Equality, self, *others)
115: end
# File lib/arel/algebra/relations/relation.rb, line 180
180: def find_attribute_matching_name(name)
181: attributes.detect { |a| a.named?(name) } || Attribute.new(self, name)
182: end
# File lib/arel/algebra/attributes/attribute.rb, line 296
296: def format(object)
297: object.to_sql(Sql::Attribute.new(self))
298: end
# File lib/arel/algebra/relations/relation.rb, line 197
197: def groupings; [] end
# File lib/arel/algebra/attributes/attribute.rb, line 157
157: def gt(other)
158: Predicates::GreaterThan.new(self, other)
159: end
# File lib/arel/algebra/attributes/attribute.rb, line 165
165: def gt_all(*others)
166: Predicates::All.build(Predicates::GreaterThan, self, *others)
167: end
# File lib/arel/algebra/attributes/attribute.rb, line 161
161: def gt_any(*others)
162: Predicates::Any.build(Predicates::GreaterThan, self, *others)
163: end
# File lib/arel/algebra/attributes/attribute.rb, line 169
169: def gteq(other)
170: Predicates::GreaterThanOrEqualTo.new(self, other)
171: end
# File lib/arel/algebra/attributes/attribute.rb, line 177
177: def gteq_all(*others)
178: Predicates::All.build(Predicates::GreaterThanOrEqualTo, self, *others)
179: end
# File lib/arel/algebra/attributes/attribute.rb, line 173
173: def gteq_any(*others)
174: Predicates::Any.build(Predicates::GreaterThanOrEqualTo, self, *others)
175: end
# File lib/arel/algebra/relations/relation.rb, line 198
198: def havings; [] end
# File lib/arel/algebra/attributes/attribute.rb, line 205
205: def in(other)
206: Predicates::In.new(self, other)
207: end
# File lib/arel/algebra/attributes/attribute.rb, line 213
213: def in_all(*others)
214: Predicates::All.build(Predicates::In, self, *others)
215: end
# File lib/arel/algebra/attributes/attribute.rb, line 209
209: def in_any(*others)
210: Predicates::Any.build(Predicates::In, self, *others)
211: end
# File lib/arel/algebra/relations/relation.rb, line 196
196: def inserts; [] end
# File lib/arel/algebra/relations/relation.rb, line 199
199: def joins(formatter = nil); nil end
# File lib/arel/algebra/relations/relation.rb, line 203
203: def locked; [] end
# File lib/arel/algebra/attributes/attribute.rb, line 133
133: def lt(other)
134: Predicates::LessThan.new(self, other)
135: end
# File lib/arel/algebra/attributes/attribute.rb, line 141
141: def lt_all(*others)
142: Predicates::All.build(Predicates::LessThan, self, *others)
143: end
# File lib/arel/algebra/attributes/attribute.rb, line 137
137: def lt_any(*others)
138: Predicates::Any.build(Predicates::LessThan, self, *others)
139: end
# File lib/arel/algebra/attributes/attribute.rb, line 145
145: def lteq(other)
146: Predicates::LessThanOrEqualTo.new(self, other)
147: end
# File lib/arel/algebra/attributes/attribute.rb, line 153
153: def lteq_all(*others)
154: Predicates::All.build(Predicates::LessThanOrEqualTo, self, *others)
155: end
# File lib/arel/algebra/attributes/attribute.rb, line 149
149: def lteq_any(*others)
150: Predicates::Any.build(Predicates::LessThanOrEqualTo, self, *others)
151: end
# File lib/arel/algebra/attributes/attribute.rb, line 181
181: def matches(other)
182: Predicates::Match.new(self, other)
183: end
# File lib/arel/algebra/attributes/attribute.rb, line 189
189: def matches_all(*others)
190: Predicates::All.build(Predicates::Match, self, *others)
191: end
# File lib/arel/algebra/attributes/attribute.rb, line 185
185: def matches_any(*others)
186: Predicates::Any.build(Predicates::Match, self, *others)
187: end
# File lib/arel/algebra/attributes/attribute.rb, line 121
121: def not_eq(other)
122: Predicates::Inequality.new(self, other)
123: end
# File lib/arel/algebra/attributes/attribute.rb, line 129
129: def not_eq_all(*others)
130: Predicates::All.build(Predicates::Inequality, self, *others)
131: end
# File lib/arel/algebra/attributes/attribute.rb, line 125
125: def not_eq_any(*others)
126: Predicates::Any.build(Predicates::Inequality, self, *others)
127: end
# File lib/arel/algebra/attributes/attribute.rb, line 217
217: def not_in(other)
218: Predicates::NotIn.new(self, other)
219: end
# File lib/arel/algebra/attributes/attribute.rb, line 225
225: def not_in_all(*others)
226: Predicates::All.build(Predicates::NotIn, self, *others)
227: end
# File lib/arel/algebra/attributes/attribute.rb, line 221
221: def not_in_any(*others)
222: Predicates::Any.build(Predicates::NotIn, self, *others)
223: end
# File lib/arel/algebra/attributes/attribute.rb, line 193
193: def not_matches(other)
194: Predicates::NotMatch.new(self, other)
195: end
# File lib/arel/algebra/attributes/attribute.rb, line 201
201: def not_matches_all(*others)
202: Predicates::All.build(Predicates::NotMatch, self, *others)
203: end
# File lib/arel/algebra/attributes/attribute.rb, line 197
197: def not_matches_any(*others)
198: Predicates::Any.build(Predicates::NotMatch, self, *others)
199: end
# File lib/arel/algebra/relations/relation.rb, line 195
195: def orders; [] end
# File lib/arel/algebra/relations/relation.rb, line 184
184: def position_of(attribute)
185: @position_of ||= {}
186:
187: return @position_of[attribute] if @position_of.key? attribute
188:
189: @position_of[attribute] = attributes.index(attributes[attribute])
190: end
# File lib/arel/algebra/relations/relation.rb, line 193
193: def projections; [] end
# File lib/arel/algebra/relations/relation.rb, line 201
201: def skipped; nil end
# File lib/arel/algebra/relations/relation.rb, line 202
202: def sources; [] end
# File lib/arel/algebra/relations/relation.rb, line 200
200: def taken; nil end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.