src/go/plugin/go.d/modules/oracledb/collect.go
Method OracleDB.collect
has 6 return statements (exceeds 4 allowed). Open
Open
func (o *OracleDB) collect() (map[string]int64, error) {
if o.db == nil {
if err := o.openConnection(); err != nil {
return nil, fmt.Errorf("failed to open connection: %v", err)
}
Method OracleDB.doQuery
has 5 return statements (exceeds 4 allowed). Open
Open
func (o *OracleDB) doQuery(query string, assign func(column, value string, lineEnd bool) error) error {
ctx, cancel := context.WithTimeout(context.Background(), o.Timeout.Duration())
defer cancel()
rows, err := o.db.QueryContext(ctx, query)