sqlitefts

package
v0.0.368 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LiteralQuery

func LiteralQuery(query string) string

LiteralQuery converts free-form user text into an FTS5 MATCH expression that treats every whitespace-delimited chunk as a literal string, not as FTS5 query syntax. SQL parameters protect the SQL parser; callers still need this helper for the second parser: FTS5's MATCH expression grammar.

func LiteralQueryMin

func LiteralQueryMin(query string, minRunes int) string

LiteralQueryMin is like LiteralQuery, but drops chunks shorter than minRunes.

func PrefixORQuery

func PrefixORQuery(query string, minRunes int) string

PrefixORQuery converts free-form text into an FTS5 expression matching any alphanumeric token by prefix. This is useful for recall-oriented fuzzy-ish dedupe searches where any word match should produce a candidate.

func QuoteString

func QuoteString(s string) string

QuoteString returns an FTS5 double-quoted string literal.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL