mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
debug
This commit is contained in:
parent
fd8b7eb6fc
commit
eb553fa96c
1 changed files with 7 additions and 0 deletions
|
|
@ -108,6 +108,10 @@ class Database extends Event
|
|||
*/
|
||||
public function trigger(): string|bool
|
||||
{
|
||||
|
||||
var_dump('database=');
|
||||
var_dump($this->getProject()->getAttribute('database'));
|
||||
|
||||
try {
|
||||
$dsn = new DSN($this->getProject()->getAttribute('database'));
|
||||
} catch (\InvalidArgumentException) {
|
||||
|
|
@ -115,6 +119,9 @@ class Database extends Event
|
|||
$dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database'));
|
||||
}
|
||||
|
||||
var_dump('$dsn->getHost()=');
|
||||
var_dump($dsn->getHost());
|
||||
|
||||
$this->setQueue($dsn->getHost());
|
||||
|
||||
$client = new Client($this->queue, $this->connection);
|
||||
|
|
|
|||
Loading…
Reference in a new issue