class ThinkingSphinx::Connection::JRuby

Attributes

client[R]

Public Class Methods

new(address, port, options) click to toggle source
# File lib/thinking_sphinx/connection.rb, line 99
def initialize(address, port, options)
  address = "jdbc:mysql://#{address}:#{searchd.mysql41}"
  @client = java.sql.DriverManager.getConnection address,
    options[:username], options[:password]
end

Public Instance Methods

execute(statement) click to toggle source
# File lib/thinking_sphinx/connection.rb, line 105
def execute(statement)
  client.createStatement.execute statement
end
query(statement) click to toggle source
# File lib/thinking_sphinx/connection.rb, line 109
def query(statement)
  #
end
query_all(*statements) click to toggle source
# File lib/thinking_sphinx/connection.rb, line 113
def query_all(*statements)
  #
end