db_type_map

Definition

db_type_map()
drupal/includes/database/database.inc, line 1991

Description

This maps a generic data type in combination with its data size to the engine-specific data type.

Related topics

Namesort iconDescription
Schema APIA Drupal schema definition is an array structure representing one or more tables and their related keys and indexes. A schema is defined by hook_schema(), which usually lives in a modulename.install file.

Code

function db_type_map() {
  return Database::getActiveConnection()->schema()->getFieldTypeMap();
}