This commit is contained in:
2021-02-25 17:57:20 +08:00
parent e1fa0a6b12
commit fd001e6fbb
13 changed files with 93 additions and 469 deletions
+2 -3
View File
@@ -10,7 +10,6 @@ declare(strict_types=1);
namespace Database;
use Database\Orm\Select;
use Database\Traits\QueryTrait;
use Exception;
@@ -29,7 +28,7 @@ class Sql
*/
public function getSql(): string
{
return (new Select())->getQuery($this);
return SqlBuilder::builder($this)->get();
}
@@ -39,7 +38,7 @@ class Sql
*/
public function getCondition(): string
{
return (new Select())->getWhere($this);
return SqlBuilder::builder($this)->getCondition();
}