Class JobRunrConfiguration.DatabaseConfiguration
- java.lang.Object
-
- org.jobrunr.quarkus.autoconfigure.JobRunrConfiguration.DatabaseConfiguration
-
- Enclosing class:
- JobRunrConfiguration
public static class JobRunrConfiguration.DatabaseConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Optional<java.lang.String>databaseNameAllows to set the database name to use (only used by MongoDBStorageProvider).java.util.Optional<java.lang.String>datasourceAn optional namedDataSourceto use.booleanskipCreateAllows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.java.util.Optional<java.lang.String>tablePrefixAllows to set the table prefix used by JobRunrjava.util.Optional<java.lang.String>typeIf multiple types of databases are available in the Spring Context (e.g.
-
Constructor Summary
Constructors Constructor Description DatabaseConfiguration()
-
-
-
Field Detail
-
skipCreate
@ConfigItem(defaultValue="false") public boolean skipCreate
Allows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.
-
databaseName
@ConfigItem public java.util.Optional<java.lang.String> databaseName
Allows to set the database name to use (only used by MongoDBStorageProvider). By default, it is 'jobrunr'.
-
tablePrefix
@ConfigItem public java.util.Optional<java.lang.String> tablePrefix
Allows to set the table prefix used by JobRunr
-
datasource
@ConfigItem public java.util.Optional<java.lang.String> datasource
An optional namedDataSourceto use. Defaults to the 'default' datasource.
-
type
public java.util.Optional<java.lang.String> type
If multiple types of databases are available in the Spring Context (e.g. a DataSource and an Elastic RestHighLevelClient), this setting allows to specify the type of database for JobRunr to use. Valid values are 'sql', 'mongodb' and 'elasticsearch'.
-
-