Skip to main content
Version: Next

ISchemaGenerator

Implemented by

Index

Methods

clearDatabase

createDatabase

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

    • optionalname: string

    Returns Promise<void>

createSchema

dropDatabase

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

    • optionalname: string

    Returns Promise<void>

dropSchema

ensureDatabase

ensureIndexes

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

execute

  • execute(sql: string, options?: { wrap?: boolean }): Promise<void>
  • Parameters

    • sql: string
    • optionaloptions: { wrap?: boolean }
      • optionalwrap: boolean

    Returns Promise<void>

getCreateSchemaSQL

getDropSchemaSQL

getUpdateSchemaMigrationSQL

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

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

getUpdateSchemaSQL

refreshDatabase

updateSchema