Skip to content

Commit

Permalink
Reduce diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jan 2, 2025
1 parent fd69216 commit bb4a970
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const (
type Store interface {
Exec(query string, args ...any) (sql.Result, error)
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
QueryRow(query string, args ...any) *sql.Row
Query(query string, args ...any) (*sql.Rows, error)
Begin() (*sql.Tx, error)
IsRetryableError(err error) bool
Expand Down Expand Up @@ -72,10 +71,6 @@ func (s *storeWrapper) Exec(query string, args ...any) (sql.Result, error) {
return result, err
}

func (s *storeWrapper) QueryRow(query string, args ...any) *sql.Row {
return s.DB.QueryRow(query, args...)
}

func (s *storeWrapper) Query(query string, args ...any) (*sql.Rows, error) {
return s.DB.Query(query, args...)
}
Expand Down

0 comments on commit bb4a970

Please sign in to comment.