Method: DbTextSearch::FullText.adapter_class

Defined in:
lib/db_text_search/full_text.rb

.adapter_class(connection, _table_name, _column_name) ⇒ Class<AbstractAdapter>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



47
48
49
50
51
52
53
# File 'lib/db_text_search/full_text.rb', line 47

def self.adapter_class(connection, _table_name, _column_name)
  DbTextSearch.match_adapter(
      connection,
      mysql:    -> { MysqlAdapter },
      postgres: -> { PostgresAdapter },
      sqlite:   -> { SqliteAdapter })
end