schema.inc

Schema API handling functions.

File

drupal/core/includes/schema.inc
View source

Functions

Namesort descending Description
drupal_get_complete_schema Gets the whole database schema.
drupal_get_installed_schema_version Returns the currently installed schema version for a module.
drupal_get_schema Gets the schema definition of a table, or the whole database schema.
drupal_get_schema_unprocessed Returns the unprocessed and unaltered version of a module's schema.
drupal_get_schema_versions Returns an array of available schema versions for a module.
drupal_install_schema Creates all tables defined in a module's hook_schema().
drupal_schema_fields_sql Retrieves a list of fields from a table schema.
drupal_set_installed_schema_version Updates the installed version information for a module.
drupal_uninstall_schema Removes all tables defined in a module's hook_schema().
drupal_write_record Saves (inserts or updates) a record to the database based upon the schema.
_drupal_schema_initialize Fills in required default values for table definitions from hook_schema().

Constants

Namesort descending Description
SCHEMA_INSTALLED Indicates that a module has been installed.
SCHEMA_UNINSTALLED Indicates that a module has not been installed yet.