DA
DatabaseAPI
The API compatible to Spigot, Bungeecord and Standalone...
Usage
Database sqlite= DatabaseFactory.createSQLiteDatabase(FILE);
Database mysql= DatabaseFactory.createMySQLDatabase(HOST, PORT, USER, PASSWORD, DATABASE);
Database h2= DatabaseFactory.createH2Database(NAME, FILE, USER, PASSWORD);
Database postgreesql= DatabaseFactory.createPostgreeSQLDatabase(HOST, PORT, USER, PASSWORD, DATABASE);
//Execute a SQL update
db.executeUpdate(QRY, OBJECTS);
//If you get the Future directly after calling, it's blocking the main thread too:)
db.executeUpdateAsync(QRY, OBJECTS);
//Exdcute a SQL query
db.executeQueryAsync(QRY, new Function<ResultSet, Object>() {
@Override
public Object apply(ResultSet resultSet) {
return null;
}
}, OBJECTS);
//If you get the Future directly after calling, it's blocking the main thread too:)
db.executeQueryAsync(QRY, new Function<ResultSet, Object>() {
@Override
public Object apply(ResultSet resultSet) {
return null;
}
}, OBJECTS);Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta