database.inc

Version 1.62.2.6 (checked in on 2008/01/07 at 00:55:44 by drumm)

Wrapper for database interface code.

Constants

NameDescription
DB_QUERY_REGEXPIndicates the place holders that should be replaced in _db_query_callback().

Functions

NameDescription
db_escape_tableRestrict a dynamic tablename to safe characters.
db_prefix_tablesAppend a database prefix to all tables in a query.
db_queryRuns a basic query in the active database.
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_query_callbackHelper function for db_query().
_db_rewrite_sqlHelper function for db_rewrite_sql.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.