mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Schema support for PostgreSQL
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1521 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -452,12 +452,26 @@ WHERE tc.constraint_type = 'FOREIGN KEY' AND tc.table_name = " . $connection->qu
|
||||
return $connection->query("EXPLAIN $query");
|
||||
}
|
||||
|
||||
function schemas() {
|
||||
return get_vals("SELECT nspname FROM pg_namespace");
|
||||
}
|
||||
|
||||
function get_schema() {
|
||||
global $connection;
|
||||
return $connection->result("SELECT current_schema()");
|
||||
}
|
||||
|
||||
function set_schema($schema) {
|
||||
global $connection;
|
||||
return $connection->query("SET search_path TO " . idf_escape($schema));
|
||||
}
|
||||
|
||||
function use_sql($database) {
|
||||
return "\connect " . idf_escape($database);
|
||||
}
|
||||
|
||||
function support($feature) {
|
||||
return ereg('^(comment|view|trigger|drop_col)$', $feature); //! routine|
|
||||
return ereg('^(comment|view|scheme|trigger|drop_col)$', $feature); //! routine|sequence|
|
||||
}
|
||||
|
||||
$driver = "pgsql";
|
||||
|
Reference in New Issue
Block a user