Class dbSetup


public class dbSetup extends Object
Provides a centralized utility for managing database connectivity. This class loads configuration settings from external properties files to establish a secure connection to the PostgreSQL backend. * @author Team 60
  • Constructor Details

    • dbSetup

      public dbSetup()
  • Method Details

    • getConnection

      public static Connection getConnection()
      Attempts to establish a connection to the PostgreSQL database. Uses credentials and the URL defined in 'db_config.properties'. * @return A valid Connection object if successful; null if the driver is missing or credentials are incorrect.