-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24e2ac2
commit 22c320c
Showing
16 changed files
with
177 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/codes/thischwa/dyndrest/model/config/database/DatabaseBackupConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package codes.thischwa.dyndrest.model.config.database; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
/** | ||
* Represents a backup configuration. | ||
* | ||
* @param enabled Enabled backup. | ||
* @param path The path where the backup files will be stored, e.g {@code ./backup}. This should be | ||
* a valid file system path. | ||
* @param cron The cron expression that defines the backup schedule. | ||
*/ | ||
@ConfigurationProperties(prefix = "dyndrest.database.backup") | ||
public record DatabaseBackupConfig(boolean enabled, String path, String cron) {} |
14 changes: 14 additions & 0 deletions
14
src/main/java/codes/thischwa/dyndrest/model/config/database/DatabaseRestoreConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package codes.thischwa.dyndrest.model.config.database; | ||
|
||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
/** | ||
* Represents a restore configuration. | ||
* | ||
* @param enabled Enables the restore. | ||
* @param path The path where the backup files for restore are stored, e.g. {@code ./restore}. This | ||
* should be a valid file system path. | ||
*/ | ||
@ConfigurationProperties(prefix = "dyndrest.database.restore") | ||
public record DatabaseRestoreConfig(boolean enabled, String path) {} |
10 changes: 10 additions & 0 deletions
10
src/main/java/codes/thischwa/dyndrest/model/config/database/DatabaseServiceConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package codes.thischwa.dyndrest.model.config.database; | ||
|
||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
/** Represents a configuration class for a database connection. */ | ||
@ConfigurationProperties(prefix = "dyndrest.database") | ||
public record DatabaseServiceConfig( | ||
String dumpFile) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.