Version: 4.3

Class: DatabaseSchema

Hierarchy

  • DatabaseSchema

Properties

tables

Private Readonly tables: DatabaseTable[] = []

Defined in packages/knex/src/schema/DatabaseSchema.ts:9

Methods

addTable

addTable(name: string, schema: string | undefined): DatabaseTable

Defined in packages/knex/src/schema/DatabaseSchema.ts:11

Parameters:

NameType
namestring
schemastring | undefined

Returns: DatabaseTable


getTable

getTable(name: string): DatabaseTable | undefined

Defined in packages/knex/src/schema/DatabaseSchema.ts:22

Parameters:

NameType
namestring

Returns: DatabaseTable | undefined


getTables

getTables(): DatabaseTable[]

Defined in packages/knex/src/schema/DatabaseSchema.ts:18

Returns: DatabaseTable[]


create

Staticcreate(connection: AbstractSqlConnection, helper: SchemaHelper, config: Configuration): Promise<DatabaseSchema>

Defined in packages/knex/src/schema/DatabaseSchema.ts:26

Parameters:

NameType
connectionAbstractSqlConnection
helperSchemaHelper
configConfiguration

Returns: Promise<DatabaseSchema>

Last updated on by Martin Adámek