Documentation
¶
Overview ¶
Package match implements SQL LIKE-style pattern matching for the Go filtering paths, so they return the same rows as the SQLite index paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalSpecies ¶ added in v0.22.0
CanonicalSpecies removes the GTDB alphabetic suffix from each whitespace word of a species name and collapses runs of whitespace to a single space, so a GTDB-suffixed name and the NCBI name a user types reduce to the same string. "Enterococcus_A faecium" and "Enterococcus faecium" both yield "Enterococcus faecium".
func Like ¶
Like reports whether value matches pattern. % matches any sequence of characters, every other character including _ is literal, and matching is case-insensitive.
func SpeciesMatches ¶ added in v0.22.0
SpeciesMatches reports whether a user-supplied species or genus query matches a stored GTDB name, case-insensitively. The GTDB suffix is stripped from the stored value only: an NCBI-style query ("Enterococcus faecium") matches every GTDB clade ("Enterococcus_A faecium", "Enterococcus_B faecium"), while a query that carries an explicit suffix ("Enterococcus_A faecium") still selects only that clade.
Types ¶
This section is empty.