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

feat: SQLite support via JDBC #762

Merged
merged 14 commits into from
Apr 17, 2023
Merged

feat: SQLite support via JDBC #762

merged 14 commits into from
Apr 17, 2023

Conversation

laysakura
Copy link
Contributor

@laysakura laysakura commented Dec 18, 2022

@laysakura laysakura changed the title [WIP] feat: SQLite support via JDBC feat: SQLite support via JDBC Apr 10, 2023
@laysakura laysakura marked this pull request as ready for review April 10, 2023 21:30
@laysakura
Copy link
Contributor Author

The SQLite support finally got merge ready!

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

Left a comment. Other than that, LGTM. Please take a look when you have time!

Comment on lines 24 to 25
String jdbcUrl = System.getProperty(PROP_JDBC_URL, DEFAULT_JDBC_URL);
return jdbcUrl.startsWith("jdbc:sqlite:");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, I missed this in the previous PR for some reason. Can you please add a method doing this in the JdbcEnv class, and call the new method here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you! 🎉

Comment on lines 12 to 13
private static final String PROP_JDBC_URL = "scalardb.jdbc.url";
private static final String DEFAULT_JDBC_URL = "jdbc:mysql://localhost:3306/";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please also delete these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I did it: d790e90

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

One thing, I just noticed this PR has docs/getting-started/sample.db. Do we really need this file?

Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@laysakura
Copy link
Contributor Author

@brfrn169

One thing, I just noticed this PR has docs/getting-started/sample.db. Do we really need this file?

Good catch! I removed it in 423b06f.

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@feeblefakie feeblefakie merged commit a7c2a88 into master Apr 17, 2023
12 checks passed
@feeblefakie feeblefakie deleted the feat/jdbc-sqlite branch April 17, 2023 05:54
@brfrn169 brfrn169 added this to Done in 3.9.0 Apr 27, 2023
brfrn169 pushed a commit that referenced this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
3.9.0
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants