Files
query-orchestration/vendor/github.com/pashagolub/pgxmock/v3/options.go
T
Michael McGuinness fc4214336e normaliseeol
2024-12-19 11:44:19 +00:00

12 lines
344 B
Go

package pgxmock
// QueryMatcherOption allows to customize SQL query matcher
// and match SQL query strings in more sophisticated ways.
// The default QueryMatcher is QueryMatcherRegexp.
func QueryMatcherOption(queryMatcher QueryMatcher) func(*pgxmock) error {
return func(s *pgxmock) error {
s.queryMatcher = queryMatcher
return nil
}
}