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 -6
View File
@@ -10,10 +10,8 @@ declare(strict_types=1);
namespace Database;
use Snowflake\Abstracts\Component;
use Database\Orm\Select;
use Database\Traits\QueryTrait;
use Exception;
use Snowflake\Exception\ComponentException;
use Snowflake\Snowflake;
/**
@@ -268,8 +266,7 @@ class ActiveQuery extends Component
*/
public function batchUpdate(array $data): Command|array|bool|int|string
{
return $this->execute($this->builder->update($data))
->exec();
return $this->execute($this->builder->update($data))->exec();
}
/**
@@ -279,8 +276,7 @@ class ActiveQuery extends Component
*/
public function batchInsert(array $data): bool
{
return $this->execute($this->builder->insert($data, true))
->exec();
return $this->execute($this->builder->insert($data, true))->exec();
}
/**