@@ -3,6 +3,7 @@ import * as Parser from './Parser'
33import PostgresMetaColumns from './PostgresMetaColumns'
44import PostgresMetaConfig from './PostgresMetaConfig'
55import PostgresMetaExtensions from './PostgresMetaExtensions'
6+ import PostgresMetaForeignTables from './PostgresMetaForeignTables'
67import PostgresMetaFunctions from './PostgresMetaFunctions'
78import PostgresMetaPolicies from './PostgresMetaPolicies'
89import PostgresMetaPublications from './PostgresMetaPublications'
@@ -15,12 +16,14 @@ import PostgresMetaVersion from './PostgresMetaVersion'
1516import PostgresMetaViews from './PostgresMetaViews'
1617import { init } from './db'
1718import { PostgresMetaResult } from './types'
19+
1820export default class PostgresMeta {
1921 query : ( sql : string ) => Promise < PostgresMetaResult < any > >
2022 end : ( ) => Promise < void >
2123 columns : PostgresMetaColumns
2224 config : PostgresMetaConfig
2325 extensions : PostgresMetaExtensions
26+ foreignTables : PostgresMetaForeignTables
2427 functions : PostgresMetaFunctions
2528 policies : PostgresMetaPolicies
2629 publications : PostgresMetaPublications
@@ -43,6 +46,7 @@ export default class PostgresMeta {
4346 this . columns = new PostgresMetaColumns ( this . query )
4447 this . config = new PostgresMetaConfig ( this . query )
4548 this . extensions = new PostgresMetaExtensions ( this . query )
49+ this . foreignTables = new PostgresMetaForeignTables ( this . query )
4650 this . functions = new PostgresMetaFunctions ( this . query )
4751 this . policies = new PostgresMetaPolicies ( this . query )
4852 this . publications = new PostgresMetaPublications ( this . query )
0 commit comments