-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow cancelation of long queries #91
Conversation
a3f5107
to
957a013
Compare
Codecov Report
@@ Coverage Diff @@
## master #91 +/- ##
=======================================
Coverage 32.39% 32.39%
=======================================
Files 5 5
Lines 213 213
=======================================
Hits 69 69
Misses 140 140
Partials 4 4 Continue to review full report at Codecov.
|
pkg/reader/mysql/reader.go
Outdated
@@ -17,8 +17,8 @@ type storage struct { | |||
} | |||
|
|||
// NewStorage ... | |||
func NewStorage(conn *sql.DB) reader.Reader { | |||
return generic.NewSqlReader(&storage{conn}) | |||
func NewStorage(conn *sql.DB, t time.Duration) reader.Reader { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO t
is too implicit and tells only aboit the type, but not the purpose of the parameter
pkg/reader/postgres/reader.go
Outdated
connection: conn, | ||
}, | ||
) | ||
func NewStorage(conn *sql.DB, dumper PgDump, t time.Duration) reader.Reader { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same problem about t
Allow cancelation of long running queries