Merge pull request #2618 from baconwaifu/postgres

Add initial postgres database support.
This commit is contained in:
mikeprimm 2019-12-15 00:42:01 -06:00 committed by GitHub
commit 05dc55abc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1056 additions and 0 deletions

View File

@ -57,6 +57,7 @@ import org.dynmap.storage.filetree.FileTreeMapStorage;
import org.dynmap.storage.mysql.MySQLMapStorage;
import org.dynmap.storage.mariadb.MariaDBMapStorage;
import org.dynmap.storage.sqllte.SQLiteMapStorage;
import org.dynmap.storage.postgresql.PostgreSQLMapStorage;
import org.dynmap.utils.BlockStep;
import org.dynmap.utils.ImageIOManager;
import org.dynmap.web.BanIPFilter;
@ -388,6 +389,9 @@ public class DynmapCore implements DynmapCommonAPI {
else if (storetype.equals("mariadb")) {
defaultStorage = new MariaDBMapStorage();
}
else if (storetype.equals("postgres") || storetype.equals("postgresql")) {
defaultStorage = new PostgreSQLMapStorage();
}
else {
Log.severe("Invalid storage type for map data: " + storetype);
return false;

File diff suppressed because it is too large Load Diff