Skip to main content
Version: Next

abstractAbstractSchemaGenerator <D>

Hierarchy

Implements

Index

Constructors

constructor

Methods

clearDatabase

  • Parameters

    Returns Promise<void>

createDatabase

  • createDatabase(name?: string): Promise<void>
  • creates new database and connects to it


    Parameters

    • optionalname: string

    Returns Promise<void>

createSchema

  • Parameters

    Returns Promise<void>

dropDatabase

  • dropDatabase(name?: string): Promise<void>
  • Parameters

    • optionalname: string

    Returns Promise<void>

dropSchema

  • Parameters

    Returns Promise<void>

ensureDatabase

  • Returns true if the database was created.


    Parameters

    Returns Promise<boolean>

ensureIndexes

  • ensureIndexes(): Promise<void>
  • Returns Promise<void>

execute

  • execute(query: string): Promise<void>
  • Parameters

    • query: string

    Returns Promise<void>

getCreateSchemaSQL

  • Parameters

    Returns Promise<string>

getDropSchemaSQL

  • Parameters

    Returns Promise<string>

getUpdateSchemaMigrationSQL

  • getUpdateSchemaMigrationSQL(options?: UpdateSchemaOptions<unknown>): Promise<{ down: string; up: string }>
  • Parameters

    Returns Promise<{ down: string; up: string }>

getUpdateSchemaSQL

  • Parameters

    Returns Promise<string>

refreshDatabase

  • Parameters

    Returns Promise<void>

updateSchema

  • Parameters

    Returns Promise<void>