shogo82148/go-sql-proxy

proxy mysql.MySQLDriver locked

zhylninc opened this issue · 0 comments

sql.Register("mysql-proxy", proxy.NewProxyContext(&mysql.MySQLDriver{}, &proxy.HooksContext{ Query: func(_ context.Context, _ interface{}, stmt *proxy.Stmt, args []driver.NamedValue, rows driver.Rows) error { queryString:=stmt.QueryString //access stmt be locked log.Println("Query: %s; args = %v\n", queryString, args) return nil },