• Setup a database by creating tables if not existing, set them up with initial data and migrating changes.

    Parameters

    • databasePath: string

      Path to database.

    • tables: Readonly<SqliteTable<string>>[]

      Tables to set up.

    • views: Readonly<SqliteView<string>>[]

      Views to set up.

    • indices: Readonly<SqliteIndex>[]

      Indices to set up.

    • currentVersion: Readonly<DbVersionInfo>

      The current version of the database.

    • options: undefined | Readonly<SetupDatabaseOptions>

      Other (optional) setup options.

    • logger: Readonly<Logger>

      Logger (for global logs).

    Returns Promise<void>

Generated using TypeDoc