Class: ThinkingSphinx::ActiveRecord::DatabaseAdapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb

Direct Known Subclasses

MySQLAdapter, PostgreSQLAdapter

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ AbstractAdapter

Returns a new instance of AbstractAdapter.



4
5
6
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 4

def initialize(model)
  @model = model
end

Instance Method Details

#quote(column) ⇒ Object



8
9
10
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 8

def quote(column)
  @model.connection.quote_column_name(column)
end

#quoted_table_nameObject



12
13
14
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 12

def quoted_table_name
  @model.quoted_table_name
end

#utf8_query_preObject



16
17
18
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 16

def utf8_query_pre
  []
end