eee
This commit is contained in:
@@ -153,6 +153,24 @@ class Db extends QueryTrait implements ISqlBuilder
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return bool|array|null
|
||||
*/
|
||||
public function first(): bool|array|null
|
||||
{
|
||||
return $this->connection->createCommand(SqlBuilder::builder($this)->delete())->one();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return bool|array
|
||||
*/
|
||||
public function get(): bool|array
|
||||
{
|
||||
return $this->connection->createCommand(SqlBuilder::builder($this)->delete())->all();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $sql
|
||||
* @return mixed
|
||||
|
||||
Reference in New Issue
Block a user