//Use SQLLibraryConfiguration instend of LibraryConfiguration//Type list with SQLModule @OverrideprotectedLibraryConfigurationconfigure() {returnnewSQLLibraryConfiguration(this, getConfiguratorsInitializer(), () ->Collections.singletonList(new SQLModule()))//you can register modules before others.builder().setGameManager(newMyGameManager(this, settings, messages)).build(); }
with custom SQL module configuration (Optional but recommended)
@OverrideprotectedLibraryConfigurationconfigure() {returnnewSQLLibraryConfiguration(this, getConfiguratorsInitializer(), () ->Collections.singletonList(new SQLModule(new MySQLModuleConfigurator().configure())))//you can register modules before others.builder().setGameManager(newMyGameManager(this, settings, messages)).build(); }
How to define SQL Module configurator (Optional)?
publicclassMySQLModuleConfiguratorextendsDefaultSQLModuleConfigurator { @OverridepublicSQLModuleConfigurationconfigure() {returnSQLModuleConfiguration.builder().sqlDatabaseAdapter(newCustomSQLDatabaseAdapter()) //if you want to create your own SQL Database adapter.sqlDatabaseMigrator(newCustomDatabaseMigrator()) //if you want to create your own SQL Database migrator.build(); }}