<?php

declare(strict_types=1);

return [
    'driver'   => $_ENV['DB_CONNECTION'] ?? 'pdo_mysql',
    'host'     => $_ENV['DB_HOST'] ?? '127.0.0.1',
    'port'     => $_ENV['DB_PORT'] ?? '3306',
    'dbname'   => $_ENV['DB_DATABASE'] ?? 'nursery_db',
    'user'     => $_ENV['DB_USERNAME'] ?? 'root',
    'password' => $_ENV['DB_PASSWORD'] ?? '',
    'charset'  => 'utf8mb4',
    'driverOptions' => [
        // Opzioni specifiche del driver PDO, se necessarie
        // PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'
    ],
];