-
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
Restructuring Database.Connection
to allow for database specific types.
#3632
Conversation
1719945
to
9217cb6
Compare
Having both properties The same applies for |
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Postgres.enso
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Postgres/Postgres_Connection.enso
Outdated
Show resolved
Hide resolved
baef070
to
3c2776b
Compare
The |
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.enso
Outdated
Show resolved
Hide resolved
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.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
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Connection/Connection.enso
Outdated
Show resolved
Hide resolved
d58e2a4
to
8587b14
Compare
I am curious to know what that is sentence supposed to mean? I see Is the list of supported DB types hardcoded currently? How can one connect to SQLite and how can one connect to Postgres? Is there a way to expand the list of supported DB now? In the future? Where I would add support of such a DB? |
I will re-word it. The specific connection types are supposed to implement the same API as the
Currently, the supported databases are SQLite, Postgres and Redshift. They will be presented as a union type on the |
fb768b1
to
04b3945
Compare
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, just a few small suggestions.
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/Connection.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Result_Set.enso
Outdated
Show resolved
Hide resolved
… implementations.
…gres/Postgres_Connection.enso Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
Add tables function into Connections.
Note - does not pass the common tests as order of results != order of input.
…nnection.enso Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
…nnection.enso Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
…nnection.enso Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
c12f2b9
to
0a3e753
Compare
Pull Request Description
databases
,database
,set_database
.schemas
,schema
,set_schema
.table_types
,tables
.JDBC_Connection
object.Connection
represents the standard API for database connections and provides a base JDBC implementation.SQLite_Connection
has theConnection
API but with customdatabases
andschemas
methods for SQLite.Postgres_Connection
has theConnection
API but with customset_database
,databases
,set_schema
andschemas
methods for Postgres.Redshift
- no public API change.Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide dist
and./run ide watch
.