type database/sql.DB

55 uses

	database/sql (current package)
		sql.go#L512: type DB struct {
		sql.go#L565: 	db        *DB
		sql.go#L749: func (db *DB) addDep(x finalCloser, dep any) {
		sql.go#L755: func (db *DB) addDepLocked(x finalCloser, dep any) {
		sql.go#L771: func (db *DB) removeDep(x finalCloser, dep any) error {
		sql.go#L778: func (db *DB) removeDepLocked(x finalCloser, dep any) func() error {
		sql.go#L837: func OpenDB(c driver.Connector) *DB {
		sql.go#L839: 	db := &DB{
		sql.go#L868: func Open(driverName, dataSourceName string) (*DB, error) {
		sql.go#L887: func (db *DB) pingDC(ctx context.Context, dc *driverConn, release func(error)) error {
		sql.go#L900: func (db *DB) PingContext(ctx context.Context) error {
		sql.go#L921: func (db *DB) Ping() error {
		sql.go#L931: func (db *DB) Close() error {
		sql.go#L967: func (db *DB) maxIdleConnsLocked() int {
		sql.go#L980: func (db *DB) shortestIdleTimeLocked() time.Duration {
		sql.go#L1000: func (db *DB) SetMaxIdleConns(n int) {
		sql.go#L1034: func (db *DB) SetMaxOpenConns(n int) {
		sql.go#L1052: func (db *DB) SetConnMaxLifetime(d time.Duration) {
		sql.go#L1074: func (db *DB) SetConnMaxIdleTime(d time.Duration) {
		sql.go#L1093: func (db *DB) startCleanerLocked() {
		sql.go#L1100: func (db *DB) connectionCleaner(d time.Duration) {
		sql.go#L1146: func (db *DB) connectionCleanerRunLocked(d time.Duration) (time.Duration, []*driverConn) {
		sql.go#L1220: func (db *DB) Stats() DBStats {
		sql.go#L1245: func (db *DB) maybeOpenNewConnections() {
		sql.go#L1264: func (db *DB) connectionOpener(ctx context.Context) {
		sql.go#L1276: func (db *DB) openNewConnection(ctx context.Context) {
		sql.go#L1321: func (db *DB) conn(ctx context.Context, strategy connReuseStrategy) (*driverConn, error) {
		sql.go#L1458: var putConnHook func(*DB, *driverConn)
		sql.go#L1463: func (db *DB) noteUnusedDriverStatement(c *driverConn, ds *driverStmt) {
		sql.go#L1486: func (db *DB) putConn(dc *driverConn, err error, resetSession bool) {
		sql.go#L1547: func (db *DB) putConnDBLocked(dc *driverConn, err error) bool {
		sql.go#L1579: func (db *DB) retry(fn func(strategy connReuseStrategy) error) error {
		sql.go#L1599: func (db *DB) PrepareContext(ctx context.Context, query string) (*Stmt, error) {
		sql.go#L1619: func (db *DB) Prepare(query string) (*Stmt, error) {
		sql.go#L1623: func (db *DB) prepare(ctx context.Context, query string, strategy connReuseStrategy) (*Stmt, error) {
		sql.go#L1640: func (db *DB) prepareDC(ctx context.Context, dc *driverConn, release func(error), cg stmtConnGrabber, query string) (*Stmt, error) {
		sql.go#L1672: func (db *DB) ExecContext(ctx context.Context, query string, args ...any) (Result, error) {
		sql.go#L1689: func (db *DB) Exec(query string, args ...any) (Result, error) {
		sql.go#L1693: func (db *DB) exec(ctx context.Context, query string, args []any, strategy connReuseStrategy) (Result, error) {
		sql.go#L1701: func (db *DB) execDC(ctx context.Context, dc *driverConn, release func(error), query string, args []any) (res Result, err error) {
		sql.go#L1742: func (db *DB) QueryContext(ctx context.Context, query string, args ...any) (*Rows, error) {
		sql.go#L1759: func (db *DB) Query(query string, args ...any) (*Rows, error) {
		sql.go#L1763: func (db *DB) query(ctx context.Context, query string, args []any, strategy connReuseStrategy) (*Rows, error) {
		sql.go#L1776: func (db *DB) queryDC(ctx, txctx context.Context, dc *driverConn, releaseConn func(error), query string, args []any) (*Rows, error) {
		sql.go#L1846: func (db *DB) QueryRowContext(ctx context.Context, query string, args ...any) *Row {
		sql.go#L1860: func (db *DB) QueryRow(query string, args ...any) *Row {
		sql.go#L1874: func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) {
		sql.go#L1891: func (db *DB) Begin() (*Tx, error) {
		sql.go#L1895: func (db *DB) begin(ctx context.Context, opts *TxOptions, strategy connReuseStrategy) (tx *Tx, err error) {
		sql.go#L1904: func (db *DB) beginDC(ctx context.Context, dc *driverConn, release func(error), opts *TxOptions) (tx *Tx, err error) {
		sql.go#L1935: func (db *DB) Driver() driver.Driver {
		sql.go#L1950: func (db *DB) Conn(ctx context.Context) (*Conn, error) {
		sql.go#L1982: 	db *DB
		sql.go#L2172: 	db *DB
		sql.go#L2610: 	db        *DB    // where we came from