diff --git a/src/DatabaseConfig.php b/src/DatabaseConfig.php index c8280632..dacf9007 100644 --- a/src/DatabaseConfig.php +++ b/src/DatabaseConfig.php @@ -163,4 +163,14 @@ class DatabaseConfig 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()); + } }