In Files

Included Modules

Files

Class Index [+]

Quicksearch

Arel

Author: Praveen Devarao

Constants

VERSION

Public Instance Methods

[](index) click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 176
176:     def [](index)
177:       attributes[index]
178:     end
attributes() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 192
192:     def attributes;             Header.new  end
column() click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 292
292:     def column
293:       original_relation.column_for(self)
294:     end
eq(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 109
109:     def eq(other)
110:       Predicates::Equality.new(self, other)
111:     end
eq_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 117
117:     def eq_all(*others)
118:       Predicates::All.build(Predicates::Equality, self, *others)
119:     end
eq_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 113
113:     def eq_any(*others)
114:       Predicates::Any.build(Predicates::Equality, self, *others)
115:     end
find_attribute_matching_name(name) click to toggle source
     # 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
format(object) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 296
296:     def format(object)
297:       object.to_sql(Sql::Attribute.new(self))
298:     end
groupings() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 197
197:     def groupings;              []          end
gt(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 157
157:     def gt(other)
158:       Predicates::GreaterThan.new(self, other)
159:     end
gt_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 165
165:     def gt_all(*others)
166:       Predicates::All.build(Predicates::GreaterThan, self, *others)
167:     end
gt_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 161
161:     def gt_any(*others)
162:       Predicates::Any.build(Predicates::GreaterThan, self, *others)
163:     end
gteq(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 169
169:     def gteq(other)
170:       Predicates::GreaterThanOrEqualTo.new(self, other)
171:     end
gteq_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 177
177:     def gteq_all(*others)
178:       Predicates::All.build(Predicates::GreaterThanOrEqualTo, self, *others)
179:     end
gteq_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 173
173:     def gteq_any(*others)
174:       Predicates::Any.build(Predicates::GreaterThanOrEqualTo, self, *others)
175:     end
havings() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 198
198:     def havings;                []          end
in(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 205
205:     def in(other)
206:       Predicates::In.new(self, other)
207:     end
in_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 213
213:     def in_all(*others)
214:       Predicates::All.build(Predicates::In, self, *others)
215:     end
in_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 209
209:     def in_any(*others)
210:       Predicates::Any.build(Predicates::In, self, *others)
211:     end
inserts() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 196
196:     def inserts;                []          end
joins(formatter = nil) click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 199
199:     def joins(formatter = nil); nil         end
locked() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 203
203:     def locked;                 []          end
lt(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 133
133:     def lt(other)
134:       Predicates::LessThan.new(self, other)
135:     end
lt_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 141
141:     def lt_all(*others)
142:       Predicates::All.build(Predicates::LessThan, self, *others)
143:     end
lt_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 137
137:     def lt_any(*others)
138:       Predicates::Any.build(Predicates::LessThan, self, *others)
139:     end
lteq(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 145
145:     def lteq(other)
146:       Predicates::LessThanOrEqualTo.new(self, other)
147:     end
lteq_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 153
153:     def lteq_all(*others)
154:       Predicates::All.build(Predicates::LessThanOrEqualTo, self, *others)
155:     end
lteq_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 149
149:     def lteq_any(*others)
150:       Predicates::Any.build(Predicates::LessThanOrEqualTo, self, *others)
151:     end
matches(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 181
181:     def matches(other)
182:       Predicates::Match.new(self, other)
183:     end
matches_all(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 189
189:     def matches_all(*others)
190:       Predicates::All.build(Predicates::Match, self, *others)
191:     end
matches_any(*others) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 185
185:     def matches_any(*others)
186:       Predicates::Any.build(Predicates::Match, self, *others)
187:     end
not_eq(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 121
121:     def not_eq(other)
122:       Predicates::Inequality.new(self, other)
123:     end
not_eq_all(*others) click to toggle source
     # 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
not_eq_any(*others) click to toggle source
     # 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
not_in(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 217
217:     def not_in(other)
218:       Predicates::NotIn.new(self, other)
219:     end
not_in_all(*others) click to toggle source
     # 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
not_in_any(*others) click to toggle source
     # 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
not_matches(other) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 193
193:     def not_matches(other)
194:       Predicates::NotMatch.new(self, other)
195:     end
not_matches_all(*others) click to toggle source
     # 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
not_matches_any(*others) click to toggle source
     # 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
orders() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 195
195:     def orders;                 []          end
position_of(attribute) click to toggle source
     # 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
projections() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 193
193:     def projections;            []          end
skipped() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 201
201:     def skipped;                nil         end
sources() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 202
202:     def sources;                []          end
taken() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 200
200:     def taken;                  nil         end
to_sql(formatter = Sql::WhereCondition.new(relation)) click to toggle source
     # File lib/arel/algebra/attributes/attribute.rb, line 300
300:     def to_sql(formatter = Sql::WhereCondition.new(relation))
301:       formatter.attribute self
302:     end
wheres() click to toggle source
     # File lib/arel/algebra/relations/relation.rb, line 194
194:     def wheres;                 []          end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.