module Flounder::Query::Returning
Public Instance Methods
returning(fields)
click to toggle source
# File lib/flounder/query/returning.rb, line 9 def returning fields @returning_fields = fields self end
returning_fields()
click to toggle source
# File lib/flounder/query/returning.rb, line 5 def returning_fields @returning_fields || '*' end
to_sql()
click to toggle source
Calls superclass method
# File lib/flounder/query/returning.rb, line 15 def to_sql super << " RETURNING #{returning_fields}" end