mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding import download source
This commit is contained in:
parent
ddd9ea69df
commit
48e07370e4
70 changed files with 925 additions and 1261 deletions
|
@ -1,5 +1,11 @@
|
|||
import { DataSource } from "typeorm";
|
||||
import { Game, GameShopCache, Repack, UserPreferences } from "@main/entity";
|
||||
import {
|
||||
DownloadSource,
|
||||
Game,
|
||||
GameShopCache,
|
||||
Repack,
|
||||
UserPreferences,
|
||||
} from "@main/entity";
|
||||
import type { BetterSqlite3ConnectionOptions } from "typeorm/driver/better-sqlite3/BetterSqlite3ConnectionOptions";
|
||||
|
||||
import { databasePath } from "./constants";
|
||||
|
@ -10,7 +16,7 @@ export const createDataSource = (
|
|||
) =>
|
||||
new DataSource({
|
||||
type: "better-sqlite3",
|
||||
entities: [Game, Repack, UserPreferences, GameShopCache],
|
||||
entities: [Game, Repack, UserPreferences, GameShopCache, DownloadSource],
|
||||
synchronize: true,
|
||||
database: databasePath,
|
||||
...options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue