Class: ThinkingSphinx::Connection::JRuby

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Client

#close, #close!, #execute, #query_all

Constructor Details

#initialize(options) ⇒ JRuby

Returns a new instance of JRuby.



6
7
8
9
10
11
12
# File 'lib/thinking_sphinx/connection/jruby.rb', line 6

def initialize(options)
  options.delete :socket

  super

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

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



4
5
6
# File 'lib/thinking_sphinx/connection/jruby.rb', line 4

def address
  @address
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/thinking_sphinx/connection/jruby.rb', line 4

def options
  @options
end

Instance Method Details

#base_errorObject



14
15
16
# File 'lib/thinking_sphinx/connection/jruby.rb', line 14

def base_error
  Java::JavaSql::SQLException
end