sijms / go-ora

Pure go oracle client
MIT License
786 stars 174 forks source link

TIMEOUT parameters #411

Closed askripalev closed 1 year ago

askripalev commented 1 year ago

Hi! Can you make a separate TIMEOUT parameters for query timeout and database connection timeout? According to connection_string.go source file, TIMEOUT, CONNECT TIMEOUT and CONNECTION TIMEOUT are all the same thingines.

sijms commented 1 year ago

TIMEOUT URL option is a global timeout for the driver this protect the code from hang up. if you want to use specific timeout use Context version of sql function ConnectContext, QueryContext, ExecContext, PingContect, ...