Skip to content

docs: add psycopg3 sample with embedded PGAdapter - #733

Merged
olavloite merged 2 commits into
postgresql-dialectfrom
psycopg3-sample
Mar 20, 2023
Merged

olavloite merged 2 commits into
postgresql-dialectfrom
psycopg3-sample

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

Adds a small sample application that shows how to connect to PGAdapter using psycopg3. This sample application automatically starts PGAdapter as an embedded test container.

@codecov

codecov Bot commented Mar 19, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #733 (d0ad260) into postgresql-dialect (6ef7240) will increase coverage by 3.22%.
The diff coverage is 96.56%.

❗ Current head d0ad260 differs from pull request most recent head 84f2821. Consider uploading reports for the commit 84f2821 to get more accurate results

@@                   Coverage Diff                    @@
##             postgresql-dialect     #733      +/-   ##
========================================================
+ Coverage                 86.32%   89.55%   +3.22%     
- Complexity                 1914     2354     +440     
========================================================
  Files                       122      129       +7     
  Lines                      6216     7764    +1548     
  Branches                    849     1112     +263     
========================================================
+ Hits                       5366     6953    +1587     
+ Misses                      605      563      -42     
- Partials                    245      248       +3     
Flag Coverage Δ
all_tests 89.55% <96.56%> (+3.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...om/google/cloud/spanner/pgadapter/ProxyServer.java 81.39% <ø> (+0.58%) ⬆️
...panner/pgadapter/statements/TruncateStatement.java 100.00% <ø> (ø)
.../spanner/pgadapter/statements/VacuumStatement.java 91.42% <ø> (ø)
...statements/local/DjangoGetTableNamesStatement.java 100.00% <ø> (ø)
...apter/statements/local/ListDatabasesStatement.java 100.00% <ø> (ø)
...tatements/local/SelectCurrentCatalogStatement.java 100.00% <ø> (ø)
...atements/local/SelectCurrentDatabaseStatement.java 100.00% <ø> (ø)
...statements/local/SelectCurrentSchemaStatement.java 100.00% <ø> (ø)
...apter/statements/local/SelectVersionStatement.java 100.00% <ø> (ø)
...loud/spanner/pgadapter/utils/BinaryCopyParser.java 93.38% <ø> (-0.01%) ⬇️
... and 61 more

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@olavloite
olavloite enabled auto-merge (squash) March 20, 2023 18:44
@olavloite
olavloite disabled auto-merge March 20, 2023 19:01
@olavloite
olavloite merged commit 0250b21 into postgresql-dialect Mar 20, 2023
@olavloite
olavloite deleted the psycopg3-sample branch March 20, 2023 19:01
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