# Packages
No description provided by the author
# README
go-sql-caller-annotation
Provides an new sql.*DB
connection that injects caller information to the query
go get github.com/aereal/go-sql-caller-annotation
Usage
package main
import (
"github.com/aereal/go-sql-caller-annotation/sqlcaller"
)
func main() {
db, _ := sqlcaller.WithAnnotation("mysql", "..." /* DSN */)
db.Exec("SELECT version()") // runs `/* main.main (/path/to/file.go:9) */ SELECT version()` query
}
License
See LICENSE file.