parent
a0fce449a9
commit
41ebb49c58
|
@ -204,6 +204,16 @@ class DbTool
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether a connection with the server has been established
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isConnected()
|
||||
{
|
||||
return $this->pdoConn !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Establish a connection with the database or just the server by omitting the database name
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue