- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for resetSession (0.32 sec)
-
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) -
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) -
api/go1.10.txt
pkg database/sql/driver, type DriverContext interface, OpenConnector(string) (Connector, error) pkg database/sql/driver, type SessionResetter interface { ResetSession } pkg database/sql/driver, type SessionResetter interface, ResetSession(context.Context) error pkg debug/elf, const R_386_16 = 20 pkg debug/elf, const R_386_16 R_386 pkg debug/elf, const R_386_32PLT = 11 pkg debug/elf, const R_386_32PLT R_386
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 06 05:00:01 UTC 2018 - 30.1K bytes - Viewed (0) -
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)