MariaDB4j 2.7.1

One need I had was to have my embedded MariaDB instance write to the binary log, so that I can pick up on events downstream.

I am pleased to announce MariaDB4j 2.7.1 ships with this new functionality.

DBConfiguration.java has been updated with a setter for the bin log and everything is handled behind the scenes. You can have the binary log write events with as little code as

  @Bean
  public MariaDB4jSpringService mariaDB4jSpringService() {
    MariaDB4jSpringService mariaDB4jSpringService = new MariaDB4jSpringService();
    DBConfigurationBuilder dbConfigurationBuilder = mariaDB4jSpringService.getConfiguration();
    dbConfigurationBuilder.setBinLogEnabled(true);
    return mariaDB4jSpringService;
  }

in your application.