This commit is contained in:
2021-02-24 18:34:57 +08:00
parent 22148402b6
commit 9024c7c3ab
21 changed files with 245 additions and 349 deletions
+15 -2
View File
@@ -6,6 +6,7 @@
* Time: 17:49
*/
declare(strict_types=1);
namespace Database;
@@ -19,9 +20,9 @@ use Exception;
*/
class Sql
{
use QueryTrait;
/**
* @return string
* @throws Exception
@@ -30,4 +31,16 @@ class Sql
{
return (new Select())->getQuery($this);
}
/**
* @return string
* @throws Exception
*/
public function getCondition(): string
{
return (new Select())->getWhere($this);
}
}