Forked from Beteha/models/Model.php to standalone public library TPsoft/DBmodel,

added creator for build MODEL class,
added basic tests
This commit is contained in:
2025-05-27 23:48:20 +02:00
parent 874e2bab95
commit 4b00166f43
6 changed files with 1903 additions and 1 deletions

12
test/test2.php Normal file
View File

@ -0,0 +1,12 @@
<?php
require_once __DIR__.'/../src/DBmodel.php';
require_once __DIR__.'/../src/creator.php';
$db = new \TPsoft\DBmodel\DBmodel('mysql:host=127.0.0.1;dbname=test;charset=utf8mb4', 'test', 'test');
$creator = new \TPsoft\DBmodel\Creator($db);
$creator->interact();
?>