Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for resetSession (0.11 sec)

  1. src/database/sql/driver/driver.go

    // before returning the connection to the connection pool. If an entry in the
    // connection pool implements [SessionResetter], then ResetSession
    // is called before reusing the connection for another query. If a connection is
    // never returned to the connection pool but is immediately reused, then
    // ResetSession is called prior to reuse but IsValid is not called.
    package driver
    
    import (
    	"context"
    	"errors"
    	"reflect"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 09:04:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. src/database/sql/fakedb_test.go

    	// bad connection tests; see isBad()
    	bad       bool
    	stickyBad bool
    
    	skipDirtySession bool // tests that use Conn should set this to true.
    
    	// dirtySession tests ResetSession, true if a query has executed
    	// until ResetSession is called.
    	dirtySession bool
    
    	// The waiter is called before each query. May be used in place of the "WAIT"
    	// directive.
    	waiter func(context.Context)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    }
    
    // resetSession checks if the driver connection needs the
    // session to be reset and if required, resets it.
    func (dc *driverConn) resetSession(ctx context.Context) error {
    	dc.Lock()
    	defer dc.Unlock()
    
    	if !dc.needReset {
    		return nil
    	}
    	if cr, ok := dc.ci.(driver.SessionResetter); ok {
    		return cr.ResetSession(ctx)
    	}
    	return nil
    }
    
    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