Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
1.92.2.2 (checked in on 2008/07/09 at 21:48:28 by goba)
Wrapper for database interface code.
| Name | Description |
|---|---|
| DB_ERROR | A hash value to check when outputting database errors, md5('DB_ERROR'). See alsodrupal_error_handler() |
| DB_QUERY_REGEXP | Indicates the place holders that should be replaced in _db_query_callback(). |
| Name | Description |
|---|---|
| db_create_table | Create a new table from a Drupal table definition. |
| db_escape_table | Restrict a dynamic table, column or constraint name to safe characters. |
| db_field_names | Return an array of field names from an array of key/index column specifiers. |
| db_is_active | Returns a boolean depending on the availability of the database. |
| db_placeholders | Generate placeholders for an array of query arguments of a single type. |
| db_prefix_tables | Append a database prefix to all tables in a query. |
| db_rewrite_sql | Rewrites node, taxonomy and comment queries. Use it for listing queries. Do not use FROM table1, table2 syntax, use JOIN instead. |
| db_set_active | Activate a database for future queries. |
| db_type_placeholder | Given a Schema API field type, return the correct %-placeholder. |
| update_sql | Perform an SQL query and return success or failure. |
| _db_error_page | Helper function to show fatal database errors. |
| _db_query_callback | Helper function for db_query(). |
| _db_rewrite_sql | Helper function for db_rewrite_sql. |