db_find_tables($table_expression)
Finds all tables that are like the specified base table name.
string $table_expression: An SQL expression, for example "simpletest%" (without the quotes).
array Array, both the keys and the values are the matching tables.
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call findTables() on it. For example, $injected_database->schema()->findTables($table_expression);
\Drupal\Core\Database\Schema::findTables()
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/core!includes!database.inc/function/db_find_tables/8.1.x