- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetMaxOpenConns (0.07 sec)
-
internal/event/target/postgresql.go
db, err := sql.Open("postgres", target.connString) if err != nil { return err } target.db = db if args.MaxOpenConnections > 0 { // Set the maximum connections limit target.db.SetMaxOpenConns(args.MaxOpenConnections) } err = target.db.Ping() if err != nil { if !(xnet.IsConnRefusedErr(err) || xnet.IsConnResetErr(err)) { target.loggerOnce(context.Background(), err, target.ID().String())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 13.3K bytes - Viewed (0) -
internal/event/target/mysql.go
target.loggerOnce(context.Background(), err, target.ID().String()) return err } target.db = db if args.MaxOpenConnections > 0 { // Set the maximum connections limit target.db.SetMaxOpenConns(args.MaxOpenConnections) } err = target.db.Ping() if err != nil { if !(xnet.IsConnRefusedErr(err) || xnet.IsConnResetErr(err)) { target.loggerOnce(context.Background(), err, target.ID().String())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 11.6K bytes - Viewed (0)