Reorder and new queries, also change to Query/Builder

This commit is contained in:
2023-02-28 23:47:02 -03:00
parent 849d42ea57
commit d266008224
33 changed files with 839 additions and 612 deletions

View File

@ -0,0 +1,22 @@
<?php
namespace ProVM\Implement\Database\Query;
trait hasTable
{
protected string $table;
public function getTable(): string
{
return $this->table;
}
public function setTable(string $table, ?string $alias = null)
{
$table = "`{$table}`";
if ($alias !== null) {
$table = "{$table} '{$alias}'";
}
$this->table = $table;
return $this;
}
}