mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
PostgreSQL: Support exporting views
This commit is contained in:
@@ -711,6 +711,10 @@ AND typelem = 0"
|
||||
$sequences = array();
|
||||
|
||||
$status = table_status($table);
|
||||
if (is_view($status)) {
|
||||
$view = view($table);
|
||||
return rtrim("CREATE VIEW " . idf_escape($table) . " AS $view[select]", ";");
|
||||
}
|
||||
$fields = fields($table);
|
||||
$indexes = indexes($table);
|
||||
ksort($indexes);
|
||||
|
Reference in New Issue
Block a user