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

- (AbstractAdapter) initialize(model)

Returns a new instance of AbstractAdapter



2
3
4
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 2

def initialize(model)
  @model = model
end

Instance Method Details

- (Object) quote(column)



6
7
8
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 6

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

- (Object) quoted_table_name



10
11
12
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 10

def quoted_table_name
  @model.quoted_table_name
end

- (Object) utf8_query_pre



14
15
16
# File 'lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb', line 14

def utf8_query_pre
  []
end