ã¡ããã©æ¬æ¥ã®ã»ãã§DBã¸ã®ã¢ã¯ã»ã¹ãé ãï¼ãã ããªãã ãã§REST APIãã¿ã¤ã ã¢ã¦ããã¦ããäºè±¡ã«åºä¼ã£ã¦ããã®ã§ãã£ããã¨go-sql-proxyã使ããã¨æã£ãã®ã ãã©ãã¾ããã®ã¾ã¾ã ã¨å®è¡æéã¨ããè¨æ¸¬ã§ããªã⦠ã¨ãããã¨ã«æ°ã¥ãã¦è²ã èããçµæPRãéãäºã«ãããéã£ããå éã§ãã¼ã¸ãããã ä»åº¦ãã NewTraceProxyã§ãããã·ãä½ãã° Open/Exec/Queryã«é¢ãã¦ã¯æè¦æéãåºåãããããã«ãªãã¾ããmysqlãªã以ä¸ã®ãããªæãï¼ driverName := "mysql" if traceEnabled { driverName = "mysql-trace" sql.Register(driverName, proxy.NewTraceProxy(&mysql.MySQLDriver{}, logger)) } db, err := sql.Op
{{#tags}}- {{label}}
{{/tags}}