- Preparing search index...
- The search index is not available
moonpiebot
Function genericSetupDatabase
- genericSetupDatabase(databasePath: string, tables: Readonly<SqliteTable<string>>[], views: Readonly<SqliteView<string>>[], indices: Readonly<SqliteIndex>[], currentVersion: Readonly<DbVersionInfo>, options: undefined | Readonly<SetupDatabaseOptions>, logger: Readonly<Logger>): Promise<void>
-
Parameters
-
databasePath: string
-
tables: Readonly<SqliteTable<string>>[]
-
views: Readonly<SqliteView<string>>[]
-
indices: Readonly<SqliteIndex>[]
-
-
-
logger: Readonly<Logger>
Returns Promise<void>
Setup a database by creating tables if not existing, set them up with initial data and migrating changes.