db_find_tables

  1. drupal
    1. drupal7
Versionen
drupal7 db_find_tables($table_expression)

Find all tables that are like the specified base table name.

Übergabeparameter

$table_expression An SQL expression, for example "simpletest%" (without the quotes). BEWARE: this is not prefixed, the caller should take care of that.

Rückgabewert

Array, both the keys and the values are the matching tables.

Verwandte Themen

▾ 2 functions call db_find_tables()

ModuleTestCase::assertTableCount in modules/system/system.test
Assert there are tables that begin with the specified base table name.
simpletest_clean_database in modules/simpletest/simpletest.module
Removed prefixed tables from the database that are left over from crashed tests.

Code

includes/database/database.inc, line 2132

<?php
function db_find_tables($table_expression) {
  return Database::getConnection()->schema()->findTables($table_expression);
}
?>

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