Skip to content
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

Merged
merged 7 commits into from
Mar 6, 2018

Conversation

rafaeljesus
Copy link
Contributor

Allow cancelation of long running queries

@rafaeljesus rafaeljesus self-assigned this Mar 6, 2018
@rafaeljesus rafaeljesus force-pushed the feature/allow-cancelation-long-queries branch from a3f5107 to 957a013 Compare March 6, 2018 12:52
@codecov
Copy link

codecov bot commented Mar 6, 2018

Codecov Report

Merging #91 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 537cf56...0e76947. Read the comment docs.

@@ -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 {
Copy link
Contributor

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

connection: conn,
},
)
func NewStorage(conn *sql.DB, dumper PgDump, t time.Duration) reader.Reader {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same problem about t

@rafaeljesus rafaeljesus merged commit 2b27fed into master Mar 6, 2018
@rafaeljesus rafaeljesus deleted the feature/allow-cancelation-long-queries branch March 6, 2018 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants