Module: FullSearch::Typo
- Defined in:
- lib/full_search/typo.rb
Constant Summary collapse
- MIN_SQLITE_VERSION =
[3, 34].freeze
Class Method Summary collapse
Class Method Details
.supported? ⇒ Boolean
8 9 10 11 |
# File 'lib/full_search/typo.rb', line 8 def supported? major, minor = sqlite_version_parts major > MIN_SQLITE_VERSION.first || (major == MIN_SQLITE_VERSION.first && minor >= MIN_SQLITE_VERSION.last) end |
.warn_unsupported! ⇒ Object
13 14 15 |
# File 'lib/full_search/typo.rb', line 13 def warn_unsupported! warn "[full_search] SQLite #{sqlite_version} does not support the trigram tokenizer. typo_tolerance requires SQLite >= 3.34." end |