3 Commits

Author SHA1 Message Date
2fd0af5c2f FIX 2022-09-09 12:19:03 -04:00
0f4438bd5f FIX dependency and add Readme 2022-09-08 22:14:18 -04:00
9eef089b85 First working copy 2022-09-08 17:43:20 -04:00
2 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ abstract class Insert extends Query implements InsertInterface
} }
public function addValue(int|string $value): InsertInterface public function addValue(int|string $value): InsertInterface
{ {
if (!is_numeric($value) and $value !== '?') { if (!is_numeric($value)) {
$value = "'{$value}'"; $value = "'{$value}'";
} }
$this->values []= $value; $this->values []= $value;

View File

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