Interface JobRunrConfiguration.DatabaseConfiguration
- Enclosing interface:
JobRunrConfiguration
@ConfigurationProperties("database")
public static interface JobRunrConfiguration.DatabaseConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the database to use (only used by MongoDBStorageProvider).An optional namedDataSourceto use.Allows to set the table prefix used by JobRunrgetType()If multiple types of databases are available in the Spring Context (e.g.booleanAllows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase.
-
Method Details
-
isSkipCreate
@Bindable(defaultValue="false") boolean isSkipCreate()Allows to skip the creation of the tables - this means you should add them manually or by database migration tools like FlywayDB or Liquibase. -
getDatabaseName
The name of the database to use (only used by MongoDBStorageProvider). By default, it is 'jobrunr'. -
getTablePrefix
Allows to set the table prefix used by JobRunr -
getDatasource
An optional namedDataSourceto use. Defaults to the 'default' datasource. -
getType
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', 'mem', 'redis-lettuce', 'redis-jedis' and 'elasticsearch'.
-