@d34d/w-orm - v0.6.0
    Preparing search index...

    Class MigrationContext

    Context passed to migrations.

    Types.MigrationList: For more information on migrations

    Index
    • Should be created during a version change transaction.

      Parameters

      • db: IDBDatabase

        The database connection

      • tx: IDBTransaction

        The transaction

      • migrations: MigrationList

        The migrations to run

      Returns MigrationContext

    db: IDBDatabase

    The database connection

    tx: IDBTransaction

    The transaction

    • get tables(): string[]

      List of tables currently in the database.

      Returns string[]

    • Deletes a table from the database.

      Parameters

      • name: string

        The table's name

      Returns void

    • Runs the migrations between the old and new version.

      Parameters

      • oldVersion: number

        The old version

      • newVersion: number | null

        The new version

      Returns Promise<void>