Skip to content

Commit

Permalink
feat(introspection): include namespaceName for extensions (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Mar 10, 2019
1 parent b2128aa commit 69ddb85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Expand Up @@ -131,6 +131,7 @@ export interface PgExtension {
id: string;
name: string;
namespaceId: string;
namespaceName: string;
relocatable: boolean;
version: string;
configurationClassIds?: Array<string>;
Expand Down
Expand Up @@ -151,6 +151,7 @@ export type PgExtension = {
id: string,
name: string,
namespaceId: string,
namespaceName: string,
relocatable: boolean,
version: string,
configurationClassIds?: Array<string>,
Expand Down
2 changes: 2 additions & 0 deletions packages/graphile-build-pg/src/plugins/introspectionQuery.js
Expand Up @@ -341,13 +341,15 @@ with
ext.oid as "id",
ext.extname as "name",
ext.extnamespace as "namespaceId",
nsp.nspname as "namespaceName",
ext.extrelocatable as "relocatable",
ext.extversion as "version",
ext.extconfig as "configurationClassIds",
dsc.description as "description"
from
pg_catalog.pg_extension as ext
left join pg_catalog.pg_description as dsc on dsc.objoid = ext.oid and dsc.classoid = 'pg_catalog.pg_extension'::regclass
left join pg_catalog.pg_namespace as nsp on nsp.oid = ext.extnamespace
order by
ext.extname, ext.oid
),
Expand Down

0 comments on commit 69ddb85

Please sign in to comment.