Core systems for the database layer.
Classes required for basic functioning of the database system should be placed in this file. All utility functions should also be placed in this file only, as they cannot auto-load the way classes can.
File
core/includes/database.inc
Functions
Name | Description |
---|---|
db_add_field Deprecated | Adds a new field to a table. |
db_add_index Deprecated | Adds an index. |
db_add_primary_key Deprecated | Adds a primary key to a database table. |
db_add_unique_key Deprecated | Adds a unique key. |
db_and Deprecated | Returns a new DatabaseCondition, set to "AND" all conditions together. |
db_change_field Deprecated | Changes a field definition. |
db_close Deprecated | Closes the active database connection. |
db_condition Deprecated | Returns a new DatabaseCondition, set to the specified conjunction. |
db_create_table Deprecated | Creates a new table from a Drupal table definition. |
db_delete Deprecated | Returns a new DeleteQuery object for the active database. |
db_driver Deprecated | Retrieves the name of the currently active database driver. |
db_drop_field Deprecated | Drops a field. |
db_drop_index Deprecated | Drops an index. |
db_drop_primary_key Deprecated | Drops the primary key of a database table. |
db_drop_table Deprecated | Drops a table. |
db_drop_unique_key Deprecated | Drops a unique key. |
db_escape_field Deprecated | Restricts a dynamic column or constraint name to safe characters. |
db_escape_table Deprecated | Restricts a dynamic table name to safe characters. |
db_field_exists Deprecated | Checks if a column exists in the given table. |
db_field_names Deprecated | Returns an array of field names from an array of key/index column specifiers. |
db_field_set_default Deprecated | Sets the default value for a field. |
db_field_set_no_default Deprecated | Sets a field to have no default value. |
db_find_tables Deprecated | Finds all tables that are like the specified base table name. |
db_ignore_replica | Sets a session variable specifying the lag time for ignoring a replica server (A replica server is traditionally referred to as a "slave" in database server documentation). |
db_index_exists Deprecated | Checks if an index exists in the given table. |
db_insert Deprecated | Returns a new InsertQuery object for the active database. |
db_like Deprecated | Escapes characters that work as wildcard characters in a LIKE pattern. |
db_merge Deprecated | Returns a new MergeQuery object for the active database. |
db_next_id Deprecated | Retrieves a unique id. |
db_or Deprecated | Returns a new DatabaseCondition, set to "OR" all conditions together. |
db_query Deprecated | Executes an arbitrary query string against the active database. |
db_query_range Deprecated | Executes a query against the active database, restricted to a range. |
db_query_temporary Deprecated | Executes a SELECT query string and saves the result set to a temporary table. |
db_rename_table Deprecated | Renames a table. |
db_select Deprecated | Returns a new SelectQuery object for the active database. |
db_set_active Deprecated | Sets a new active database. |
db_table_exists Deprecated | Checks if a table exists. |
db_transaction Deprecated | Returns a new transaction object for the active database. |
db_truncate Deprecated | Returns a new TruncateQuery object for the active database. |
db_update Deprecated | Returns a new UpdateQuery object for the active database. |
db_xor Deprecated | Returns a new DatabaseCondition, set to "XOR" all conditions together. |
Please login to continue.