beautify et ajout export type connection
This commit is contained in:
@@ -217,9 +217,14 @@ class Connection
|
|||||||
{
|
{
|
||||||
return $this->error;
|
return $this->error;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPdo()
|
public function getPdo()
|
||||||
{
|
{
|
||||||
return $this->pdo;
|
return $this->pdo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDriverType()
|
||||||
|
{
|
||||||
|
return $this->type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function find(mixed $key): mixed
|
public function find(mixed $key): mixed
|
||||||
{
|
{
|
||||||
$qb = $this->newQueryBuilder();
|
$qb = $this->newQueryBuilder();
|
||||||
$find = $qb->find($key);
|
$find = $qb->find($key);
|
||||||
if ($find !== null) {
|
if ($find !== null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user