$db = Database::
connect(null, false
);
$db->
connect();
if (!
is_file($db->
getDatabase()) &&
$name !== ':memory:'
) { // @codeCoverageIgnoreStart
CLI::
error('Database creation failed.', 'light_gray', 'red'
);
CLI::
newLine();
return;
// @codeCoverageIgnoreEnd
} } elseif (! Database::
forge()->
createDatabase($name)) { // @codeCoverageIgnoreStart
CLI::
error('Database creation failed.', 'light_gray', 'red'
);
CLI::
newLine();
return;
// @codeCoverageIgnoreEnd
} CLI::
write("Database \"{
$name}\" successfully created.", 'green'
);
CLI::
newLine();
} catch (Throwable
$e) {