Make new queries instead of reuse

This commit is contained in:
Juan Pablo Vial
2022-09-09 14:07:27 -04:00
parent 97d5ae8450
commit 758a4b7c7f

View File

@ -20,18 +20,18 @@ class QueryBuilder implements QBInterface
public function select(array $columns = ['*']): Select
{
return $this->getContainer()->get(Select::class)->select($columns);
return $this->getContainer()->make(Select::class)->select($columns);
}
public function insert(string $table): Insert
{
return $this->getContainer()->get(Insert::class)->into($table);
return $this->getContainer()->make(Insert::class)->into($table);
}
public function update(string $table): Update
{
return $this->getContainer()->get(Update::class)->table($table);
return $this->getContainer()->make(Update::class)->table($table);
}
public function delete(string $table): Delete
{
return $this->getContainer()->get(Delete::class)->from($table);
return $this->getContainer()->make(Delete::class)->from($table);
}
}