Module | ThinkingSphinx::Source::SQL |
In: |
lib/thinking_sphinx/source/sql.rb
|
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.