You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,7 +10,8 @@ the same content* from the Libretro RetroArch database in a single SQLite databa
10
10
11
11
***Important note:*** The conversion tool here also does some basic deconfliction when there are multiple records for the same ROM MD5 checksum.
12
12
The underlying assumption is that if two ROMs have the same checksum, they're the same, and the metadata should be merged in favor of non-null
13
-
values. The primary use-case is for client applications to be able to query the database by MD5 checksum of a ROM file, so keep in mind that this mindset informed the database schema and how the utility decides which data is duplicated.
13
+
values. The primary use-case is for client applications to be able to query the database by MD5 checksum of a ROM file, so keep in mind that
14
+
this mindset informed the database schema and how the utility decides which data is duplicated.
14
15
15
16
## Usage
16
17
@@ -37,8 +38,10 @@ build/libretrodb.sqlite.tgz
37
38
| ------ | --------- |
38
39
| id | INTEGER PRIMARY KEY |
39
40
| serial_id | TEXT |
40
-
| rom_id | INTEGER |
41
41
| developer_id | INTEGER |
42
+
| publisher_id | INTEGER |
43
+
| rating_id | INTEGER |
44
+
| users | INTEGER |
42
45
| franchise_id | INTEGER |
43
46
| release_year | INTEGER |
44
47
| release_month | INTEGER |
@@ -54,6 +57,7 @@ build/libretrodb.sqlite.tgz
54
57
| Column | Data Type |
55
58
| ------ | --------- |
56
59
| id | INTEGER PRIMARY KEY |
60
+
| serial_id | INTEGER |
57
61
| name | TEXT |
58
62
| md5 | TEXT |
59
63
@@ -64,6 +68,20 @@ build/libretrodb.sqlite.tgz
64
68
| id | INTEGER PRIMARY KEY |
65
69
| name | TEXT |
66
70
71
+
### `publishers`
72
+
73
+
| Column | Data Type |
74
+
| ------ | --------- |
75
+
| id | INTEGER PRIMARY KEY |
76
+
| name | TEXT |
77
+
78
+
### `ratings`
79
+
80
+
| Column | Data Type |
81
+
| ------ | --------- |
82
+
| id | INTEGER PRIMARY KEY |
83
+
| name | TEXT |
84
+
67
85
### `franchises`
68
86
69
87
| Column | Data Type |
@@ -108,7 +126,10 @@ SELECT games.serial_id,
108
126
games.release_year,
109
127
games.release_month,
110
128
games.display_name,
129
+
games.users,
111
130
developers.nameas developer_name,
131
+
publishers.nameas publisher_name,
132
+
ratings.nameas rating_name,
112
133
franchises.nameas franchise_name,
113
134
regions.nameas region_name,
114
135
genres.nameas genre_name,
@@ -119,11 +140,13 @@ SELECT games.serial_id,
119
140
FROM games
120
141
LEFT JOIN developers ONgames.developer_id=developers.id
121
142
LEFT JOIN franchises ONgames.franchise_id=franchises.id
143
+
LEFT JOIN publishers ONgames.publisher_id=publishers.id
144
+
LEFT JOIN ratings ONgames.rating_id=ratings.id
122
145
LEFT JOIN genres ONgames.genre_id=genres.id
123
146
LEFT JOIN platforms ONgames.platform_id=platforms.id
124
147
LEFT JOIN manufacturers ONplatforms.manufacturer_id=manufacturers.id
0 commit comments