Files
kiri-core/Database/Query.php
T
as2252258@163.com 0e10ee2f75 modify
2021-03-27 02:59:15 +08:00

46 lines
579 B
PHP

<?php
/**
* Created by PhpStorm.
* User: whwyy
* Date: 2018/6/27 0027
* Time: 17:49
*/
declare(strict_types=1);
namespace Database;
use Database\Traits\QueryTrait;
use Exception;
/**
* Class Query
* @package Database
*/
class Query implements ISqlBuilder
{
use QueryTrait;
/**
* @return string
* @throws Exception
*/
public function getSql(): string
{
return SqlBuilder::builder($this)->get();
}
/**
* @return string
* @throws Exception
*/
public function getCondition(): string
{
return SqlBuilder::builder($this)->getCondition();
}
}