mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 03:45:59 +00:00
get version result and login from oracle
This commit is contained in:
25
plugins/dbgate-plugin-oracle/src/backend/sql/indexes.js
Normal file
25
plugins/dbgate-plugin-oracle/src/backend/sql/indexes.js
Normal file
@@ -0,0 +1,25 @@
|
||||
module.exports = `
|
||||
select
|
||||
t.relname as "table_name",
|
||||
c.nspname as "schema_name",
|
||||
i.relname as "index_name",
|
||||
ix.indisprimary as "is_primary",
|
||||
ix.indisunique as "is_unique",
|
||||
ix.indkey as "indkey",
|
||||
t.oid as "oid"
|
||||
from
|
||||
pg_class t,
|
||||
pg_class i,
|
||||
pg_index ix,
|
||||
pg_namespace c
|
||||
where
|
||||
t.oid = ix.indrelid
|
||||
and i.oid = ix.indexrelid
|
||||
and t.relkind = 'r'
|
||||
and ix.indisprimary = false
|
||||
and t.relnamespace = c.oid
|
||||
and c.nspname != 'pg_catalog'
|
||||
and ('tables:' || c.nspname || '.' || t.relname) =OBJECT_ID_CONDITION
|
||||
order by
|
||||
t.relname
|
||||
`;
|
||||
Reference in New Issue
Block a user