1.102 (checked in on 2010/03/09 at 11:39:07 by dries)
Base classes for the database layer.
| Name | Description |
|---|---|
| db_add_field | Adds a new field to a table. |
| db_add_index | Adds an index. |
| db_add_primary_key | Adds a primary key to a database table. |
| db_add_unique_key | Adds a unique key. |
| db_change_field | Changes a field definition. |
| db_close | Closes the active database connection. |
| db_column_exists | Checks if a column exists in the given table. |
| db_create_table | Creates a new table from a Drupal table definition. |
| db_delete | Returns a new DeleteQuery object for the active database. |
| db_driver | Retrieves the name of the currently active database driver. |
| db_drop_field | Drops a field. |
| db_drop_index | Drops an index. |
| db_drop_primary_key | Drops the primary key of a database table. |
| db_drop_table | Drops a table. |
| db_drop_unique_key | Drops a unique key. |
| db_escape_table | Restricts a dynamic table, column, or constraint name to safe characters. |
| db_field_names | Returns an array of field names from an array of key/index column specifiers. |
| db_field_set_default | Sets the default value for a field. |
| db_field_set_no_default | Sets a field to have no default value. |
| db_find_tables | Finds all tables that are like the specified base table name. |
| db_ignore_slave | Sets a session variable specifying the lag time for ignoring a slave server. |
| db_index_exists | Checks if an index exists in the given table. |
| db_insert | Returns a new InsertQuery object for the active database. |
| db_is_active | Determines if there is an active connection. |
| db_like | Escapes characters that work as wildcard characters in a LIKE pattern. |
| db_merge | Returns a new MergeQuery object for the active database. |
| db_next_id | Retrieves a unique id. |
| db_query | Executes an arbitrary query string against the active database. |
| db_query_range | Executes a query against the active database, restricted to a range. |
| db_query_temporary | Executes a query string and saves the result set to a temporary table. |
| db_rename_table | Renames a table. |
| db_select | Returns a new SelectQuery object for the active database. |
| db_set_active | Sets a new active database. |
| db_table_exists | Checks if a table exists. |
| db_transaction | Returns a new transaction object for the active database. |
| db_truncate | Returns a new TruncateQuery object for the active database. |
| db_update | Returns a new UpdateQuery object for the active database. |
| _db_check_install_needed | Redirects the user to the installation script. |
| _db_create_keys_sql |