Module ThinkingSphinx::Source::SQL
In: lib/thinking_sphinx/source/sql.rb

Methods

Public Instance methods

Generates the big SQL statement to get the data back for all the fields and attributes, using all the relevant association joins. If you want the version filtered for delta values, send through :delta => true in the options. Won‘t do much though if the index isn‘t set up to support a delta sibling.

Examples:

  source.to_sql
  source.to_sql(:delta => true)

Simple helper method for the query info SQL - which is a statement that returns the single row for a corresponding id.

Simple helper method for the query range SQL - which is a statement that returns minimum and maximum id values. These can be filtered by delta - so pass in :delta => true to get the delta version of the SQL.

[Validate]