You are here

function apdqc_fast_get_db_type in Asynchronous Prefetch Database Query Cache 7

Returns current database type. mysql is the only usable one currently.

6 calls to apdqc_fast_get_db_type()
apdqc.lock.inc in ./apdqc.lock.inc
A database-mediated implementation of a locking mechanism.
APDQCache::__construct in ./apdqc.cache.inc
Constructs a DrupalDatabaseCache object.
apdqc_boot in ./apdqc.module
Implements hook_boot().
apdqc_init in ./apdqc.module
Implements hook_init().
apdqc_requirements in ./apdqc.install
Implements hook_requirements().

... See full list

File

./apdqc.cache.inc, line 187
Extends Drupal's default database cache so async queries happen.

Code

function apdqc_fast_get_db_type() {
  return $GLOBALS['databases']['default']['default']['driver'];
}