database/sql

A generic interface around SQL (or SQL-like) databases.

Register

Join Point
Call to sql.Register
Advice
Replace the expression using the template:
// Using the following synthetic imports:
import (
	driver "database/sql/driver"
	sql "database/sql"
	sqltrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql"
)
func(driverName string, driver driver.Driver) {
		sql.Register(driverName, driver)
		sqltrace.Register(driverName, driver)
}({{ index .AST.Args 0 }}, {{ index .AST.Args 1 }})

Open

Join Point
Call to sql.Open

OpenDB

Join Point
Call to sql.OpenDB