mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
- Migrate from io.ebean:ebean-test-docker -> io.ebean:ebean-test-containers - Migrate (with 5.8) package from io.ebean.docker.commands -> io.ebean.test.containers
25 lines
662 B
Java
25 lines
662 B
Java
package main;
|
|
|
|
import io.ebean.test.containers.SqlServerContainer;
|
|
|
|
public class StartSqlServer {
|
|
|
|
public static void main(String[] args) {
|
|
SqlServerContainer.builder("2019-GA-ubuntu-16.04")
|
|
.dbName("test_ebean")
|
|
.user("test_ebean")
|
|
.build()
|
|
.start();
|
|
|
|
// by default this sqlserver docker collation is case sensitive
|
|
// using MSSQL_COLLATION=Latin1_General_100_BIN2
|
|
//
|
|
// when changing to a CI collation also use
|
|
// ebean.sqlserver.caseSensitiveCollation=false
|
|
// ... such that tests now take that into account
|
|
|
|
//config.setCollation("default");
|
|
//config.setCollation("Latin1_General_100_CI");
|
|
}
|
|
}
|