-
Notifications
You must be signed in to change notification settings - Fork 323
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
Update Database.connect
to match new API
#3542
Conversation
f9ff328
to
290f44e
Compare
Database.connect
to match new API
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Connection.enso
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Connection_Options.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Connection_Options.enso
Outdated
Show resolved
Hide resolved
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.
Looks good to me overall, a few missing docs should be added and besides that a few small suggestions.
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Client_Certificate.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/PostgreSQL.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/PostgreSQL.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Redshift.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Redshift.enso
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/SSL_Mode.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Data/Dialect.enso
Outdated
Show resolved
Hide resolved
private static void initialize() throws SQLException { | ||
if (!org.postgresql.Driver.isRegistered()) { | ||
org.postgresql.Driver.register(); | ||
public static String[] getStringColumn(ResultSet resultSet, String column) throws SQLException { |
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.
Any reason why this is implemented in Java instead of pure Enso? Seems like Vector.new_builder
+ regular polyglot calls would suffice.
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.
one to consider during the read implementation.
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.
Ok, can we have a TODO then? Otherwise I'd be worried it can likely get lost. But maybe it's not that important so it's not a problem too.
89396eb
to
cb621f8
Compare
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Client_Certificate.enso
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/PostgreSQL.enso
Outdated
Show resolved
Hide resolved
88d3936
to
d8e076d
Compare
Still to test PostgreSQL.
Redshift dialect set up.
Fix Redshift. Add tests for SQLite InMemory
…nnection_Options.enso
…stgreSQL.enso Co-authored-by: Radosław Waśko <[email protected]>
…dshift.enso Co-authored-by: Radosław Waśko <[email protected]>
d8e076d
to
9c62b4a
Compare
Pull Request Description
Initial work restructuring the
Database.connect
APIImportant Notes
Follow up tasks:
.pgpass
support.Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide dist
and./run ide watch
.