-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade dependencies * Add value converter * Add delegating result set * Add tests * Add tests * add tests * Implement delegating result set * Add mockito-junit * Remove deprecated method * Add converting result setup * Refactoring * Add missing javadoc * Fix build for Java 21 * Remove "modern type" option * Move generic row to separate package * Add javadoc to deprecated methods * Remove unused value converter * Add deprecation comments * Remove unused import * Rename test case * Add test for converting ResultSetu * Enable testcontainer reuse * Use new sonar task * Fix sonar warning * Update settings for new vscode version * Add enum for jdbc types * Fix tests * Convert Row to record * Convert to record * Add DB Dialects * Use extractor for generic rows * Remove unused code * Add javadoc comments * Remove unnecesarry methods from records * Code cleanup * Automatically determine dialect from JDBC URL * Fix sonar plugin warning * Code cleanup * Update changelog * Simplify connection interface * Update release date * Update example in readme --------- Co-authored-by: kaklakariada <[email protected]> Co-authored-by: kaklakariada <[email protected]>
- Loading branch information
1 parent
a645e6d
commit c5d0f3e
Showing
56 changed files
with
3,455 additions
and
816 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
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
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.itsallcode.jdbc; | ||
|
||
import java.util.ServiceLoader; | ||
import java.util.ServiceLoader.Provider; | ||
|
||
import org.itsallcode.jdbc.dialect.DbDialect; | ||
|
||
class DbDialectFactory { | ||
public DbDialect createDialect(final String url) { | ||
final ServiceLoader<DbDialect> serviceLoader = ServiceLoader.load(DbDialect.class, | ||
DbDialect.class.getClassLoader()); | ||
return serviceLoader.stream() | ||
.map(Provider::get) | ||
.filter(dialect -> dialect.supportsUrl(url)) | ||
.findAny() | ||
.orElseThrow(() -> new IllegalStateException("No DB dialect registered for JDBC URL '" + url + "'")); | ||
} | ||
} |
Oops, something went wrong.