database.inc

Version

1.92.2.1 (checked in on 2008/02/08 at 22:44:59 by goba)

Description

Wrapper for database interface code.

Constants

Namesort iconDescription
DB_ERRORA hash value to check when outputting database errors, md5'DB_ERROR'). See alsodrupal_error_handler()
DB_QUERY_REGEXPIndicates the place holders that should be replaced in _db_query_callback().

Functions

Namesort iconDescription
db_create_tableCreate a new table from a Drupal table definition.
db_escape_tableRestrict a dynamic table, column or constraint name to safe characters.
db_field_namesReturn an array of field names from an array of key/index column specifiers.
db_is_activeReturns a boolean depending on the availability of the database.
db_placeholdersGenerate placeholders for an array of query arguments of a single type.
db_prefix_tablesAppend a database prefix to all tables in a query.
db_rewrite_sqlRewrites node, taxonomy and comment queries. Use it for listing queries. Do not use FROM table1, table2 syntax, use JOIN instead.
db_set_activeActivate a database for future queries.
db_type_placeholderGiven a Schema API field type, return the correct %-placeholder.
update_sqlPerform an SQL query and return success or failure.
_db_error_pageHelper function to show fatal database errors.
_db_query_callbackHelper function for db_query().
_db_rewrite_sqlHelper function for db_rewrite_sql.
 
 

Drupal is a registered trademark of Dries Buytaert.