- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SetConnMaxIdleTime (0.38 sec)
-
api/go1.15.txt
pkg crypto/x509, type RevocationList struct, SignatureAlgorithm SignatureAlgorithm pkg crypto/x509, type RevocationList struct, ThisUpdate time.Time pkg database/sql, method (*DB) SetConnMaxIdleTime(time.Duration) pkg database/sql, method (*Row) Err() error pkg database/sql, type DBStats struct, MaxIdleTimeClosed int64 pkg database/sql/driver, type Validator interface { IsValid }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 17 02:15:01 UTC 2020 - 7.6K bytes - Viewed (0) -
src/database/sql/sql.go
} db.maxLifetime = d db.startCleanerLocked() db.mu.Unlock() } // SetConnMaxIdleTime sets the maximum amount of time a connection may be idle. // // Expired connections may be closed lazily before reuse. // // If d <= 0, connections are not closed due to a connection's idle time. func (db *DB) SetConnMaxIdleTime(d time.Duration) { if d < 0 { d = 0 } db.mu.Lock() defer db.mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 103.6K bytes - Viewed (0) -
src/database/sql/sql_test.go
t.Run(fmt.Sprintf("%v", item.wantMaxIdleTime), func(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) db.SetMaxOpenConns(usedConns) db.SetMaxIdleConns(usedConns) db.SetConnMaxIdleTime(item.wantMaxIdleTime) db.SetConnMaxLifetime(item.wantMaxLifetime) preMaxIdleClosed := db.Stats().MaxIdleTimeClosed // Busy usedConns. testUseConns(t, usedConns, baseTime, db)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(*DB).PrepareContext", Method, 8}, {"(*DB).Query", Method, 0}, {"(*DB).QueryContext", Method, 8}, {"(*DB).QueryRow", Method, 0}, {"(*DB).QueryRowContext", Method, 8}, {"(*DB).SetConnMaxIdleTime", Method, 15}, {"(*DB).SetConnMaxLifetime", Method, 6}, {"(*DB).SetMaxIdleConns", Method, 1}, {"(*DB).SetMaxOpenConns", Method, 2}, {"(*DB).Stats", Method, 5}, {"(*Null).Scan", Method, 22},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)