type database/sql.DB

55 uses

	database/sql (current package)
		sql.go#L507: type DB struct {
		sql.go#L560: 	db        *DB
		sql.go#L744: func (db *DB) addDep(x finalCloser, dep any) {
		sql.go#L750: func (db *DB) addDepLocked(x finalCloser, dep any) {
		sql.go#L766: func (db *DB) removeDep(x finalCloser, dep any) error {
		sql.go#L773: func (db *DB) removeDepLocked(x finalCloser, dep any) func() error {
		sql.go#L832: func OpenDB(c driver.Connector) *DB {
		sql.go#L834: 	db := &DB{
		sql.go#L863: func Open(driverName, dataSourceName string) (*DB, error) {
		sql.go#L882: func (db *DB) pingDC(ctx context.Context, dc *driverConn, release func(error)) error {
		sql.go#L895: func (db *DB) PingContext(ctx context.Context) error {
		sql.go#L916: func (db *DB) Ping() error {
		sql.go#L926: func (db *DB) Close() error {
		sql.go#L962: func (db *DB) maxIdleConnsLocked() int {
		sql.go#L975: func (db *DB) shortestIdleTimeLocked() time.Duration {
		sql.go#L995: func (db *DB) SetMaxIdleConns(n int) {
		sql.go#L1029: func (db *DB) SetMaxOpenConns(n int) {
		sql.go#L1047: func (db *DB) SetConnMaxLifetime(d time.Duration) {
		sql.go#L1069: func (db *DB) SetConnMaxIdleTime(d time.Duration) {
		sql.go#L1088: func (db *DB) startCleanerLocked() {
		sql.go#L1095: func (db *DB) connectionCleaner(d time.Duration) {
		sql.go#L1141: func (db *DB) connectionCleanerRunLocked(d time.Duration) (time.Duration, []*driverConn) {
		sql.go#L1215: func (db *DB) Stats() DBStats {
		sql.go#L1240: func (db *DB) maybeOpenNewConnections() {
		sql.go#L1259: func (db *DB) connectionOpener(ctx context.Context) {
		sql.go#L1271: func (db *DB) openNewConnection(ctx context.Context) {
		sql.go#L1316: func (db *DB) conn(ctx context.Context, strategy connReuseStrategy) (*driverConn, error) {
		sql.go#L1453: var putConnHook func(*DB, *driverConn)
		sql.go#L1458: func (db *DB) noteUnusedDriverStatement(c *driverConn, ds *driverStmt) {
		sql.go#L1481: func (db *DB) putConn(dc *driverConn, err error, resetSession bool) {
		sql.go#L1542: func (db *DB) putConnDBLocked(dc *driverConn, err error) bool {
		sql.go#L1574: func (db *DB) retry(fn func(strategy connReuseStrategy) error) error {
		sql.go#L1594: func (db *DB) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
		sql.go#L1614: func (db *DB) Prepare(query string) (*Stmt, error) {
		sql.go#L1618: func (db *DB) prepare(ctx context.Context, query string, strategy connReuseStrategy) (*Stmt, error) {
		sql.go#L1635: func (db *DB) prepareDC(ctx context.Context, dc *driverConn, release func(error), cg stmtConnGrabber, query string) (*Stmt, error) {
		sql.go#L1667: func (db *DB) ExecContext(ctx context.Context, query string, args ...any) (Result, error) {
		sql.go#L1684: func (db *DB) Exec(query string, args ...any) (Result, error) {
		sql.go#L1688: func (db *DB) exec(ctx context.Context, query string, args []any, strategy connReuseStrategy) (Result, error) {
		sql.go#L1696: func (db *DB) execDC(ctx context.Context, dc *driverConn, release func(error), query string, args []any) (res Result, err error) {
		sql.go#L1737: func (db *DB) QueryContext(ctx context.Context, query string, args ...any) (*Rows, error) {
		sql.go#L1754: func (db *DB) Query(query string, args ...any) (*Rows, error) {
		sql.go#L1758: func (db *DB) query(ctx context.Context, query string, args []any, strategy connReuseStrategy) (*Rows, error) {
		sql.go#L1771: func (db *DB) queryDC(ctx, txctx context.Context, dc *driverConn, releaseConn func(error), query string, args []any) (*Rows, error) {
		sql.go#L1841: func (db *DB) QueryRowContext(ctx context.Context, query string, args ...any) *Row {
		sql.go#L1855: func (db *DB) QueryRow(query string, args ...any) *Row {
		sql.go#L1869: func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) {
		sql.go#L1886: func (db *DB) Begin() (*Tx, error) {
		sql.go#L1890: func (db *DB) begin(ctx context.Context, opts *TxOptions, strategy connReuseStrategy) (tx *Tx, err error) {
		sql.go#L1899: func (db *DB) beginDC(ctx context.Context, dc *driverConn, release func(error), opts *TxOptions) (tx *Tx, err error) {
		sql.go#L1930: func (db *DB) Driver() driver.Driver {
		sql.go#L1945: func (db *DB) Conn(ctx context.Context) (*Conn, error) {
		sql.go#L1977: 	db *DB
		sql.go#L2167: 	db *DB
		sql.go#L2605: 	db        *DB    // where we came from