MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / WithDBDriver

Function WithDBDriver

pkg/sql2code/parser/option.go:45–51  ·  view source on GitHub ↗

WithDBDriver set db driver

(driver string)

Source from the content-addressed store, hash-verified

43
44// WithDBDriver set db driver
45func WithDBDriver(driver string) Option {
46 return func(o *options) {
47 if driver != "" {
48 o.DBDriver = driver
49 }
50 }
51}
52
53// WithFieldTypes set field types
54func WithFieldTypes(fieldTypes map[string]string) Option {

Callers 6

setOptionsFunction · 0.92
TestParseMysqlSQLFunction · 0.85
TestParseSQLFunction · 0.85
Test_parseOptionFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestParseMysqlSQLFunction · 0.68
TestParseSQLFunction · 0.68
Test_parseOptionFunction · 0.68