Class: ThinkingSphinx::Connection::JRuby
- Defined in:
- lib/thinking_sphinx/connection/jruby.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #base_error ⇒ Object
-
#initialize(options) ⇒ JRuby
constructor
A new instance of JRuby.
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() .delete :socket super @address = "jdbc:mysql://#{@options[:host]}:#{@options[:port]}/?allowMultiQueries=true" end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/thinking_sphinx/connection/jruby.rb', line 4 def address @address end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/thinking_sphinx/connection/jruby.rb', line 4 def @options end |
Instance Method Details
#base_error ⇒ Object
14 15 16 |
# File 'lib/thinking_sphinx/connection/jruby.rb', line 14 def base_error Java::JavaSql::SQLException end |