Interface JobRunrConfiguration.DatabaseConfiguration

Enclosing interface:
JobRunrConfiguration

@ConfigurationProperties("database") public static interface JobRunrConfiguration.DatabaseConfiguration
  • 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

      Optional<String> getDatabaseName()
      The name of the database to use (only used by MongoDBStorageProvider). By default, it is 'jobrunr'.
    • getTablePrefix

      Optional<String> getTablePrefix()
      Allows to set the table prefix used by JobRunr
    • getDatasource

      Optional<String> getDatasource()
      An optional named DataSource to use. Defaults to the 'default' datasource.
    • getType

      Optional<String> 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', 'redis-lettuce', 'redis-jedis' and 'elasticsearch'.