public function PgSqlHandler::listTables in DB Maintenance 7.2
Same name and namespace in other branches
- 8 src/Module/Db/DbServer/PgSql/PgSqlHandler.php \Drupal\db_maintenance\Module\Db\DbServer\PgSql\PgSqlHandler::listTables()
- 2.0.x 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 = db_query("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name", array(), array(
'fetch' => \PDO::FETCH_ASSOC,
));
return $result;
}