Order db meta information alphabetically
This commit is contained in:
parent
ad57c69574
commit
7c25981fcb
@ -135,6 +135,7 @@ class firebird extends DB_PDO {
|
|||||||
SELECT "RDB\$RELATION_NAME" FROM "RDB\$RELATIONS"
|
SELECT "RDB\$RELATION_NAME" FROM "RDB\$RELATIONS"
|
||||||
WHERE "RDB\$RELATION_NAME" NOT LIKE 'RDB$%'
|
WHERE "RDB\$RELATION_NAME" NOT LIKE 'RDB$%'
|
||||||
AND "RDB\$RELATION_NAME" NOT LIKE 'MON$%'
|
AND "RDB\$RELATION_NAME" NOT LIKE 'MON$%'
|
||||||
|
ORDER BY "RDB\$RELATION_NAME" ASC
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$this->statement = $this->query($sql);
|
$this->statement = $this->query($sql);
|
||||||
|
@ -61,7 +61,7 @@ class pgSQL extends DB_PDO {
|
|||||||
$sql = <<<SQL
|
$sql = <<<SQL
|
||||||
SELECT "datname" FROM "pg_database"
|
SELECT "datname" FROM "pg_database"
|
||||||
WHERE "datname" NOT IN ('template0','template1')
|
WHERE "datname" NOT IN ('template0','template1')
|
||||||
ORDER BY 1
|
ORDER BY "datname" ASC
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$res = $this->query($sql);
|
$res = $this->query($sql);
|
||||||
@ -82,6 +82,7 @@ SQL;
|
|||||||
SELECT "tablename" FROM "pg_tables"
|
SELECT "tablename" FROM "pg_tables"
|
||||||
WHERE "tablename" NOT LIKE 'pg_%'
|
WHERE "tablename" NOT LIKE 'pg_%'
|
||||||
AND "tablename" NOT LIKE 'sql_%'
|
AND "tablename" NOT LIKE 'sql_%'
|
||||||
|
ORDER BY "tablename" ASC
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$res = $this->query($sql);
|
$res = $this->query($sql);
|
||||||
@ -155,6 +156,7 @@ SQL;
|
|||||||
WHERE "schemaname" NOT IN
|
WHERE "schemaname" NOT IN
|
||||||
('pg_catalog', 'information_schema')
|
('pg_catalog', 'information_schema')
|
||||||
AND "viewname" !~ '^pg_'
|
AND "viewname" !~ '^pg_'
|
||||||
|
ORDER BY "viewname" ASC
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$res = $this->query($sql);
|
$res = $this->query($sql);
|
||||||
@ -175,7 +177,8 @@ SQL;
|
|||||||
$sql = <<<SQL
|
$sql = <<<SQL
|
||||||
SELECT "c"."relname"
|
SELECT "c"."relname"
|
||||||
FROM "pg_class" "c"
|
FROM "pg_class" "c"
|
||||||
WHERE "c"."relkind" = 'S';
|
WHERE "c"."relkind" = 'S'
|
||||||
|
ORDER BY "relname" ASC
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$res = $this->query($sql);
|
$res = $this->query($sql);
|
||||||
|
@ -64,9 +64,10 @@ class SQLite extends DB_PDO {
|
|||||||
{
|
{
|
||||||
$tables = array();
|
$tables = array();
|
||||||
$sql = <<<SQL
|
$sql = <<<SQL
|
||||||
SELECT "name", "sql"
|
SELECT "name"
|
||||||
FROM "sqlite_master"
|
FROM "sqlite_master"
|
||||||
WHERE "type"='table'
|
WHERE "type"='table'
|
||||||
|
ORDER BY "name" DESC
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$res = $this->query($sql);
|
$res = $this->query($sql);
|
||||||
|
Loading…
Reference in New Issue
Block a user