Method: OrientSupport::OrientQuery#from
- Defined in:
- lib/support/orientquery.rb
#from(arg = nil) ⇒ Object
from can either be a Databaseclass to operate on or a Subquery providing data to query further
444 445 446 447 448 449 450 451 |
# File 'lib/support/orientquery.rb', line 444 def from arg = nil if arg.present? @q[:database] = arg self # return query-object elsif @q[:database].present? # read from "from #{ target }" end end |