@@ -3,6 +3,7 @@ import * as Parser from './Parser'
3
3
import PostgresMetaColumns from './PostgresMetaColumns'
4
4
import PostgresMetaConfig from './PostgresMetaConfig'
5
5
import PostgresMetaExtensions from './PostgresMetaExtensions'
6
+ import PostgresMetaForeignTables from './PostgresMetaForeignTables'
6
7
import PostgresMetaFunctions from './PostgresMetaFunctions'
7
8
import PostgresMetaPolicies from './PostgresMetaPolicies'
8
9
import PostgresMetaPublications from './PostgresMetaPublications'
@@ -15,12 +16,14 @@ import PostgresMetaVersion from './PostgresMetaVersion'
15
16
import PostgresMetaViews from './PostgresMetaViews'
16
17
import { init } from './db'
17
18
import { PostgresMetaResult } from './types'
19
+
18
20
export default class PostgresMeta {
19
21
query : ( sql : string ) => Promise < PostgresMetaResult < any > >
20
22
end : ( ) => Promise < void >
21
23
columns : PostgresMetaColumns
22
24
config : PostgresMetaConfig
23
25
extensions : PostgresMetaExtensions
26
+ foreignTables : PostgresMetaForeignTables
24
27
functions : PostgresMetaFunctions
25
28
policies : PostgresMetaPolicies
26
29
publications : PostgresMetaPublications
@@ -43,6 +46,7 @@ export default class PostgresMeta {
43
46
this . columns = new PostgresMetaColumns ( this . query )
44
47
this . config = new PostgresMetaConfig ( this . query )
45
48
this . extensions = new PostgresMetaExtensions ( this . query )
49
+ this . foreignTables = new PostgresMetaForeignTables ( this . query )
46
50
this . functions = new PostgresMetaFunctions ( this . query )
47
51
this . policies = new PostgresMetaPolicies ( this . query )
48
52
this . publications = new PostgresMetaPublications ( this . query )
0 commit comments