-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mariadb' of https://github.com/HarvelsX/AuthMeReloaded …
…into HarvelsX-mariadb
- Loading branch information
Showing
7 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ public enum DataSourceType { | |
|
||
MYSQL, | ||
|
||
MARIADB, | ||
|
||
POSTGRESQL, | ||
|
||
SQLITE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package fr.xephi.authme.datasource; | ||
|
||
import fr.xephi.authme.datasource.mysqlextensions.MySqlExtensionsFactory; | ||
import fr.xephi.authme.settings.Settings; | ||
|
||
import java.sql.SQLException; | ||
|
||
public class MariaDB extends MySQL { | ||
public MariaDB(Settings settings, MySqlExtensionsFactory extensionsFactory) throws SQLException { | ||
super(settings, extensionsFactory); | ||
} | ||
|
||
@Override | ||
String getJdbcUrl(String host, String port, String database) { | ||
return "jdbc:mariadb://" + host + ":" + port + "/" + database; | ||
} | ||
|
||
@Override | ||
public DataSourceType getType() { | ||
return DataSourceType.MARIADB; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters