You are here

abstract public function DatabaseSchema::getFieldTypeMap in Drupal 7

Returns a mapping of Drupal schema field names to DB-native field types.

Because different field types do not map 1:1 between databases, Drupal has its own normalized field type names. This function returns a driver-specific mapping table from Drupal names to the native names for each database.

Return value

array An array of Schema API field types to driver-specific field types.

3 methods override DatabaseSchema::getFieldTypeMap()
DatabaseSchema_mysql::getFieldTypeMap in includes/database/mysql/schema.inc
Returns a mapping of Drupal schema field names to DB-native field types.
DatabaseSchema_pgsql::getFieldTypeMap in includes/database/pgsql/schema.inc
This maps a generic data type in combination with its data size to the engine-specific data type.
DatabaseSchema_sqlite::getFieldTypeMap in includes/database/sqlite/schema.inc
This maps a generic data type in combination with its data size to the engine-specific data type.

File

includes/database/schema.inc, line 450

Class

DatabaseSchema
Base class for database schema definitions.

Code

public abstract function getFieldTypeMap();