MCPcopy Create free account
hub / github.com/DATA-DOG/go-sqlmock / ValueConverterOption

Function ValueConverterOption

options.go:7–12  ·  view source on GitHub ↗

ValueConverterOption allows to create a sqlmock connection with a custom ValueConverter to support drivers with special data types.

(converter driver.ValueConverter)

Source from the content-addressed store, hash-verified

5// ValueConverterOption allows to create a sqlmock connection
6// with a custom ValueConverter to support drivers with special data types.
7func ValueConverterOption(converter driver.ValueConverter) func(*sqlmock) error {
8 return func(s *sqlmock) error {
9 s.converter = converter
10 return nil
11 }
12}
13
14// QueryMatcherOption allows to customize SQL query matcher
15// and match SQL query strings in more sophisticated ways.

Callers 3

TestWithOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestWithOptionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…