All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.playtika.testcontainer.mysql.MySQLProperties Maven / Gradle / Ivy

There is a newer version: 3.1.11
Show newest version
package com.playtika.testcontainer.mysql;

import com.playtika.testcontainer.common.properties.CommonContainerProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;


@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties("embedded.mysql")
public class MySQLProperties extends CommonContainerProperties {
    static final String BEAN_NAME_EMBEDDED_MYSQL = "embeddedMySQL";
    static final String BEAN_NAME_EMBEDDED_MYSQL_PACKAGE_PROPERTIES = "mysqlPackageProperties";

    String encoding = "utf8mb4";
    String collation = "utf8mb4_unicode_ci";

    String user = "test";
    String password = "test";
    String database = "test";
    String schema = "test_db";
    String host = "localhost";
    int port = 3306;
    /**
     * The SQL file path to execute after the container starts to initialize the database.
     */
    String initScriptPath;

    // https://hub.docker.com/_/mysql
    @Override
    public String getDefaultDockerImage() {
        // Please don`t remove this comment.
        // renovate: datasource=docker
        return "mysql:9.1";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy