Package org.pgcodekeeper.core.loader
Class AbstractJdbcConnector
java.lang.Object
org.pgcodekeeper.core.loader.AbstractJdbcConnector
- Direct Known Subclasses:
UrlJdbcConnector
Abstract base class for JDBC database connectors.
Provides common functionality for establishing database connections across different database types
including PostgreSQL, Microsoft SQL Server, and ClickHouse.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new database connection using the parameters specified in the constructor.getType()
-
Method Details
-
getConnection
Creates a new database connection using the parameters specified in the constructor. The caller is responsible for closing the connection.- Returns:
- new database connection
- Throws:
IOException- if the driver is not found or a database access error occurs
-
getType
-