MAPI
What is MAPI? MAPI is a new API that allows developers who aren't familiar with MySQL to use databases with ease! Like the logo? It was made by SzymonOwca!
Examples
Usage
Connect
MAPI.connect("localhost", "databaseName", "username", "password");
Disconnect
MAPI.disconnect();
Getting Values
MAPI.selectString("tableName", "criteria", "criteriaValue", "columnName");
MAPI.selectInt("tableName", "criteria", "criteriaValue", "columnName");
MAPI.selectBool("tableName", "criteria", "criteriaValue", "columnName");
Inserting Values
MAPI.insertString("tableName", "column array", "values array");
MAPI.insertInt("tableName", "column array", "values array");
MAPI.insertBool("tableName", "column array", "values array");
Deleting Values
MAPI.delete("tableName", "criteria", "criteriaValue");
Updating Values
MAPI.update("tableName", "criteria", "criteriaValue", "columnName", "columnValue");
Using MAPI
MAPI mapi; mapi = new MAPI();
Found a Bug?
Open a ticket so that the developer has more of a chance of responding!
http://dev.bukkit.org/bukkit-plugins/sql-api/
Thats the new MAPI i think. its 1.7.9.
Please update as this outdated api is breaking the latest FriendMe build.
Why did not update the new version? 1.7.2-R0.3 I need, I hope authors to update.
does this have a config file with it? trying to get it working with FriendMe.
@CopyableCougar4
You should update it to 1.7.9 because it's old system cause some bad lag and just to be more flexible.
@JaackMC Yeah TheChunkWorld all of the code in this is just MySQL code that I do to save developers and myself time and heartache.
@JaackMC
Are you joking? Please tell me you're joking.
What has broken?
An update for 1.7.9?
If you're going to create an API that you want plugin authors to build upon, then it has to be kept up to date.
@99razvan99 The most recent version uses static methods.
Btw, you should make the functions static so, you don't need:
MAPI mapi; mapi = new MAPI();
Yeah, this is really worth using!
I uploaded it a while ago, but I forgot to add a link:
Click
Could this be uploaded to GitHub please ;3?
To use the MAPI, do the following:
Few questions, is this asynchronous? It's a good idea but I don't really understand how to use it correctly.
I will attempt to introduce this into my Parkour plugin soon, I will keep you posted on the progress :)
Just a note: When this does come up I may have to rewrite some syntax I dunno if I put the right chars for some stuff..
Good! Its powerful
very nice! i have always despised setting up MySQL in my plugins :P Thanks!
Good idea!