2021-02-27 23:04:16 +00:00
|
|
|
<?php
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
2021-03-01 15:06:02 +00:00
|
|
|
use Fufle\Demo\Model\Job;
|
2021-02-27 23:09:45 +00:00
|
|
|
use Fufle\Database\ConnectionManager;
|
2021-02-27 23:04:16 +00:00
|
|
|
|
2021-03-01 15:06:02 +00:00
|
|
|
$dns = 'pgsql:host=localhost;port=5432;dbname=dynamic;user=dynamic;password=password123';
|
2021-02-27 23:04:16 +00:00
|
|
|
ConnectionManager::Connect($dns);
|
|
|
|
echo "
|
|
|
|
|
|
|
|
";
|
2021-03-01 15:06:02 +00:00
|
|
|
var_dump(Job::GetLast10());
|
2021-02-27 23:04:16 +00:00
|
|
|
echo "
|
|
|
|
|
2021-02-28 00:06:51 +00:00
|
|
|
";
|
2021-03-01 15:06:02 +00:00
|
|
|
var_dump(Job::Get(10));
|
2021-02-28 00:06:51 +00:00
|
|
|
echo "
|
|
|
|
|
2021-02-27 23:04:16 +00:00
|
|
|
";
|