au.net.causal.maven.plugins.boxdb.db.MariaDbFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxdb-maven-plugin Show documentation
Show all versions of boxdb-maven-plugin Show documentation
Maven plugin to start databases using Docker and VMs
package au.net.causal.maven.plugins.boxdb.db;
public class MariaDbFactory extends BaseMySqlFactory
{
public MariaDbFactory()
{
super("mariadb");
}
@Override
protected void initializeDefaults(BoxConfiguration boxConfiguration)
{
if (boxConfiguration.getDatabaseVersion() == null)
boxConfiguration.setDatabaseVersion("10.1");
super.initializeDefaults(boxConfiguration);
}
@Override
protected MariaDbDatabase createDockerDatabase(BoxConfiguration boxConfiguration, ProjectConfiguration projectConfiguration, BoxContext context)
throws BoxDatabaseException
{
return new MariaDbDatabase(boxConfiguration, projectConfiguration, context);
}
}