-
Notifications
You must be signed in to change notification settings - Fork 0
databaseExists
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Verifies whether a specified database exists within the allowed internal database list and is not blacklisted.
databaseExists(string $dbname): bool
dbname (string) : The name of the database to validate.
(bool)
: Returns true on success and false on failure.
$db->databaseExists('dbname') = true|false
| Config Key | Default Value | Allowed Values | Description |
|---|---|---|---|
| blacklist | ['information_schema', 'mysql', 'performance_schema', 'phpmyadmin'] | array | Databases to ignore |
| db.name | null | string | Database name |
- Throws an exception if the database does not exist or is blacklisted.
Home | CoreyDB | Inspectors