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

Add a simple DataSource implementation #183

Merged
merged 1 commit into from
May 21, 2019

Conversation

nicktorwald
Copy link

Implement the DataSource interface to be more compatible with JDBC spec.

Add JDBC standard and Tarantool specific properties (getters/setters) to
follow enterprise features (according to JavaBeans spec).

Closes: #175

@nicktorwald
Copy link
Author

should be rebased and merged after #172

@coveralls
Copy link

coveralls commented May 8, 2019

Coverage Status

Coverage increased (+1.2%) to 70.989% when pulling 1bc0bf2 on nicktorwald/gh-175-datasource into 1cafd58 on master.

Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

Just several thoughts about backward compatibility (url format) and whether we want to stick with specific terms here and there.

README.md Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/ds/SQLDataSource.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/ds/SQLDataSource.java Outdated Show resolved Hide resolved
src/main/java/org/tarantool/jdbc/ds/SQLDataSource.java Outdated Show resolved Hide resolved
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-175-datasource branch 2 times, most recently from 2a15aca to 1bc0bf2 Compare May 20, 2019 08:29
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

LGTM.

Just one note re typo.

src/main/java/org/tarantool/jdbc/ds/SQLDataSource.java Outdated Show resolved Hide resolved
Implement the DataSource interface to be more compatible with JDBC spec.

Add JDBC standard and Tarantool specific properties (getters/setters) to
follow enterprise features (according to JavaBeans spec).

Fix a JDBC URL scheme. Now correct scheme has the format like
'jdbc:tarantool://' where `tarantool` is JDBC sub-protocol. Old scheme
version `tarantool://` was not JDBC-compatible.

Closes: #175
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-175-datasource branch from 1bc0bf2 to 8366d6e Compare May 21, 2019 18:21
@nicktorwald nicktorwald merged commit 2c9cd80 into master May 21, 2019
@nicktorwald nicktorwald deleted the nicktorwald/gh-175-datasource branch May 21, 2019 18:22
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.

jdbc: DataSource support
3 participants