mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-18 05:21:56 +01:00
Rename Dialect interface
This commit is contained in:
parent
32f15d6555
commit
82f1e1321d
@ -31,7 +31,7 @@
|
|||||||
import de.bluecolored.bluemap.core.logger.Logger;
|
import de.bluecolored.bluemap.core.logger.Logger;
|
||||||
import de.bluecolored.bluemap.core.storage.*;
|
import de.bluecolored.bluemap.core.storage.*;
|
||||||
import de.bluecolored.bluemap.core.storage.sql.dialect.DialectType;
|
import de.bluecolored.bluemap.core.storage.sql.dialect.DialectType;
|
||||||
import de.bluecolored.bluemap.core.storage.sql.dialect.SQLQueryDialect;
|
import de.bluecolored.bluemap.core.storage.sql.dialect.Dialect;
|
||||||
import de.bluecolored.bluemap.core.util.WrappedOutputStream;
|
import de.bluecolored.bluemap.core.util.WrappedOutputStream;
|
||||||
import org.apache.commons.dbcp2.*;
|
import org.apache.commons.dbcp2.*;
|
||||||
import org.apache.commons.pool2.ObjectPool;
|
import org.apache.commons.pool2.ObjectPool;
|
||||||
@ -54,7 +54,7 @@ public abstract class SQLStorage extends Storage {
|
|||||||
|
|
||||||
private final DataSource dataSource;
|
private final DataSource dataSource;
|
||||||
|
|
||||||
protected final SQLQueryDialect dialect;
|
protected final Dialect dialect;
|
||||||
protected final Compression hiresCompression;
|
protected final Compression hiresCompression;
|
||||||
|
|
||||||
private final LoadingCache<String, Integer> mapFKs = Caffeine.newBuilder()
|
private final LoadingCache<String, Integer> mapFKs = Caffeine.newBuilder()
|
||||||
@ -66,7 +66,7 @@ public abstract class SQLStorage extends Storage {
|
|||||||
|
|
||||||
private volatile boolean closed;
|
private volatile boolean closed;
|
||||||
|
|
||||||
public SQLStorage(SQLQueryDialect dialect, SQLStorageSettings config) throws MalformedURLException, SQLDriverException {
|
public SQLStorage(Dialect dialect, SQLStorageSettings config) throws MalformedURLException, SQLDriverException {
|
||||||
this.dialect = dialect;
|
this.dialect = dialect;
|
||||||
this.closed = false;
|
this.closed = false;
|
||||||
try {
|
try {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import org.intellij.lang.annotations.Language;
|
import org.intellij.lang.annotations.Language;
|
||||||
|
|
||||||
public interface SQLQueryDialect {
|
public interface Dialect {
|
||||||
@Language("sql")
|
@Language("sql")
|
||||||
String writeMapTile();
|
String writeMapTile();
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import org.intellij.lang.annotations.Language;
|
import org.intellij.lang.annotations.Language;
|
||||||
|
|
||||||
public class MySQLDialect implements SQLQueryDialect {
|
public class MySQLDialect implements Dialect {
|
||||||
|
|
||||||
public static final MySQLDialect INSTANCE = new MySQLDialect();
|
public static final MySQLDialect INSTANCE = new MySQLDialect();
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import org.intellij.lang.annotations.Language;
|
import org.intellij.lang.annotations.Language;
|
||||||
|
|
||||||
public class PostgresDialect implements SQLQueryDialect {
|
public class PostgresDialect implements Dialect {
|
||||||
|
|
||||||
public static final PostgresDialect INSTANCE = new PostgresDialect();
|
public static final PostgresDialect INSTANCE = new PostgresDialect();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user