Add database and ORM scaffolding

This commit is contained in:
Alex Cabal 2021-12-09 13:13:16 -06:00
parent 42ba2f8680
commit 9d923605d8
8 changed files with 278 additions and 0 deletions

15
lib/Db.php Normal file
View file

@ -0,0 +1,15 @@
<?
class Db{
public static function GetLastInsertedId(){
return $GLOBALS['DbConnection']->GetLastInsertedId();
}
public static function Query(string $query, $args = []){
if(!is_array($args)){
$args = [$args];
}
return $GLOBALS['DbConnection']->Query($query, $args);
}
}