Class: ThinkingSphinx::Connection::JRuby

Inherits:
Client
  • Object
show all
Defined in:
lib/thinking_sphinx/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Client

#close, #execute, #query_all

Constructor Details

#initialize(options) ⇒ JRuby



130
131
132
133
# File 'lib/thinking_sphinx/connection.rb', line 130

def initialize(options)
  @address = "jdbc:mysql://#{options[:host]}:#{options[:port]}/?allowMultiQueries=true"
  @options = options
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address



128
129
130
# File 'lib/thinking_sphinx/connection.rb', line 128

def address
  @address
end

#optionsObject (readonly)

Returns the value of attribute options



128
129
130
# File 'lib/thinking_sphinx/connection.rb', line 128

def options
  @options
end

Instance Method Details

#base_errorObject



135
136
137
# File 'lib/thinking_sphinx/connection.rb', line 135

def base_error
  Java::JavaSql::SQLException
end