useful-api.org/persistence/connection.php

7 lines
132 B
PHP

<?php
return (function() {
require(ROOT . "/credentials.php");
return new PDO($DB_DSN, $DB_USERNAME, $DB_PASSWORD);
})();