<?php
declare(strict_types=1);

$dsn  = 'mysql:host=127.0.0.1;dbname=dms;charset=utf8mb4';
$user = 'dms_user';
$pass = 'dms_pass';

$options = [
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
    PDO::MYSQL_ATTR_INIT_COMMAND => "SET sql_mode='STRICT_ALL_TABLES', time_zone = '+00:00'"
];

return new PDO($dsn, $user, $pass, $options);
