Singleton Database Connection Manager for PostgreSQL.
More...
|
| static | getConnection () |
| | Retrieves the active PDO connection instance or establishes a new one.
|
| |
|
| static | runMigrations (PDO $pdo) |
| | Ensures that necessary dynamic tables exist upon connection.
|
| |
Singleton Database Connection Manager for PostgreSQL.
◆ getConnection()
| static App\Core\Database::getConnection |
( |
| ) |
|
|
static |
Retrieves the active PDO connection instance or establishes a new one.
- Returns
- PDO The active database connection.
◆ runMigrations()
| static App\Core\Database::runMigrations |
( |
PDO | $pdo | ) |
|
|
staticprivate |
Ensures that necessary dynamic tables exist upon connection.
- Parameters
-
| PDO | $pdo | The active PDO instance. |
◆ $instance
| PDO App\Core\Database::$instance = null |
|
staticprivate |
The documentation for this class was generated from the following file: