Releases: NivixX/NDatabase
0.2.0 - exception handling improvements & API
The API has been documented with some clean-up, note that I probably won't break the API even at the 1.0.0 release.
There is no breaking changes so you can pull the new version
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.NivixX.NDatabase:ndatabase-api:0.2.0'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.NivixX.NDatabase</groupId>
<artifactId>ndatabase-api</artifactId>
<version>0.2.0</version>
</dependency>
0.1.6 - Fix reflection for some Java version
NDatabase use reflection to instantiate your data model, some Java version didn't worked.
0.1.5 - Support java 17+ & bukkit 1.19+
This version fix plugin loading error for modern version of minecraft and java.
As I intend to support Spigot 1.8 from 1.19 and java 8 from Java 18+ I had to shade the guava library inside the plugin because every spigot server use different guava versions.
0.1.4 - Error management improvement
You have 2 version of a promise's callback
thenAsync(returnedEntity -> )
thenAsync((returnedEntity, throwable) -> )
If an exception occurred, throwable will not be null. Now, if you decide to not handle de exception and a exception actually occured, NDatabase will catch it and warn you where in your code you didn't handled the exception.
0.1.3 - Thread pool & improvements
this pre-release introduce the usage of a thread pool for async database operations.
Using thread pool will improve performances as there is no need to recreate thread on the fly as we can reuse one from the pool
Configure the threadpool in the config :
# The number of thread that will be used for your async database call
# If you are using MySQL, I would advice to set the same number as "minimum idle connection"
# In the case were you have more than 3 running operation, extra thread will be created temporarily
idle-thread-pool-size: 3
0.1.2 - renaming
Renamed NEntity "id" to "key"
0.1.1 - First pre-release
This is the first usable version, some improvements has to be done but I will probably not break the api even when the 1.0 version will be released.
How to use :
Just drag and drop the jar on your plugins folder and configure it.
You can use the jar as a dependency or use maven, check out the main page for more details.