Skip to content

Home > extract-pg-schema > extractSchema

extractSchema() function

Warning: This API is now obsolete.

  • use extractSchemas instead

Signature:

typescript
extractSchema: (schemaName: string, connectionConfig: string | ConnectionConfig, resolveViews: boolean, tables?: string[]) => Promise<{
    tables: any[];
    views: any[];
    types: any[];
}>

Parameters

Parameter

Type

Description

schemaName

string

connectionConfig

string | ConnectionConfig

resolveViews

boolean

tables

string[]

(Optional)

**Returns:**

Promise<{ tables: any[]; views: any[]; types: any[]; }>