WithDBDriver set db driver
(driver string)
| 43 | |
| 44 | // WithDBDriver set db driver |
| 45 | func 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 |
| 54 | func WithFieldTypes(fieldTypes map[string]string) Option { |
no outgoing calls