function db_find_tables
db_find_tables($table_expression)
Finds all tables that are like the specified base table name.
Parameters
$table_expression: An SQL expression, for example "simpletest%" (without the quotes). BEWARE: this is not prefixed, the caller should take care of that.
Return value
Array, both the keys and the values are the matching tables.
Related topics
File
- includes/database/database.inc, line 2825
- Core systems for the database layer.
Code
function db_find_tables($table_expression) { return Database::getConnection()->schema()->findTables($table_expression); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_find_tables/7.x