Skip to main content

like_pattern

Function like_pattern 

Source
pub fn like_pattern(query: &str) -> String
Expand description

Build a LIKE pattern equivalent to a free-text search — used as a last-resort fallback when an FTS5 search returns no hits and the caller wants to match the raw substring against search_fts.text. SQL LIKE escapes are not applied; callers MUST pass the result as a bound parameter, not interpolate it.