Add microsoftsql storage type

This commit is contained in:
Mike Primm 2022-03-10 14:30:02 -06:00
parent aec1f0cdb6
commit 53b65ab7e4
3 changed files with 1093 additions and 4 deletions

View File

@ -1,9 +1,6 @@
package org.dynmap;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
@ -60,6 +57,7 @@ import org.dynmap.storage.MapStorage;
import org.dynmap.storage.aws_s3.AWSS3MapStorage;
import org.dynmap.storage.filetree.FileTreeMapStorage;
import org.dynmap.storage.mysql.MySQLMapStorage;
import org.dynmap.storage.mssql.MicrosoftSQLMapStorage;
import org.dynmap.storage.mariadb.MariaDBMapStorage;
import org.dynmap.storage.sqllte.SQLiteMapStorage;
import org.dynmap.storage.postgresql.PostgreSQLMapStorage;
@ -447,6 +445,9 @@ public class DynmapCore implements DynmapCommonAPI {
else if (storetype.equals("aws_s3")) {
defaultStorage = new AWSS3MapStorage();
}
else if (storetype.equals("microsoftsql")) {
defaultStorage = new MicrosoftSQLMapStorage();
}
else {
Log.severe("Invalid storage type for map data: " + storetype);
return false;

File diff suppressed because it is too large Load Diff

View File

@ -237,7 +237,7 @@ var DynmapTileLayer = L.TileLayer.extend({
// Some helper functions.
zoomprefix: function(amount) {
return 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.substr(0, amount);
return ' zzzzzzzzzzzzzzzzzzzzzzzzzz'.substr(0, amount);
},
getTileInfo: function(coords) {