-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Postgres & CloudSQL update for flex #738
Conversation
lesv
commented
Jun 29, 2017
- update cloudSql to latest plugin and make the sample a bit cleaner.
- add postgresql sample.
1. update cloudSql to latest plugin and make the sample a bit cleaner. 2. add postgresql sample.
I'm going to merge, but I'd rather the init method threw all the things I catch. |
Well, I can't change init() to add the other types, so I'm going to keep this. |
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.
LGTM, minor comments.
log("connecting to: " + url); | ||
try { | ||
Class.forName("com.mysql.jdbc.Driver"); | ||
conn = DriverManager.getConnection(url); |
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.
(optional/future) instead of DriverManager.getConnection
,
connection pooling with commons-bcp
: https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2
@@ -0,0 +1,24 @@ | |||
# Copyright 2016 Google Inc. |
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.
2017
@@ -0,0 +1,127 @@ | |||
/** | |||
* Copyright 2016 Google Inc. |
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.
2017
* Tag fix * rerun conventional commit
* Tag fix * rerun conventional commit