Method: DB::Query#initialize

Defined in:
lib/db/query.rb

#initialize(context, buffer = String.new) ⇒ Query

Create a new query builder attached to the specified context.



36
37
38
39
40
# File 'lib/db/query.rb', line 36

def initialize(context, buffer = String.new)
  @context = context
  @connection = context.connection
  @buffer = +buffer
end