Skip to content

Commit

Permalink
Import
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Mar 18, 2024
1 parent 6b7e021 commit 60c7f65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rdbms/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/artie-labs/reader/lib/rdbms/primary_key"
"github.com/artie-labs/transfer/lib/retry"
"gorm.io/gorm/logger"
)

const (
Expand Down Expand Up @@ -107,7 +106,7 @@ func (s *Scanner) Next() ([]map[string]any, error) {

func (s *Scanner) scan() ([]map[string]any, error) {
query, parameters := s.adapter.BuildQuery(s.primaryKeys.Keys(), s.isFirstBatch, s.batchSize)
logger.Info("Scan query", slog.String("query", query), slog.Any("parameters", parameters))
slog.Info("Scan query", slog.String("query", query), slog.Any("parameters", parameters))

rows, err := retry.WithRetriesAndResult(s.retryCfg, func(_ int, _ error) (*sql.Rows, error) {
return s.db.Query(query, parameters...)
Expand Down

0 comments on commit 60c7f65

Please sign in to comment.