Method: OrientSupport::OrientQuery#distinct
- Defined in:
- lib/support.rb
#distinct(d) ⇒ Object Also known as: distinct=
368 369 370 371 372 373 374 375 376 377 |
# File 'lib/support.rb', line 368 def distinct d @projection << case d when String, Symbol "distinct( #{d.to_s} )" else dd= d.to_a.flatten "distinct( #{dd.first.to_s} ) as #{dd.last}" end compose # return the hole query end |