-
when opening a query longer than 1 minute |
Beta Was this translation helpful? Give feedback.
Answered by
aoticombr
Dec 5, 2023
Replies: 1 comment
-
sorted out... /* |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aoticombr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorted out...
/*
CONNECTION TIMEOUT = RESPONSIBLE FOR THE QUERY OPEN TIME
IF THIS TIME PASSES HE WILL SEND A COMMAND TO TAKE DOWN
*/
var (
minutos int64
minutos_str string
)
minutos = int64(time.Minute * 60) //60 minutos
minutos_str = strconv.FormatInt(minutos, 10) //convertendo para string
url := fmt.Sprintf("oracle://%s:%s@%s:%d/%s/?CONNECTION TIMEOUT=%s",
d.User, d.Pass, d.Host, d.Port, d.Sid, minutos_str)
return url