class DB::Context::Session
A connected context for sending queries and reading results.
Public Instance Methods
call(statement, **options) { |connection| ... }
click to toggle source
Send a query to the server. @parameter statement [String] The SQL query to send.
# File lib/db/context/session.rb, line 31 def call(statement, **options) connection = self.connection connection.send_query(statement, **options) yield connection if block_given? end