diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-19 15:50:42 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-19 16:11:52 +0200 |
commit | d08f4c83470c25d35d24594bd73e4effdac191a0 (patch) | |
tree | 8320e4d0750776891fa5680ce5904de714128fce /src/DB.php | |
parent | a0ad1f5e7fac279b33ea09ca0e347cd7d02cd8ec (diff) |
database migrations and models for users, devices, tokens
Diffstat (limited to 'src/DB.php')
-rw-r--r-- | src/DB.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/DB.php b/src/DB.php deleted file mode 100644 index 53d078b..0000000 --- a/src/DB.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -namespace App; - -class DB -{ - use Singleton; - - private \PDO $connection; - - public function __construct() - { - $driver = $_ENV['DB_DRIVER'] ?? 'pgsql'; - $host = $_ENV['DB_HOST'] ?? 'localhost'; - $port = $_ENV['DB_PORT'] ?? 5432; - $dbname = $_ENV['DB_NAME']; - $user = $_ENV['DB_USER']; - $password = $_ENV['DB_PASSWORD']; - - $this->connection = new \PDO("$driver:host=$host;port=$port;dbname=$dbname", $user, $password); - } -} |