Class AbstractJdbcConnector

java.lang.Object
org.pgcodekeeper.core.loader.AbstractJdbcConnector
Direct Known Subclasses:
UrlJdbcConnector

public abstract class AbstractJdbcConnector extends Object
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 Details

    • getConnection

      public Connection getConnection() throws IOException
      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

      public DatabaseType getType()