Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validateConnection (0.18 sec)

  1. src/database/sql/sql.go

    		return nil
    	}
    	if cr, ok := dc.ci.(driver.SessionResetter); ok {
    		return cr.ResetSession(ctx)
    	}
    	return nil
    }
    
    // validateConnection checks if the connection is valid and can
    // still be used. It also marks the session for reset if required.
    func (dc *driverConn) validateConnection(needsReset bool) bool {
    	dc.Lock()
    	defer dc.Unlock()
    
    	if needsReset {
    		dc.needReset = true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
Back to top