mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-09-25 03:31:07 +00:00
* Use autocommit false with findIterate for Postgres * Use autocommit false with findIterate for Postgres * Use autocommit false with FindDto queries for Postgres * Use autocommit false with SqlQuery findIterate queries for Postgres * Ensure that TransactionFactory.createReadOnlyTransaction() returns an ImplicitReadOnlyTransaction This change changes TransactionFactoryTenant.createReadOnlyTransaction() to return a ImplicitReadOnlyTransaction, as that is now used to support Postgres use of cursors with findIterate style queries.
19 lines
392 B
Java
19 lines
392 B
Java
package main;
|
|
|
|
import io.ebean.test.containers.PostgresContainer;
|
|
|
|
public class StartPostgres {
|
|
|
|
public static void main(String[] args) {
|
|
PostgresContainer.builder("17")
|
|
.dbName("unit")
|
|
//.port(6432)
|
|
//.user("unit")
|
|
//.password("test")
|
|
//.containerName("ut_postgres")
|
|
.extensions("hstore,pgcrypto")
|
|
.build()
|
|
.startWithDropCreate();
|
|
}
|
|
}
|