Method: Async::MySQL::Client#query

Defined in:
lib/async/mysql/client.rb

#query(sql, **options) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/async/mysql/client.rb', line 34

def query(sql, **options)
	@client.query(sql, async: true, **options)
	
	wait_readable
	
	return @client.async_result
end