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