delay

  1. drupal
    1. drupal7
Versionen
drupal7 public InsertQuery::delay($delay = TRUE)

Flag this query as being delay-safe or not.

If this method is never called, it is assumed that the query must be executed immediately. If delay is set to TRUE, then the query will be flagged to run "delayed" or "low priority" on databases that support such capabilities. In that case, the database will return immediately and the query will be run at some point in the future. That makes it useful for logging-style queries.

If the database does not support delayed INSERT queries, this method has no effect.

Note that for a delayed query there is no serial ID returned, as it won't be created until later when the query runs. It should therefore not be used if the value of the ID is known.

Übergabeparameter

$delay If TRUE, this query is delay-safe and will run delayed on supported databases.

Rückgabewert

The called object.

Verwandte Themen

Code

includes/database/query.inc, line 408

<?php
public function delay($delay = TRUE) {
  $this->delay = $delay;
  return $this;
}
?>

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