The New DB Updater
0.1.5.2Stop worrying about the SQL Queries to update your plugin, and focus more on your plugin.
Note: This project is not dependent on Minecraft at all, and may be used with any of your Java projects. Also, this project is still in Alpha, and may therefor contain bugs.. Please report any you find.
About
The New Database Updater, also known as TNBDU, is a library that loads a table schema from a YAML file, and automatically updates a database to create tables that aren't already present, or if your table is not the same as the one in the schema it'll add, remove, or modify columns to make sure your database contains the tables, with the columns, you expect it to.
Using The New DB Updater all you have to include in your project is a yaml file like this, and TNDBU will do handle updating your tables for you.
Tables:
_Example:
Columns:
example:
Type: "INTEGER"
Unique: true
Increment: true
exampleVar:
Type: "VARCHAR"
Length: 50
Default: "DEFAULT_STRING"
Null: false
Settings:
Engine: "INNODB"
Charset: "utf8mb4"
Collate: "utf8mb4_unicode_ci"
_ExamplePrimary:
Columns:
name:
Type: "VARCHAR"
Length: 50
Null: false
Primary: true
value:
Type: "DECIMAL"
Length: 49
Scale: 4
Null: false
Primary: true
Settings:
Engine: "INNODB"
Charset: "utf8mb4"
Collate: "utf8mb4_unicode_ci"
Settings:
Prefix: "Prefix"
Instructions
Usage instructions are located on the wiki here.
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