TxQuerier is the interface for database transaction operations. It is implemented by *database.Tx and provides transaction-specific query methods with prepared statement caching, plus transaction control methods.
| 17 | // It is implemented by *database.Tx and provides transaction-specific query |
| 18 | // methods with prepared statement caching, plus transaction control methods. |
| 19 | type TxQuerier interface { |
| 20 | ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) |
| 21 | QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error) |
| 22 | QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row |
| 23 | Commit() error |
| 24 | Rollback() error |
| 25 | } |
| 26 | |
| 27 | // Querier is the centralized interface for database operations. |
| 28 | // It is implemented by *database.DB and provides all database capabilities |
no outgoing calls
no test coverage detected