au.net.causal.maven.plugins.boxdb.db.MySqlFactory 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;
@BoxDbBundled
public class MySqlFactory extends BaseMySqlFactory
{
public MySqlFactory()
{
super("mysql");
}
@Override
protected void initializeDefaults(BoxConfiguration boxConfiguration)
{
if (boxConfiguration.getDatabaseVersion() == null)
boxConfiguration.setDatabaseVersion("5.7");
super.initializeDefaults(boxConfiguration);
}
@Override
protected MySqlDatabase createDockerDatabase(BoxConfiguration boxConfiguration, ProjectConfiguration projectConfiguration, BoxContext context)
throws BoxDatabaseException
{
return new MySqlDatabase(boxConfiguration, projectConfiguration, context);
}
}