Package org.pgcodekeeper.core.loader
Class UrlJdbcConnector
java.lang.Object
org.pgcodekeeper.core.loader.AbstractJdbcConnector
org.pgcodekeeper.core.loader.UrlJdbcConnector
JDBC connector implementation that uses a JDBC URL for database connections.
Automatically detects database type from the URL and provides SSL certificate trust configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseTypeDetermines the database type from a JDBC URL.Methods inherited from class org.pgcodekeeper.core.loader.AbstractJdbcConnector
getConnection, getType
-
Constructor Details
-
UrlJdbcConnector
Creates a new URL-based JDBC connector.- Parameters:
url- the JDBC URL for database connection
-
-
Method Details
-
getDatabaseTypeFromUrl
Determines the database type from a JDBC URL.- Parameters:
url- the JDBC URL to analyze- Returns:
- the database type (PostgreSQL, Microsoft SQL Server, or ClickHouse)
- Throws:
IllegalArgumentException- if the URL schema is not supported
-