MCPcopy
hub / github.com/sqlc-dev/sqlc / MatchString

Function MatchString

internal/codegen/sdk/sdk.go:16–22  ·  view source on GitHub ↗
(pat, target string)

Source from the content-addressed store, hash-verified

14}
15
16func MatchString(pat, target string) bool {
17 matcher, err := pattern.MatchCompile(pat)
18 if err != nil {
19 panic(err)
20 }
21 return matcher.MatchString(target)
22}
23
24func SameTableName(tableID, f *plugin.Identifier, defaultSchema string) bool {
25 if tableID == nil {

Callers 2

addExtraGoStructTagsFunction · 0.92
goTypeFunction · 0.92

Calls 1

MatchCompileFunction · 0.92

Tested by

no test coverage detected