Skip to content

Commit ec537fa

Browse files
committed
Adds game DB to files
1 parent 4307a3d commit ec537fa

71 files changed

Lines changed: 16234 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.MD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ Just wipes rows older than 7 days out the profiler table.
2727
## Provided Projects
2828

2929
- `TaskDaemon.Core` - Core application which handles running tasks.
30-
- `TaskDaemon.Database.Profiler` - Database project automatically generated with JOOQ (Use `mvn package -P update-db` to update) for the `paradise_profiler` database.
30+
- `TaskDaemon.Database.GameDb` - Database project automatically generated with JOOQ for the `paradise_gamedb` database.
31+
- `TaskDaemon.Database.Profiler` - Database project automatically generated with JOOQ for the `paradise_profiler` database.
32+
33+
Use `mvn package -P update-db` to update DB projects.
3134

3235
## Building
3336

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd">
3+
<jdbc>
4+
<driver>com.mysql.cj.jdbc.Driver</driver>
5+
<url>jdbc:mysql://172.16.0.200:3306/paradise_gamedb</url>
6+
<user>username_here</user>
7+
<password>password_here</password>
8+
</jdbc>
9+
10+
<generator>
11+
<name>org.jooq.codegen.JavaGenerator</name>
12+
13+
<database>
14+
<name>org.jooq.meta.mysql.MySQLDatabase</name>
15+
<inputSchema>paradise_gamedb</inputSchema>
16+
<includes>.*</includes>
17+
</database>
18+
19+
<target>
20+
<packageName>me.aa07.paradise.taskdaemon.database.gamedb</packageName>
21+
<directory>src</directory>
22+
</target>
23+
</generator>
24+
</configuration>

TaskDaemon.Database.GameDb/pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
4+
<parent>
5+
<groupId>me.aa07.paradise</groupId>
6+
<artifactId>taskdaemon-parent</artifactId>
7+
<version>dev-SNAPSHOT</version>
8+
</parent>
9+
10+
<name>TaskDaemon.Database.GameDb</name>
11+
<artifactId>taskdaemon-database-gamedb</artifactId>
12+
13+
<dependencies>
14+
<dependency>
15+
<groupId>org.jooq</groupId>
16+
<artifactId>jooq</artifactId>
17+
</dependency>
18+
</dependencies>
19+
20+
<profiles>
21+
<profile>
22+
<id>update-db</id>
23+
<build>
24+
<plugins>
25+
<plugin>
26+
<groupId>org.jooq</groupId>
27+
<artifactId>jooq-codegen-maven</artifactId>
28+
<dependencies>
29+
<dependency>
30+
<groupId>mysql</groupId>
31+
<artifactId>mysql-connector-java</artifactId>
32+
<version>8.0.28</version>
33+
</dependency>
34+
</dependencies>
35+
<executions>
36+
<execution>
37+
<id>jooq-codegen</id>
38+
<phase>generate-sources</phase>
39+
<goals>
40+
<goal>generate</goal>
41+
</goals>
42+
<configuration>
43+
<configurationFile>jooq.xml</configurationFile>
44+
</configuration>
45+
</execution>
46+
</executions>
47+
</plugin>
48+
</plugins>
49+
</build>
50+
</profile>
51+
</profiles>
52+
</project>

TaskDaemon.Database.GameDb/src/me/aa07/paradise/taskdaemon/database/gamedb/DefaultCatalog.java

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TaskDaemon.Database.GameDb/src/me/aa07/paradise/taskdaemon/database/gamedb/Indexes.java

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)