type database/sql.driverConn
40 uses
database/sql (current package)
sql.go#L414: freeConn []*driverConn
sql.go#L426: lastPut map[*driverConn]string // stacktrace of last conn's put; debug only
sql.go#L456: type driverConn struct {
sql.go#L474: func (dc *driverConn) releaseConn(err error) {
sql.go#L478: func (dc *driverConn) removeOpenStmt(ds *driverStmt) {
sql.go#L484: func (dc *driverConn) expired(timeout time.Duration) bool {
sql.go#L493: func (dc *driverConn) resetSession(ctx context.Context) error {
sql.go#L508: func (dc *driverConn) validateConnection(needsReset bool) bool {
sql.go#L523: func (dc *driverConn) prepareLocked(ctx context.Context, cg stmtConnGrabber, query string) (*driverStmt, error) {
sql.go#L547: func (dc *driverConn) closeDBLocked() func() error {
sql.go#L557: func (dc *driverConn) Close() error {
sql.go#L574: func (dc *driverConn) finalClose() error {
sql.go#L735: lastPut: make(map[*driverConn]string),
sql.go#L781: func (db *DB) pingDC(ctx context.Context, dc *driverConn, release func(error)) error {
sql.go#L795: var dc *driverConn
sql.go#L908: var closing []*driverConn
sql.go#L1032: func (db *DB) connectionCleanerRunLocked() (closing []*driverConn) {
sql.go#L1163: dc := &driverConn{
sql.go#L1181: conn *driverConn
sql.go#L1196: func (db *DB) conn(ctx context.Context, strategy connReuseStrategy) (*driverConn, error) {
sql.go#L1310: dc := &driverConn{
sql.go#L1323: var putConnHook func(*DB, *driverConn)
sql.go#L1328: func (db *DB) noteUnusedDriverStatement(c *driverConn, ds *driverStmt) {
sql.go#L1351: func (db *DB) putConn(dc *driverConn, err error, resetSession bool) {
sql.go#L1412: func (db *DB) putConnDBLocked(dc *driverConn, err error) bool {
sql.go#L1499: func (db *DB) prepareDC(ctx context.Context, dc *driverConn, release func(error), cg stmtConnGrabber, query string) (*Stmt, error) {
sql.go#L1560: func (db *DB) execDC(ctx context.Context, dc *driverConn, release func(error), query string, args []interface{}) (res Result, err error) {
sql.go#L1635: func (db *DB) queryDC(ctx, txctx context.Context, dc *driverConn, releaseConn func(error), query string, args []interface{}) (*Rows, error) {
sql.go#L1760: func (db *DB) beginDC(ctx context.Context, dc *driverConn, release func(error), opts *TxOptions) (tx *Tx, err error) {
sql.go#L1807: var dc *driverConn
sql.go#L1850: dc *driverConn
sql.go#L1860: func (c *Conn) grabConn(context.Context) (*driverConn, releaseConn, error) {
sql.go#L1930: var dc *driverConn
sql.go#L2033: dc *driverConn
sql.go#L2103: func (tx *Tx) grabConn(ctx context.Context) (*driverConn, releaseConn, error) {
sql.go#L2413: dc *driverConn
sql.go#L2422: grabConn(context.Context) (*driverConn, releaseConn, error)
sql.go#L2562: func (s *Stmt) connStmt(ctx context.Context, strategy connReuseStrategy) (dc *driverConn, releaseConn func(error), ds *driverStmt, err error) {
sql.go#L2615: func (s *Stmt) prepareOnConnLocked(ctx context.Context, dc *driverConn) (*driverStmt, error) {
sql.go#L2774: dc *driverConn // owned; must call releaseConn when closed to release
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |