Skip to content

Update pgJDBC example to include non-admin and connection refresh logic#112

Merged
wcmjunior merged 5 commits intomainfrom
chore/update-pgjdbc-samples
May 5, 2025
Merged

Update pgJDBC example to include non-admin and connection refresh logic#112
wcmjunior merged 5 commits intomainfrom
chore/update-pgjdbc-samples

Conversation

@wcmjunior
Copy link
Copy Markdown
Contributor

@wcmjunior wcmjunior commented May 2, 2025

This PR updates the pgJDBC example. It includes the following changes:

  • Synchronize the example with the publicly available docs here
  • Clean up and improve the documentation/comments
  • Fix dependencies
  • Add non-admin connection example

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT-0 license.

@wcmjunior wcmjunior force-pushed the chore/update-pgjdbc-samples branch from 99b42b3 to 782cae8 Compare May 2, 2025 23:52
@wcmjunior wcmjunior requested a review from trstephen-amazon May 2, 2025 23:52
Copy link
Copy Markdown
Collaborator

@trstephen-amazon trstephen-amazon left a comment

Choose a reason for hiding this comment

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

Add token refresh logic

Can you point this out for me?

working-directory: ./java/pgjdbc
env:
CLUSTER_ENDPOINT: ${{ secrets.JAVA_PGJDBC_CLUSTER_ENDPOINT }}
CLUSTER_USER: admin
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not blocking, see also

#113 (comment)

Comment thread java/pgjdbc/README.md Outdated
Comment on lines +26 to +114
SPDX-License-Identifier: MIT-0
SPDX-License-Identifier: Apache-2.0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

see also

#113 (comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in a172928.

Comment thread java/pgjdbc/build.gradle.kts Outdated
Comment thread java/pgjdbc/pom.xml
Comment on lines -33 to +35
<version>2.29.27</version>
<version>${aws.sdk.version}</version>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nice

Comment thread java/pgjdbc/src/test/java/org/example/DsqlExampleTest.java
@wcmjunior
Copy link
Copy Markdown
Contributor Author

Add token refresh logic

Can you point this out for me?

Sorry, copy and paste issue. There is no token refresh logic as new tokens are created on every connection. :)

@wcmjunior wcmjunior merged commit 196663c into main May 5, 2025
3 checks passed
@danielfrankcom danielfrankcom deleted the chore/update-pgjdbc-samples branch October 7, 2025 21:31
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