func (r *Repo) log(typ string, start time.Time, query string, args []interface{}) { log. Ctx(r.logCtx()). WithField("args", args). WithField("sql", query). WithField("dur", time.Since(start).String()). Debugf("sql: %s", typ) }
func (r *Repo) logRollback() { log.Ctx(r.logCtx()).Debug("sql: rollback") }
func (r *Repo) logCommit() { log.Ctx(r.logCtx()).Debug("sql: commit") }
func (r *Repo) logBegin() { log.Ctx(r.logCtx()).Debug("sql: begin") }