function _db_maintenance_determine_software in DB Maintenance 6
Same name and namespace in other branches
- 6.2 db_maintenance.module \_db_maintenance_determine_software()
Determine which database software is in use
2 calls to _db_maintenance_determine_software()
- db_maintenance_optimize_tables in ./
db_maintenance.module - Perform the maintenance.
- _db_maintenance_list_tables in ./
db_maintenance.module - Get a list of all the tables in a database.
File
- ./
db_maintenance.module, line 240 - Optimizes database tables during cron runs.
Code
function _db_maintenance_determine_software() {
global $db_type;
static $db_engine;
if (!empty($db_engine)) {
return $db_engine;
}
elseif ($db_type == 'mysql' || $db_type == 'mysqli') {
$db_engine = 'mysql';
return $db_engine;
}
elseif ($db_type == 'pgsql') {
$db_engine = 'pgsql';
return $db_engine;
}
else {
return FALSE;
}
}