ValueConverterOption allows to create a sqlmock connection with a custom ValueConverter to support drivers with special data types.
(converter driver.ValueConverter)
| 5 | // ValueConverterOption allows to create a sqlmock connection |
| 6 | // with a custom ValueConverter to support drivers with special data types. |
| 7 | func 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. |
no outgoing calls
searching dependent graphs…