SQL holds the sql db object
| 22 | |
| 23 | // SQL holds the sql db object |
| 24 | type SQL struct { |
| 25 | lock sync.RWMutex |
| 26 | enabled bool |
| 27 | queryFetchLimit *int64 |
| 28 | connection string |
| 29 | client *sqlx.DB |
| 30 | dbType string |
| 31 | name string // logical db name or schema name according to the database type |
| 32 | driverConf config.DriverConfig |
| 33 | connRetryCloserChan chan struct{} |
| 34 | |
| 35 | // Auth module |
| 36 | aesKey []byte |
| 37 | } |
| 38 | |
| 39 | // Init initialises a new sql instance |
| 40 | func Init(dbType model.DBType, enabled bool, connection string, dbName string, driverConf config.DriverConfig) (s *SQL, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected