Class: DB::Context::Transient

Inherits:
Session
  • Object
show all
Defined in:
lib/db/context/transient.rb

Overview

A connected context for sending queries and reading results.

Instance Method Summary collapse

Methods inherited from Session

#clause, #close, #closed?, #connection, #connection?, #initialize, #query

Constructor Details

This class inherits a constructor from DB::Context::Session

Instance Method Details

#call(statement, **options, &block) ⇒ Object



12
13
14
15
16
# File 'lib/db/context/transient.rb', line 12

def call(statement, **options, &block)
	super
ensure
	self.close
end