public function PgSqlHandler::listTables in DB Maintenance 2.0.x
Same name and namespace in other branches
- 8 src/Module/Db/DbServer/PgSql/PgSqlHandler.php \Drupal\db_maintenance\Module\Db\DbServer\PgSql\PgSqlHandler::listTables()
- 7.2 src/Module/Db/DbServer/PgSql/PgSqlHandler.php \Drupal\db_maintenance\Module\Db\DbServer\PgSql\PgSqlHandler::listTables()
Returns list of tables in the active database.
Overrides DbServerHandlerInterface::listTables
File
- src/
Module/ Db/ DbServer/ PgSql/ PgSqlHandler.php, line 20 - PgSqlHandler class.
Class
- PgSqlHandler
- PgSqlHandler class.
Namespace
Drupal\db_maintenance\Module\Db\DbServer\PgSqlCode
public function listTables() {
$result = \Drupal::database()
->query("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name", array(), array(
'fetch' => \PDO::FETCH_ASSOC,
));
return $result;
}