mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-04-04 21:54:20 +02:00
13 lines
344 B
Go
13 lines
344 B
Go
package sqlmock
|
|
|
|
import "database/sql/driver"
|
|
|
|
// ValueConverterOption allows to create a sqlmock connection
|
|
// with a custom ValueConverter to support drivers with special data types.
|
|
func ValueConverterOption(converter driver.ValueConverter) func(*sqlmock) error {
|
|
return func(s *sqlmock) error {
|
|
s.converter = converter
|
|
return nil
|
|
}
|
|
}
|