MCPcopy
hub / github.com/pocketbase/pocketbase / AddFilter

Method AddFilter

tools/search/provider.go:171–176  ·  view source on GitHub ↗

AddFilter appends the provided FilterData to the existing provider's filter field.

(filter FilterData)

Source from the content-addressed store, hash-verified

169
170// AddFilter appends the provided FilterData to the existing provider's filter field.
171func (s *Provider) AddFilter(filter FilterData) *Provider {
172 if filter != "" {
173 s.filter = append(s.filter, filter)
174 }
175 return s
176}
177
178// Parse parses the search query parameter from the provided query string
179// and assigns the found fields to the current search provider.

Callers 2

ParseMethod · 0.95
TestProviderFilterFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestProviderFilterFunction · 0.64