BindType returns the bindtype for a given database given a drivername.
(driverName string)
| 41 | |
| 42 | // BindType returns the bindtype for a given database given a drivername. |
| 43 | func BindType(driverName string) int { |
| 44 | itype, ok := binds.Load(driverName) |
| 45 | if !ok { |
| 46 | return UNKNOWN |
| 47 | } |
| 48 | return itype.(int) |
| 49 | } |
| 50 | |
| 51 | // BindDriver sets the BindType for driverName to bindType. |
| 52 | func BindDriver(driverName string, bindType int) { |
no outgoing calls