改名
This commit is contained in:
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
|||||||
namespace Database;
|
namespace Database;
|
||||||
|
|
||||||
|
|
||||||
|
use JetBrains\PhpStorm\Pure;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Snowflake\Abstracts\Component;
|
use Snowflake\Abstracts\Component;
|
||||||
use Database\Mysql\Schema;
|
use Database\Mysql\Schema;
|
||||||
@@ -105,8 +106,9 @@ class Connection extends Component
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化 Channel
|
|
||||||
* @throws ComponentException
|
* @throws ComponentException
|
||||||
|
* @throws NotFindClassException
|
||||||
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
public function fill()
|
public function fill()
|
||||||
{
|
{
|
||||||
@@ -151,7 +153,7 @@ class Connection extends Component
|
|||||||
* @param $sql
|
* @param $sql
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isWrite($sql): bool
|
#[Pure] public function isWrite($sql): bool
|
||||||
{
|
{
|
||||||
if (empty($sql)) return false;
|
if (empty($sql)) return false;
|
||||||
|
|
||||||
@@ -163,6 +165,8 @@ class Connection extends Component
|
|||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws ComponentException
|
* @throws ComponentException
|
||||||
|
* @throws NotFindClassException
|
||||||
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
public function getCacheDriver(): mixed
|
public function getCacheDriver(): mixed
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user