DatabaseAPI 1.0

A simple DatabaseAPI for different types of databases.

  1. WoobbleDEV
    Native Minecraft Version:
    1.15
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    Source Code:
    https://bitbucket.org/Woobble/databaseapi/src/
    DatabaseAPI
    The API compatible to Spigot, Bungeecord and Standalone...

    Usage

    Code (Java):

    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);

     

Recent Updates

  1. Fixed download Link

Recent Reviews

  1. OR3O
    OR3O
    1/5,
    Version: 2020-01-19
    I can't download it, check your plugin before publishing it.
    Whenever I try and download the plugin it says "CSRF verification failed. Request aborted.".
    1. WoobbleDEV
      Author's Response
      Yeah thanks, the Link is broken. It works just for the Owner of the repo. Forgot to Log off.