1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:34:04 +00:00

Check if the database exists.

Allows developers to check if a database exists.

#296 #814 #1153 #598
This commit is contained in:
Solomon Ochepa 2025-04-01 04:00:46 +01:00 committed by GitHub
parent d98a170fbd
commit 52cbb3bde5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,4 +163,14 @@ class DatabaseConfig
return $databaseManager; return $databaseManager;
} }
/**
* Check if the database exists.
*
* @return bool Returns true if the database exists, otherwise false.
*/
public function exists(): bool
{
return $this->manager()->databaseExists($this->getName());
}
} }