lib/query.rb
def from arg = nil
			if arg.present?
				@q[:database] =  arg
				self # return query-object
			elsif  @q[:database].present? # read from
				"from #{ target }"
			end
		end
	from can either be a Databaseclass to operate on or a Subquery providing data to query further
from can either be a Databaseclass to operate on or a Subquery providing data to query further
from can either be a Databaseclass to operate on or a Subquery providing data to query further
def from arg = nil
			if arg.present?
				@q[:database] =  arg
				self 
			elsif  @q[:database].present? 
				"from #{ target }"
			end
		end
def from arg = nil if arg . present? @q [ :database ] = arg self elsif @q [ :database ] . present? "from #{ target }" end end
from can either be a Databaseclass to operate on or a Subquery providing data to query further
from can either be a Databaseclass to operate on or a Subquery providing data to query further
# return query-object # read from
arg