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

support pgx v4 driver #831

Merged
merged 9 commits into from
Oct 7, 2020
Merged

Conversation

Deepak13245
Copy link

No description provided.

@apmmachine
Copy link
Contributor

apmmachine commented Oct 6, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #831 updated]

  • Start Time: 2020-10-07T05:41:34.186+0000

  • Duration: 23 min 19 sec

Test stats 🧪

Test Results
Failed 0
Passed 7545
Skipped 185
Total 7730

Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

Very nice, thank you! We just need to maintain API compatibility (see comment about apmpq.ParseDSN), otherwise this is good to merge.

module/apmsql/pgutils/parser.go Outdated Show resolved Hide resolved
internal/sqlutil/drivername.go Outdated Show resolved Hide resolved
@axw
Copy link
Member

axw commented Oct 7, 2020

jenkins run the tests please

@Deepak13245 Deepak13245 requested a review from axw October 7, 2020 03:43
Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

A couple more small things, otherwise LGTM.

internal/pgutil/parser_test.go Outdated Show resolved Hide resolved
module/apmsql/pgxv4/init.go Outdated Show resolved Hide resolved
@axw
Copy link
Member

axw commented Oct 7, 2020

internal/pgutil will need to be moved to module/apmsql/internal/pgutil, otherwise go.elastic.co/apm has a dependency on apmsql which we do not want.

@codecov-io
Copy link

codecov-io commented Oct 7, 2020

Codecov Report

Merging #831 into master will increase coverage by 0.00%.
The diff coverage is 76.85%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #831   +/-   ##
=======================================
  Coverage   83.65%   83.65%           
=======================================
  Files         136      138    +2     
  Lines        7823     7827    +4     
=======================================
+ Hits         6544     6548    +4     
  Misses        870      870           
  Partials      409      409           
Impacted Files Coverage Δ
module/apmsql/internal/pgutil/parser.go 75.96% <75.96%> (ø)
internal/sqlutil/drivername.go 100.00% <100.00%> (ø)
module/apmsql/pgxv4/init.go 100.00% <100.00%> (ø)
module/apmsql/pq/parser.go 100.00% <100.00%> (+24.03%) ⬆️

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 8b847bd...0226a5f. Read the comment docs.

@axw axw merged commit 9d1699b into elastic:master Oct 7, 2020
@axw
Copy link
Member

axw commented Oct 7, 2020

Nice work, thanks very much @Deepak13245!

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.

4 participants