package
database/sql
standard library40 standard-library functions from database/sql, ranked by how often they are called outside tests and generated code.
- prod calls
- 21,646
- non-test, non-generated
- all calls
- 40,939
- total callsites
- functions
- 40
- ranked in this snapshot
- origin
- std
- standard-library
members
Functions in database/sql
Ranked by production calls. The bar scales each function against the busiest in this package.
| Function | Prod calls |
|---|---|
| Rows.Close | 2,110 |
| Row.Scan | 2,021 |
| Rows.Next | 1,960 |
| Rows.Scan | 1,791 |
| Rows.Err | 1,569 |
| Result.RowsAffected | 883 |
| DB.Close | 872 |
| DB.ExecContext | 779 |
| Tx.ExecContext | 776 |
| Tx.Rollback | 759 |
| DB.Exec | 732 |
| DB.QueryRowContext | 682 |
| Tx.Exec | 606 |
| Open | 544 |
| Tx.Commit | 540 |
| DB.QueryContext | 497 |
| DB.QueryRow | 442 |
| DB.BeginTx | 359 |
| DB.Query | 334 |
| Tx.QueryRowContext | 333 |
| Named | 308 |
| DB.SetMaxOpenConns | 226 |
| DB.Begin | 187 |
| DB.SetMaxIdleConns | 184 |
| Stmt.Exec | 179 |
| Rows.Columns | 177 |
| Conn.ExecContext | 161 |
| Tx.QueryContext | 159 |
| Stmt.Close | 157 |
| DB.PingContext | 153 |
| DB.Ping | 151 |
| Tx.Query | 151 |
| Conn.Close | 144 |
| Stmt.ExecContext | 131 |
| DB.Conn | 130 |
| DB.SetConnMaxLifetime | 113 |
| DB.Prepare | 112 |
| Result.LastInsertId | 83 |
| Conn.QueryRowContext | 80 |
| Tx.QueryRow | 71 |