-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow generic JDBC connection through
Database.connect
(#12331)
Adds `Generic_JDBC_Details` and `GenericJDBCConnectionDetailsImpl`.
- Loading branch information
1 parent
a526b2b
commit 6dca056
Showing
6 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
std-bits/database/src/main/java/org/enso/database/jdbc/GenericJDBCConnectionDetailsImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.enso.database.jdbc; | ||
|
||
import org.enso.database.DatabaseConnectionDetailsSPI; | ||
|
||
@org.openide.util.lookup.ServiceProvider(service = DatabaseConnectionDetailsSPI.class) | ||
public final class GenericJDBCConnectionDetailsImpl extends DatabaseConnectionDetailsSPI { | ||
@Override | ||
protected String getModuleName() { | ||
return "Standard.Database.JDBC.Generic_JDBC_Connection"; | ||
} | ||
|
||
@Override | ||
protected String getTypeName() { | ||
return "Generic_JDBC_Details"; | ||
} | ||
|
||
@Override | ||
protected String getCodeForDefaultConstructor() { | ||
return "(Generic_JDBC_Details.Value)"; | ||
} | ||
|
||
@Override | ||
protected String getUserFacingConnectionName() { | ||
return "JDBC"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters