This commit is contained in:
Jörg Prante 2022-06-01 19:34:58 +02:00
parent aec2061f68
commit 8baa0b608b

View file

@ -26,17 +26,16 @@ public class DatabaseImpl implements Database {
private final Options options; private final Options options;
public DatabaseImpl(Connection connection, Options options) {
this.connection = connection;
this.options = options;
}
public DatabaseImpl(Flavor flavor) { public DatabaseImpl(Flavor flavor) {
this(new OptionsDefault(flavor)); this(new OptionsDefault(flavor));
} }
public DatabaseImpl(Options options) { public DatabaseImpl(Options options) {
this.connection = null; this(null, options);
}
public DatabaseImpl(Connection connection, Options options) {
this.connection = connection;
this.options = options; this.options = options;
} }