go-ora
go-ora copied to clipboard
Pool settings
Hello. I want to use GO-ORA for connection pools in microservices. I use:
- parameters SESSION_TIMEOUT for set timeOut.
- sql.DB.SetMaxOpenConns for set maximum pool size.
- sql.DB.SetConnMaxLifetime for set maximum life time of connection.
But I didn't find how to install:
- Minimum pool open connections
- Wait timeOut for new connections from pool.
I found the commented code here: https://github.com/sijms/go-ora/blob/f208e5188f4b6cf28746a802e9d66b82b9d1b6bb/v2/configurations/connect_config.go
Is it possible to make these pool settings? And make settings SetMaxOpenConns, SetConnMaxLifetime in URL parameters?
OracleClient: 19.0.0.0.0 GO: 1.21 GO-ORA: v2.8.23
connection pool used is that belongs to sql/database, and no custom connection pooling for the driver yet