You are here

function optimizedb_db_driver in OptimizeDB 6

Output drivers database.

@global string $db_type Name of the current database driver.

Return value

string Name db driver.

6 calls to optimizedb_db_driver()
optimizedb_admin in ./optimizedb.module
Configuring the module.
optimizedb_admin_optimize_table_submit in ./optimizedb.module
Implements hook_FORM_ID_submit().
optimizedb_list_tables in ./optimizedb.module
List of tables in the database with the size and sorting.
optimizedb_optimize_batch_run in ./optimizedb.module
Batch function.
_optimizedb_list_tables_operation_execute in ./optimizedb.module
Performing operations on tables.

... See full list

File

./optimizedb.module, line 760
Database Optimization.

Code

function optimizedb_db_driver() {
  global $db_type;
  if ($db_type == 'mysqli') {
    $db_type = 'mysql';
  }
  return $db_type;
}