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,297
- non-test, non-generated
- all calls
- 40,289
- 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,076 |
| Row.Scan | 1,978 |
| Rows.Next | 1,922 |
| Rows.Scan | 1,771 |
| Rows.Err | 1,554 |
| Result.RowsAffected | 881 |
| DB.Close | 842 |
| DB.ExecContext | 759 |
| Tx.ExecContext | 749 |
| Tx.Rollback | 745 |
| DB.Exec | 731 |
| DB.QueryRowContext | 674 |
| Tx.Exec | 606 |
| Open | 542 |
| Tx.Commit | 532 |
| DB.QueryContext | 493 |
| DB.QueryRow | 442 |
| DB.BeginTx | 349 |
| DB.Query | 334 |
| Tx.QueryRowContext | 327 |
| Named | 305 |
| DB.SetMaxOpenConns | 204 |
| DB.Begin | 187 |
| Stmt.Exec | 179 |
| Rows.Columns | 176 |
| DB.SetMaxIdleConns | 165 |
| Conn.ExecContext | 159 |
| Tx.QueryContext | 158 |
| Stmt.Close | 157 |
| DB.Ping | 151 |
| Tx.Query | 151 |
| DB.PingContext | 149 |
| Conn.Close | 141 |
| Stmt.ExecContext | 131 |
| DB.Conn | 129 |
| DB.Prepare | 112 |
| DB.SetConnMaxLifetime | 103 |
| Result.LastInsertId | 83 |
| Conn.QueryRowContext | 79 |
| Tx.QueryRow | 71 |