database.inc

  1. drupal
    1. drupal6

Version 1.92.2.11 (checked in on 2010/11/03 at 14:02:33 by goba)

Wrapper for database interface code.

Funktionen & Methoden

NameBeschreibung
db_create_tableCreate a new table from a Drupal table definition.
db_distinct_fieldAdds the DISTINCT flag to the supplied query and returns the altered query.
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.

Konstanten

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen