Version: 4.3

Interface: ISchemaGenerator

Hierarchy

  • ISchemaGenerator

Methods

createDatabase

createDatabase(name: string): Promise<void>

Defined in packages/core/src/typings.ts:323

Parameters:

NameType
namestring

Returns: Promise<void>


createSchema

createSchema(wrap?: boolean): Promise<void>

Defined in packages/core/src/typings.ts:316

Parameters:

NameType
wrap?boolean

Returns: Promise<void>


dropDatabase

dropDatabase(name: string): Promise<void>

Defined in packages/core/src/typings.ts:324

Parameters:

NameType
namestring

Returns: Promise<void>


dropSchema

dropSchema(wrap?: boolean, dropMigrationsTable?: boolean, dropDb?: boolean): Promise<void>

Defined in packages/core/src/typings.ts:319

Parameters:

NameType
wrap?boolean
dropMigrationsTable?boolean
dropDb?boolean

Returns: Promise<void>


ensureDatabase

ensureDatabase(): Promise<void>

Defined in packages/core/src/typings.ts:317

Returns: Promise<void>


execute

execute(sql: string): Promise<void>

Defined in packages/core/src/typings.ts:325

Parameters:

NameType
sqlstring

Returns: Promise<void>


generate

generate(): Promise<string>

Defined in packages/core/src/typings.ts:315

Returns: Promise<string>


getCreateSchemaSQL

getCreateSchemaSQL(wrap?: boolean): Promise<string>

Defined in packages/core/src/typings.ts:318

Parameters:

NameType
wrap?boolean

Returns: Promise<string>


getDropSchemaSQL

getDropSchemaSQL(wrap?: boolean, dropMigrationsTable?: boolean): Promise<string>

Defined in packages/core/src/typings.ts:320

Parameters:

NameType
wrap?boolean
dropMigrationsTable?boolean

Returns: Promise<string>


getUpdateSchemaSQL

getUpdateSchemaSQL(wrap?: boolean, safe?: boolean, dropDb?: boolean, dropTables?: boolean): Promise<string>

Defined in packages/core/src/typings.ts:322

Parameters:

NameType
wrap?boolean
safe?boolean
dropDb?boolean
dropTables?boolean

Returns: Promise<string>


updateSchema

updateSchema(wrap?: boolean, safe?: boolean, dropDb?: boolean, dropTables?: boolean): Promise<void>

Defined in packages/core/src/typings.ts:321

Parameters:

NameType
wrap?boolean
safe?boolean
dropDb?boolean
dropTables?boolean

Returns: Promise<void>

Last updated on by Martin Adámek